.op-booking-embed {
  --ea-accent: var(--op-action-primary);
  --ea-selected: var(--op-state-selected);
  --ea-border: rgba(31, 53, 69, 0.18);
  --ea-field: var(--op-surface-white);
  --ea-available: var(--op-state-available);
  --ea-available-border: var(--op-state-available-border);
  --ea-unavailable: var(--op-state-unavailable);
  --ea-unavailable-border: var(--op-state-unavailable-border);
  --ea-unavailable-text: var(--op-state-unavailable-text);
  --ea-hover: var(--op-surface-blue);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1rem, 3.5vw, 3rem);
  border: 1px solid var(--ea-border);
  background: var(--op-surface-white);
}

.op-booking-embed > .ea-bootstrap {
  width: 100%;
  max-width: none !important;
  color: var(--op-text-primary);
  font-family: inherit;
}

.op-booking-embed .ea-bootstrap form.form-horizontal {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.op-booking-embed .ea-bootstrap .col-md-6 {
  float: none;
  padding-inline: clamp(0.5rem, 2vw, 1.5rem);
  width: auto;
}

.op-booking-embed .ea-bootstrap .form-group {
  margin-bottom: 1.15rem;
}

.op-booking-embed .ea-bootstrap .ea-label,
.op-booking-embed .ea-bootstrap .control-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--op-text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}

.op-booking-embed .ea-bootstrap .form-control {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--ea-border);
  border-radius: 0;
  background: var(--ea-field);
  color: var(--op-text-primary);
  font: inherit;
  box-shadow: none;
}

.op-booking-embed .ea-bootstrap .form-control:hover {
  border-color: rgba(31, 53, 69, 0.42);
}

.op-booking-embed .ea-bootstrap .form-control:focus,
.op-booking-embed .ea-bootstrap button:focus-visible,
.op-booking-embed .ea-bootstrap input:focus-visible,
.op-booking-embed .ea-bootstrap select:focus-visible,
.op-booking-embed .ea-bootstrap textarea:focus-visible {
  border-color: var(--ea-accent);
  outline: 3px solid var(--op-focus-on-light);
  outline-offset: 2px;
  box-shadow: none;
}

.op-booking-embed .ea-bootstrap h3 {
  margin: 0 0 0.45rem;
  color: var(--op-text-primary);
  font-family: inherit;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.15;
}

.op-booking-embed .ea-bootstrap small {
  display: block;
  margin-bottom: 1.25rem;
  color: color-mix(in srgb, var(--op-text-primary) 72%, white);
  font-size: 0.875rem;
}

.op-booking-embed .ea-bootstrap .ui-datepicker {
  width: 100%;
  padding: 0;
  border: 1px solid var(--ea-border);
  border-radius: 0;
  box-shadow: none;
}

.op-booking-embed .ea-bootstrap .ui-datepicker-header {
  padding: 0.85rem;
  border: 0;
  border-radius: 0;
  background: var(--op-surface-blue);
  color: var(--op-text-primary);
}

.op-booking-embed
  .ea-bootstrap.ea-bootstrap
  .ui-datepicker-calendar
  > tbody
  > tr
  > td {
  padding: 2px;
}

.op-booking-embed
  .ea-bootstrap.ea-bootstrap
  .ui-datepicker-calendar
  > tbody
  > tr
  > td.ui-state-disabled,
.op-booking-embed
  .ea-bootstrap.ea-bootstrap
  .ui-datepicker-calendar
  > tbody
  > tr
  > td.no-slots,
.op-booking-embed
  .ea-bootstrap.ea-bootstrap
  .ui-datepicker-calendar
  > tbody
  > tr
  > td.ui-datepicker-current-day {
  background: transparent !important;
  opacity: 1 !important;
}

.op-booking-embed
  .ea-bootstrap.ea-bootstrap
  .ui-datepicker-calendar
  > tbody
  > tr
  > td
  > a,
