.cw-block-presentations {
  --space-xs: 0.125rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;
  --space-48: 12rem;
  --space-56: 14rem;
  --space-64: 16rem;
  --space-px: 1px;
  --space-0: 0;
  --space-n-1: -0.25rem;
  --space-n-2: -0.5rem;
  --space-n-3: -0.75rem;
  --space-n-4: -1rem;
  --space-n-5: -1.25rem;
  --space-n-6: -1.5rem;
  --space-n-8: -2rem;
  --space-n-10: -2.5rem;
  --space-n-12: -3rem;
  --space-n-16: -4rem;
  --space-n-20: -5rem;
  --space-n-24: -6rem;
  --space-n-32: -8rem;
  --space-n-40: -10rem;
  --space-n-48: -12rem;
  --space-n-56: -14rem;
  --space-n-64: -16rem;
  --space-n-px: -1px;

  --primary: #111;
  --light: #eee;
  --warning: red;

  --text-2xs: 0.65rem;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.5rem;
  --text-5xl: 4rem;
  --text-6xl: 6rem;
  --text-8xl: 8rem;
}

body .cw-block-presentations .form-check {
  padding-top: 0;
  padding-bottom: 0;
}

.cw-block-presentations+.cw-block-presentations {
  margin-top: var(--space-40);
}

.cw-block-presentations-file-upload input[type="file"] {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.cw-block-presentations-file-upload label {
  display: flex !important;
  padding: 0;
  margin-bottom: 0;
}

.cw-upload-label {
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: 1rem;
}

.flex-1 {
  flex: 1 1 0% !important;
}

.cw-upload-button svg {
  width: auto;
  height: 1rem;
  margin-right: 0.75rem;
  fill: var(--light);
}

/* Presentation Type Checkbox Styling */
.presentation_type .form-check {
  margin-bottom: var(--space-2);
}

.presentation_type .form-check:last-child {
  margin-bottom: 0;
}

.presentation_type .form-check-input[type="checkbox"] {
  margin-right: var(--space-2);
}

.presentation_type .form-check-input[type="radio"] {
  margin-right: var(--space-2);
}

.presentation_type .form-check label {
  cursor: pointer;
  user-select: none;
}

.cw-upload-button {
  padding-left: var(--space-1) !important;
  padding-right: var(--space-1) !important;
}

.cw-block-presentations-file-upload .inputfile:focus+label,
.cw-block-presentations-file-upload .inputfile+label:hover {
  background-color: var(--gray-300);
}

.cw-block-presentations-file-upload .inputfile+label {
  cursor: pointer;
  /* "hand" cursor */
}

.cw-block-presentations-file-upload .inputfile:focus+label {
  outline: 1px dotted #000;
  outline: -webkit-focus-ring-color auto 5px;
}

.cw-block-presentations-file-upload .inputfile+label * {
  pointer-events: none;
}

.cw-block-presentations legend {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
}

body .cw-block-presentations-count {
  padding: 0 !important;
}

.help-text {
  margin-top: var(--space-2);
}

.help-text+.alert,
.cw-block-presentations-count+.alert {
  margin-top: var(--space-2);
}

.alert-danger {
  position: relative;
  display: flex;
}

.page-reviews .entry-container>.entry-header {
  display: none;
}

.alert-danger {
  background-color: red;
  color: #fff;
}

.alert-success {
  background-color: green;
  color: #fff;
}

.cw-review-list-item:first-child {
  border-radius: 3px 3px 0 0;
}

p+.cw-review-list {
  margin-top: var(--space-8);
}

.cw-presentation-categorised-speaker-item+.cw-presentation-categorised-speaker-item {
  margin-top: var(--space-3);
}

.cw-presentation-list-speaker-image {
  max-width: var(--cw-presentation-list-speaker-width);
}

.cw-block-presentations-shortcode .cw-speaker-name {
  font-weight: var(--font-weight-heading);
  font-size: var(--text-2xl);
}


.cw-presentation-abstract p,
.cw-presentation-speaker-list p {
  margin-top: .75rem;
}

/* File preview styles */
.file-preview {
  margin-top: var(--space-3);
  padding: var(--space-4);
  background-color: var(--gray-100);
  border-radius: 3px;
  display: inline-block;
}

.file-preview img {
  display: block;
  object-fit: contain;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.file-preview .file-info {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--gray-600);
}


cw-upload-button svg {
  width: auto;
  height: 1rem;
  margin-right: 0.75rem;
}


.cw-upload-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 1rem;
  background-color: var(--primary);
  color: var(--light);
  border-radius: 9999px;
}


label:has(+ *:required):after,
label:has(+ .cw-block-presentations-file-upload):after,
input[type="file"]:required+label {
  content: '*';
  color: var(--warning);
}

.clear-file-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  color: var(--warning);
  padding: var(--space-2) var(--space-3);
  border-radius: 3px;
  transition: background-color 0.2s;
}

.clear-file-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.clear-file-btn {
  white-space: nowrap;
}

.clear-file-btn svg {
  margin-right: var(--space-2);
  width: var(--space-2);
  height: auto;
}

.checkbox-validation-message {
    color: var(--warning);
    margin-top: var(--space-2);
    display: none;
}

.cw-block-presentations-checkbox-group {
    margin-bottom: var(--space-4);
}
