body.demo-modal-open,
body.demo-popup-open {
  overflow: hidden;
}

.demo-page-modal[hidden],
.demo-booking-modal[hidden] {
  display: none;
}

.demo-page-modal,
.demo-booking-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: clamp(0.55rem, 1.4vw, 1rem);
}

.demo-booking-modal {
  z-index: 1210;
}

.demo-page-modal__backdrop,
.demo-booking-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 20, 23, 0.46);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.demo-page-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(82rem, 100%);
  max-height: calc(100vh - 1.1rem);
  overflow: auto;
  border-radius: var(--radius-lg);
  background: #faf9f6;
  box-shadow: 0 28px 80px rgba(17, 20, 23, 0.28);
}

.demo-page-modal__head {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  background: rgba(250, 249, 246, 0.9);
  border-bottom: 1px solid rgba(var(--text-primary-rgb), 0.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.demo-page-modal__head h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.demo-page-modal__close {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--text-primary-rgb), 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--text-primary);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.demo-page-modal__close:hover,
.demo-page-modal__close:focus-visible {
  background: var(--interactive);
}

.demo-page-modal__body {
  display: grid;
  gap: 0.85rem;
  padding: clamp(0.95rem, 1.8vw, 1.35rem);
}

.demo-hero--popup {
  width: 100%;
  display: grid;
  gap: clamp(0.85rem, 1.35vw, 1.15rem);
  padding: 0;
  background: transparent;
}

.demo-hero--popup h1 {
  margin: 0;
  max-width: 11ch;
  justify-self: center;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.35rem, 4.25vw, 3.95rem);
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.demo-lede {
  max-width: 48rem;
  margin: 0 auto;
  color: #7c7469;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.35;
  text-align: center;
}

.demo-layout {
  width: min(72rem, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(0, 1.18fr);
  align-items: stretch;
  gap: clamp(0.9rem, 1.7vw, 1.3rem);
}

.demo-side-panel,
.demo-booking-card {
  border-radius: 8px;
  border: 1px solid rgba(var(--text-primary-rgb), 0.1);
  background: rgba(250, 249, 246, 0.82);
  box-shadow: 0 18px 48px rgba(var(--text-primary-rgb), 0.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.demo-side-panel {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: clamp(1.15rem, 2vw, 1.6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.78rem, 1.2vw, 0.95rem);
  color: var(--text-primary);
}

.demo-side-panel h2 {
  margin: 0;
  max-width: 10ch;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.8rem, 2.7vw, 2.35rem);
  font-weight: 800;
  line-height: 1;
}

.demo-side-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.52rem;
  color: #7c7469;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.9rem, 1.05vw, 0.98rem);
  line-height: 1.35;
}

.demo-side-list li {
  position: relative;
  padding-left: 1.15rem;
}

.demo-side-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: var(--interactive);
  box-shadow: 0 0 0 4px rgba(var(--interactive-rgb), 0.12);
}

.demo-side-note {
  margin: 0;
  color: #7c7469;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.84rem;
  line-height: 1.38;
}

.demo-side-contact-btn,
.demo-primary-btn {
  min-width: 0;
}

.demo-side-contact-btn {
  width: fit-content;
  min-height: 2.25rem;
  margin-top: 0;
  padding: 0.65rem 0.85rem;
}

.demo-booking-card {
  position: relative;
  min-width: 0;
  padding: clamp(1rem, 1.8vw, 1.3rem);
  display: grid;
  gap: clamp(0.78rem, 1.2vw, 1rem);
}

.demo-card-head,
.demo-times-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.demo-card-kicker {
  margin: 0;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-timezone,
.demo-times-head p,
.demo-times-empty {
  margin: 0;
  color: #7c7469;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
}

.demo-timezone {
  white-space: nowrap;
}

.demo-calendar-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(0.75rem, 1.2vw, 1rem);
}

.demo-calendar-panel,
.demo-times-panel {
  padding: clamp(0.78rem, 1.15vw, 0.95rem);
  border-radius: 8px;
  border: 1px solid rgba(var(--text-primary-rgb), 0.08);
  background: rgba(255, 255, 255, 0.32);
}

.demo-calendar-header {
  display: grid;
  grid-template-columns: 30px 1fr 30px;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.demo-month-label,
.demo-times-head h3 {
  margin: 0;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.demo-month-label {
  text-align: center;
}

.demo-month-btn {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 8px;
  border: 1px solid rgba(var(--text-primary-rgb), 0.1);
  background: transparent;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.demo-month-btn:hover,
.demo-month-btn:focus-visible {
  background: rgba(var(--text-primary-rgb), 0.04);
  border-color: rgba(var(--interactive-rgb), 0.3);
}

.demo-weekdays,
.demo-day-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.22rem;
}

.demo-weekdays {
  margin-bottom: 0.22rem;
}

.demo-weekdays span {
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: rgba(var(--text-primary-rgb), 0.58);
  text-transform: uppercase;
}

.demo-day-cell {
  height: 1.82rem;
  border-radius: 8px;
  border: 1px solid rgba(var(--text-primary-rgb), 0.07);
  background: rgba(255, 255, 255, 0.46);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.demo-day-cell.is-empty {
  visibility: hidden;
}

.demo-day-cell.is-disabled {
  color: rgba(var(--text-primary-rgb), 0.32);
  background: rgba(var(--text-primary-rgb), 0.03);
  cursor: default;
}

.demo-day-cell.is-today {
  border-color: rgba(var(--interactive-rgb), 0.45);
}

.demo-day-cell:not(.is-disabled):hover,
.demo-day-cell:not(.is-disabled):focus-visible,
.demo-time-slot:hover,
.demo-time-slot:focus-visible {
  background: #f6f2e9;
  border-color: rgba(var(--interactive-rgb), 0.35);
}

.demo-day-cell.is-selected,
.demo-time-slot.is-selected {
  background: var(--interactive);
  color: var(--text-primary);
  border-color: var(--interactive);
}

.demo-time-format-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  color: rgba(var(--text-primary-rgb), 0.72);
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}

.demo-time-format-switch {
  position: relative;
  display: inline-flex;
}

.demo-time-format-switch input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.demo-time-format-slider {
  width: 2.15rem;
  height: 1.2rem;
  border-radius: 999px;
  background: rgba(var(--text-primary-rgb), 0.14);
  border: 1px solid rgba(var(--text-primary-rgb), 0.1);
  display: inline-flex;
  align-items: center;
  padding: 0.15rem;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.demo-time-format-slider::after {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--text-on-dark);
  box-shadow: 0 2px 6px rgba(25, 39, 52, 0.16);
  transform: translateX(0);
  transition: transform 0.18s ease;
}

.demo-time-format-switch input:focus-visible + .demo-time-format-slider {
  outline: 2px solid rgba(var(--interactive-rgb), 0.45);
  outline-offset: 2px;
}

.demo-time-format-switch input:checked + .demo-time-format-slider {
  background: rgba(var(--interactive-rgb), 0.2);
  border-color: rgba(var(--interactive-rgb), 0.36);
}

.demo-time-format-switch input:checked + .demo-time-format-slider::after {
  transform: translateX(0.9rem);
  background: var(--interactive);
}

.demo-times-head p {
  margin-top: 0.2rem;
  font-size: 0.78rem;
}

.demo-times-grid {
  margin-top: 0.38rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.32rem;
}

.demo-time-slot {
  min-height: 1.68rem;
  border-radius: 8px;
  border: 1px solid rgba(var(--text-primary-rgb), 0.09);
  background: rgba(255, 255, 255, 0.42);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.demo-times-empty {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.demo-selection-summary {
  background: rgba(var(--interactive-rgb), 0.12);
  border: 1px solid rgba(var(--interactive-rgb), 0.22);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
}

.demo-selection-label {
  margin: 0;
  color: #7c7469;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.demo-selection-value {
  margin: 0.3rem 0 0;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
}

.demo-request-form,
.demo-booking-modal__content {
  display: grid;
  gap: 0.95rem;
}

.demo-booking-modal__dialog {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(var(--text-primary-rgb), 0.1);
  border-radius: 8px;
  background: rgba(250, 249, 246, 0.92);
  box-shadow: 0 24px 70px rgba(var(--text-primary-rgb), 0.18);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.demo-booking-modal__dialog .oc-modal-header {
  padding: clamp(1.2rem, 2.4vw, 1.6rem);
  border-bottom: 1px solid rgba(var(--text-primary-rgb), 0.08);
}

.demo-booking-modal__dialog .oc-modal-title {
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  line-height: 0.98;
}

.demo-booking-modal__dialog .oc-modal-description,
.demo-booking-modal__message {
  color: #7c7469;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

.demo-booking-modal__dialog .oc-modal-description {
  margin-top: 0.7rem;
}

.demo-booking-modal__close {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(var(--text-primary-rgb), 0.08);
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
}

.demo-booking-modal__close:hover,
.demo-booking-modal__close:focus-visible {
  background: rgba(var(--text-primary-rgb), 0.04);
  border-color: rgba(var(--text-primary-rgb), 0.14);
  color: var(--text-primary);
}

.demo-booking-modal__content {
  align-content: start;
  position: relative;
  padding: clamp(1.2rem, 2.4vw, 1.6rem);
}

.demo-booking-modal__summary,
.demo-booking-modal__message {
  margin: 0;
}

.demo-booking-modal__action {
  width: fit-content;
  min-width: 8rem;
}

.demo-booking-modal__form .demo-form-grid {
  grid-template-columns: 1fr;
}

.demo-booking-modal__form .demo-primary-btn {
  width: 100%;
}

.demo-field label {
  margin-bottom: 0.35rem;
  color: rgba(var(--text-primary-rgb), 0.8);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-booking-modal .oc-popup-field-panel {
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.demo-booking-modal .oc-popup-input-shell {
  padding: 0;
  border-radius: 8px;
}

.demo-booking-modal .oc-popup-plain-input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(var(--text-primary-rgb), 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.88), rgba(250, 249, 246, 0.78)),
    #faf9f6;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.demo-booking-modal .oc-popup-plain-input:focus {
  border-color: rgba(var(--interactive-rgb), 0.42);
  background: rgba(255, 252, 247, 0.96);
  box-shadow: 0 0 0 3px rgba(var(--interactive-rgb), 0.1);
  outline: none;
}

.demo-primary-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .demo-layout {
    grid-template-columns: 1fr;
    width: min(44rem, 100%);
  }

  .demo-booking-card {
    order: 1;
  }

  .demo-side-panel {
    order: 2;
    min-height: auto;
  }

  .demo-calendar-shell {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) and (max-height: 780px) {
  .demo-page-modal__dialog {
    max-height: calc(100vh - 0.7rem);
  }

  .demo-page-modal__head {
    padding: 0.55rem 0.8rem;
  }

  .demo-page-modal__body {
    padding: 0.55rem 0.8rem 0.7rem;
  }

  .demo-hero--popup {
    gap: 0.45rem;
  }

  .demo-hero--popup h1 {
    font-size: clamp(2.1rem, 4vw, 3.35rem);
  }

  .demo-lede {
    font-size: 0.86rem;
  }

  .demo-side-panel,
  .demo-booking-card {
    padding: 0.75rem;
  }

  .demo-side-panel {
    gap: 0.52rem;
  }

  .demo-side-panel h2 {
    font-size: clamp(1.55rem, 2.4vw, 2rem);
  }

  .demo-side-list {
    gap: 0.38rem;
    font-size: 0.84rem;
  }

  .demo-side-note {
    font-size: 0.78rem;
  }

  .demo-calendar-panel,
  .demo-times-panel {
    padding: 0.5rem;
  }

  .demo-day-cell {
    height: 1.62rem;
  }

  .demo-time-slot {
    min-height: 1.52rem;
  }
}

@media (max-width: 700px) {
  .demo-page-modal,
  .demo-booking-modal {
    padding: 0.85rem;
  }

  .demo-page-modal__dialog,
  .demo-booking-modal__dialog {
    width: min(100%, 34rem);
    min-width: 0;
    max-height: calc(100vh - 1.7rem);
  }

  .demo-page-modal__body,
  .demo-booking-modal__content {
    padding: 1rem;
  }

  .demo-hero--popup h1 {
    font-size: clamp(2.2rem, 11vw, 3.8rem);
  }

  .demo-layout,
  .demo-booking-card,
  .demo-calendar-shell,
  .demo-calendar-panel,
  .demo-times-panel {
    width: 100%;
    min-width: 0;
  }

  .demo-booking-card,
  .demo-calendar-panel,
  .demo-times-panel {
    padding: 0.75rem;
  }

  .demo-card-head,
  .demo-times-head-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .demo-timezone {
    white-space: normal;
  }

  .demo-calendar-header {
    grid-template-columns: 2rem minmax(0, 1fr) 2rem;
    gap: 0.25rem;
  }

  .demo-month-label {
    min-width: 0;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
  }

  .demo-weekdays,
  .demo-day-grid {
    gap: clamp(0.18rem, 1vw, 0.32rem);
  }

  .demo-weekdays span {
    font-size: 0.62rem;
    letter-spacing: 0;
  }

  .demo-times-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-day-cell {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    padding: 0;
    font-size: clamp(0.72rem, 3.4vw, 0.84rem);
  }

  .demo-booking-modal__action {
    width: 100%;
    justify-content: center;
  }
}