.op-booking-embed
  .ea-bootstrap.ea-bootstrap
  .ui-datepicker-calendar
  > tbody
  > tr
  > td
  > span {
  position: relative;
  display: grid;
  min-width: 38px;
  min-height: 42px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #ffffff;
  color: var(--op-text-primary);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.op-booking-embed
  .ea-bootstrap.ea-bootstrap
  .ui-datepicker-calendar
  > tbody
  > tr
  > td.ui-state-disabled:not(.ui-datepicker-other-month)
  > span,
.op-booking-embed
  .ea-bootstrap.ea-bootstrap
  .ui-datepicker-calendar
  > tbody
  > tr
  > td.no-slots
  > a {
  border-color: var(--ea-unavailable-border);
  background: var(--ea-unavailable);
  color: var(--ea-unavailable-text);
  cursor: not-allowed;
}

.op-booking-embed
  .ea-bootstrap.ea-bootstrap
  .ui-datepicker-calendar
  > tbody
  > tr
  > td.no-slots
  > a {
  pointer-events: none;
}

.op-booking-embed
  .ea-bootstrap.ea-bootstrap
  .ui-datepicker-calendar
  > tbody
  > tr
  > td.free
  > a {
  border-color: var(--ea-available-border);
  background: var(--ea-available);
  color: var(--op-text-primary);
  cursor: pointer;
}

.op-booking-embed
  .ea-bootstrap.ea-bootstrap
  .ui-datepicker-calendar
  > tbody
  > tr
  > td.free
  > a::after {
  position: absolute;
  bottom: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ea-accent);
  content: "";
}

.op-booking-embed
  .ea-bootstrap.ea-bootstrap
  .ui-datepicker-calendar
  > tbody
  > tr
  > td.free
  > a:hover {
  border-color: var(--ea-accent);
  background: var(--ea-hover);
}

.op-booking-embed
  .ea-bootstrap.ea-bootstrap
  .ui-datepicker-calendar
  > tbody
  > tr
  > td.free.ui-datepicker-current-day
  > a,
.op-booking-embed
  .ea-bootstrap.ea-bootstrap
  .ui-datepicker-calendar
  > tbody
  > tr
  > td.free
  > a.ui-state-active {
  border-color: var(--ea-selected);
  background: var(--ea-selected);
  color: var(--op-surface-white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.op-booking-embed
  .ea-bootstrap.ea-bootstrap
  .ui-datepicker-calendar
  > tbody
  > tr
  > td.free.ui-datepicker-current-day
  > a::after,
.op-booking-embed
  .ea-bootstrap.ea-bootstrap
  .ui-datepicker-calendar
  > tbody
  > tr
  > td.free
  > a.ui-state-active::after {
  background: var(--op-surface-white);
}

.op-booking-embed
  .ea-bootstrap.ea-bootstrap
  .ui-datepicker-calendar
  > tbody
  > tr
  > td.free
  > a:focus-visible {
  border-color: var(--ea-accent);
  outline: 3px solid color-mix(in srgb, var(--ea-accent) 32%, transparent);
  outline-offset: 2px;
}

.op-booking-legend {
  display: flex;
  gap: 0.65rem 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 0.85rem;
  border-block: 1px solid var(--ea-border);
  background: #ffffff;
  color: color-mix(in srgb, var(--op-text-primary) 84%, white);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
}

.op-booking-legend > span {
  display: inline-flex;
  gap: 0.42rem;
  align-items: center;
}

.op-booking-legend__marker {
  display: inline-block;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border: 1px solid var(--ea-unavailable-border);
  border-radius: 4px;
  background: var(--ea-unavailable);
}

.op-booking-legend__marker--available {
  position: relative;
  border-color: var(--ea-available-border);
  background: var(--ea-available);
}

.op-booking-legend__marker--available::after {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ea-accent);
  content: "";
}

.op-booking-embed .ea-bootstrap.ea-bootstrap .ui-datepicker .time.well {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: clamp(0.85rem, 2.5vw, 1.25rem);
  border: 0;
  border-radius: 0;
  background: #f7fafb;
  box-shadow: none;
}

.op-booking-embed
  .ea-bootstrap.ea-bootstrap
  .ui-datepicker
  .time.well
  > .time-value {
  display: inline-flex;
  gap: 0;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 46px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--ea-border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--op-text-primary);
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    border-color 150ms ease-out,
    background-color 150ms ease-out,
    color 150ms ease-out;
}

.op-booking-embed
  .ea-bootstrap.ea-bootstrap
  .ui-datepicker
  .time.well
  > .time-value:hover {
  border-color: var(--ea-accent);
  background: var(--ea-hover);
  color: var(--op-text-primary);
}

.op-booking-embed
  .ea-bootstrap.ea-bootstrap
  .ui-datepicker
  .time.well
  > .time-value:focus-visible {
  border-color: var(--ea-accent);
  outline: 3px solid color-mix(in srgb, var(--ea-accent) 32%, transparent);
  outline-offset: 2px;
}

.op-booking-embed
  .ea-bootstrap.ea-bootstrap
  .ui-datepicker
  .time.well
  > .time-value.selected-time,
.op-booking-embed
  .ea-bootstrap.ea-bootstrap
  .ui-datepicker
  .time.well
  > .time-value.selected-time:hover {
  gap: 0.55rem;
  border-color: var(--ea-selected) !important;
  background: var(--ea-selected) !important;
  color: var(--op-surface-white);
}

.op-booking-embed
  .ea-bootstrap.ea-bootstrap
  .ui-datepicker
  .time.well
  > .time-value.selected-time::after {
  width: 0.38rem;
  height: 0.68rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-1px);
}

.op-booking-embed .ea-bootstrap .checkbox {
  padding-left: 0;
  white-space: normal;
}

.op-booking-embed .ea-bootstrap .checkbox label {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.65rem;
  align-items: start;
  width: 100%;
  min-height: 44px;
  overflow-wrap: normal;
  padding-left: 0;
  color: var(--op-text-primary);
  font-size: 0.9rem !important;
  line-height: 1.5;
  word-break: normal;
}

.op-booking-embed .ea-bootstrap .checkbox input[type="checkbox"] {
  position: static !important;
  width: 20px;
  height: 20px;
  margin: 0.1rem 0 0 !important;
  accent-color: var(--ea-accent);
}

.op-booking-embed .ea-bootstrap .op-booking-contact-pending {
  margin: 0 0 1.15rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--ea-border);
  background: var(--op-surface-blue);
  color: var(--op-text-primary);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.5;
  white-space: normal;
}

.op-booking-embed .ea-bootstrap .op-booking-contact-pending[hidden] {
  display: none;
}

/* The plugin retains the pointer blocker; keep its pending copy legible. */
.op-booking-embed .ea-bootstrap .step.final.disabled .ea_hide_show > .block {
  opacity: 0.16 !important;
}

.op-booking-embed .ea-bootstrap .ea-actions-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-start !important;
  min-width: 0;
  max-width: 100%;
  padding: 0.5rem 0 0;
  white-space: normal;
}

/* Keep disabled actions beneath the final-step veil, not outside its left edge. */
.op-booking-embed
  .ea-bootstrap
  .step.final
  .form-group:has(> .ea-actions-group) {
  margin-inline: 0;
}

.op-booking-embed .ea-bootstrap .ea-actions-group > .ea-btn {
  margin: 0 !important;
}

.op-booking-embed .ea-bootstrap .ea-btn {
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border: 1px solid var(--ea-accent);
  border-radius: 999px;
  background: var(--ea-accent);
  color: var(--op-surface-white);
  font: inherit;
  font-weight: 700;
  box-shadow: none;
}

.op-booking-embed .ea-bootstrap .ea-submit:disabled {
  border-color: var(--ea-unavailable-border);
  background: var(--ea-unavailable);
  color: var(--ea-unavailable-text);
  opacity: 1;
  cursor: not-allowed;
  transition: none;
}

.op-booking-embed .ea-bootstrap .ea-cancel {
  background: var(--op-surface-white);
  color: var(--ea-accent);
}

.op-booking-embed .ea-bootstrap .step.final.disabled .ea-cancel {
  border-color: var(--ea-unavailable-border);
  background: var(--ea-unavailable);
  color: var(--ea-unavailable-text);
  cursor: not-allowed;
}

.op-booking-embed .ea-bootstrap #ea-success-box {
  box-sizing: border-box;
  width: 100%;
  min-width: 0 !important;
  max-width: 720px;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: clamp(1.5rem, 4vw, 3rem) !important;
  border: 1px solid color-mix(in srgb, var(--ea-accent) 24%, white);
  border-radius: 1.5rem !important;
  background:
    radial-gradient(
      circle at 100% 0,
      color-mix(in srgb, var(--op-brand-identity) 26%, transparent),
      transparent 38%
    ),
    color-mix(in srgb, var(--op-brand-identity) 12%, white);
  color: var(--op-text-primary);
  font-family: inherit !important;
  text-align: left !important;
  box-shadow: 0 1.25rem 3rem rgba(31, 53, 69, 0.1) !important;
}

.op-booking-embed .ea-bootstrap #ea-success-box .ea-confirmation-title {
  margin: 0 0 0.75rem !important;
  color: var(--op-text-primary) !important;
  font-family: var(--op-serif);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 0.98;
}

.op-booking-embed .ea-bootstrap #ea-success-box .ea-status-note {
  max-width: 58ch !important;
  margin: 0 0 1.5rem !important;
  color: color-mix(in srgb, var(--op-text-primary) 80%, white) !important;
  font-size: 1rem !important;
  line-height: 1.6;
}

.op-booking-embed .ea-bootstrap #ea-overview-details {
  padding-top: 1.25rem;
  border-top: 1px solid var(--ea-border);
  color: var(--op-text-primary) !important;
  font-family: inherit;
  line-height: 1.55;
}

.op-booking-embed .ea-bootstrap #ea-overview-buttons {
  display: flex;
  gap: 0.75rem !important;
  justify-content: flex-start !important;
  margin-top: 1.5rem !important;
}

.op-booking-embed .ea-bootstrap #ea-overview-buttons a {
  min-height: 44px;
  padding: 0.75rem 1.1rem !important;
  border: 1px solid var(--ea-accent);
  border-radius: 999px !important;
  background: var(--ea-accent) !important;
  color: var(--op-surface-white) !important;
  font-weight: 700;
  line-height: 1.25;
}

.op-booking-embed .ea-bootstrap #ea-overview-buttons a:focus-visible {
  outline: 3px solid var(--op-focus-on-light);
  outline-offset: 3px;
}

.op-booking-embed .ea-bootstrap .ea-service-description {
  margin-bottom: 1rem;
  color: color-mix(in srgb, var(--op-text-primary) 78%, white);
  line-height: 1.55;
}

.op-booking-embed .ea-bootstrap label.error {
  color: #a1342e;
  font-size: 0.85rem;
  font-weight: 650;
}

@media (max-width: 900px) {
  .op-booking-embed .ea-bootstrap form.form-horizontal {
    grid-template-columns: 1fr;
  }

  .op-booking-embed .ea-bootstrap .col-md-6 {
    float: none;
    width: 100%;
    padding-inline: 0;
  }

  .op-booking-embed .ea-bootstrap .final {
    margin-top: 2rem;
  }
}

@media (max-width: 520px) {
  .op-booking-embed {
    margin-inline: calc(-1 * clamp(0.6rem, 2vw, 1rem));
    padding: 1rem;
  }

  .op-booking-embed .ea-bootstrap .col-md-6,
  .op-booking-embed .ea-bootstrap .step,
  .op-booking-embed .ea-bootstrap .date {
    min-width: 0;
    max-width: 100%;
  }

  .op-booking-embed .ea-bootstrap .ui-datepicker {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .op-booking-embed .ea-bootstrap .ui-datepicker-calendar {
    width: 100%;
    table-layout: fixed;
  }

  .op-booking-embed
    .ea-bootstrap.ea-bootstrap
    .ui-datepicker-calendar
    > tbody
    > tr
    > td {
    padding: 1px;
  }

  .op-booking-embed
    .ea-bootstrap.ea-bootstrap
    .ui-datepicker-calendar
    > tbody
    > tr
    > td
    > a,
  .op-booking-embed
    .ea-bootstrap.ea-bootstrap
    .ui-datepicker-calendar
    > tbody
    > tr
    > td
    > span {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0;
  }

  .op-booking-legend {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .op-booking-embed .ea-bootstrap.ea-bootstrap .ui-datepicker .time.well {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .op-booking-embed .ea-bootstrap .final,
  .op-booking-embed .ea-bootstrap #booking-overview {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .op-booking-embed .ea-bootstrap #ea-overview-message {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .op-booking-embed .ea-bootstrap #booking-overview table {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    table-layout: fixed;
    white-space: normal;
  }

  .op-booking-embed .ea-bootstrap #booking-overview td {
    width: auto;
    white-space: normal;
    overflow-wrap: anywhere;
    vertical-align: top;
  }

  .op-booking-embed .ea-bootstrap #booking-overview td.ea-label {
    display: table-cell;
    width: 44%;
    margin: 0;
    overflow-wrap: normal;
  }
}
