[data-demo-page] [hidden], #reviews [hidden] {
  display: none;
}

.demo-header-actions, .demo-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.demo-page {
  max-width: 760px;
  padding: 70px 0 100px;
}

body[data-demo-page="admin"] .demo-page {
  max-width: 1040px;
}

.demo-page h1 {
  font-size: clamp(35px, 5vw, 56px);
  line-height: 1.15;
  margin-bottom: 16px;
}

.demo-page .eyebrow {
  margin-bottom: 18px;
}

.demo-intro, .demo-note, .demo-item p, #demo-payment-slot {
  color: #b9c7d0;
  font-size: 14px;
  line-height: 1.6;
}

.demo-intro {
  margin: 0 0 28px;
}

.demo-card {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(18px, 3vw, 30px);
}

.demo-card h2 {
  font-size: 24px;
  margin-bottom: 14px;
}

.demo-notice {
  border-left: 2px solid var(--cyan);
  padding: 10px 14px;
  margin: 0 0 18px;
  background: #152329;
  color: #e3edf3;
  line-height: 1.5;
}

.demo-notice:empty {
  display: none;
}

.demo-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.demo-form label {
  display: grid;
  gap: 6px;
  color: #c6d2da;
  font-size: 13px;
}

.demo-wide {
  grid-column: 1 / -1;
}

.demo-form input, .demo-form select, .demo-form textarea, #demo-copy-data {
  min-width: 0;
  width: 100%;
  padding: 11px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid #495661;
  font: inherit;
}

.demo-form :is(input, select, textarea):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.demo-form button:disabled {
  opacity: .5;
  cursor: default;
}

.demo-transfer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

.demo-transfer img {
  display: block;
}

.demo-transfer dl {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.demo-transfer dt {
  color: var(--muted);
  font-size: 12px;
}

.demo-transfer dd {
  margin: 0 0 8px;
  font-size: 14px;
}

.demo-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.demo-item {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  overflow-wrap: anywhere;
}

.demo-item p {
  margin: 5px 0 10px;
  white-space: pre-wrap;
}

.demo-item .btn, .demo-actions .btn, #demo-reset {
  padding: 10px 12px;
}

#demo-reset {
  margin-top: 22px;
}

#demo-copy-data {
  margin-bottom: 12px;
}

#demo-public-reviews .demo-item:first-child {
  border-top: 0;
}

@media (max-width: 640px) {
  .demo-dashboard, .demo-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .demo-page {
    padding-top: 44px;
  }

  .demo-header-actions {
    gap: 5px 12px;
    justify-content: end;
  }

  .demo-header-actions .text-link {
    font-size: 11px;
  }

}

/* Booking calendar */
.booking-calendar, .calendar-time-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.booking-calendar legend {
  padding: 0;
  color: #c6d2da;
  font-size: 13px;
}

.calendar-toolbar, .calendar-grid {
  width: 100%;
  max-width: 330px;
  margin-inline: auto;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  text-align: center;
  margin-block: 8px 5px;
  font-size: 14px;
}

.calendar-toolbar button, .calendar-day {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
}

.calendar-toolbar button {
  font-size: 19px;
}

.calendar-toolbar button:disabled, .calendar-day:disabled {
  color: #74818b;
  cursor: default;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  justify-items: center;
  gap: 2px;
  text-align: center;
}

#calendar-week {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
}

.calendar-day {
  width: min(100%, 38px);
  padding: 0;
  font-size: 13px;
}

.calendar-day:not(:disabled) {
  background: rgba(19, 171, 209, .10);
  color: var(--cyan);
}

.calendar-day:not(:disabled):hover, .calendar-toolbar button:not(:disabled):hover {
  background: rgba(19, 171, 209, .2);
}

.calendar-day[aria-pressed="true"] {
  background: var(--cyan);
  color: var(--bg);
}

.calendar-day[aria-pressed="true"]:hover:not(:disabled) {
  background: var(--cyan);
}

.calendar-time-group {
  margin-top: 12px;
}

.demo-form .calendar-time {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  cursor: pointer;
}

.calendar-time input[type="radio"] {
  width: auto;
  accent-color: var(--cyan);
}

.calendar-time:has(:checked) {
  border-color: var(--cyan);
}

#calendar-times > p {
  margin: 10px 0 0;
}

.calendar-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.demo-form .booking-submit {
  background: var(--bg);
  border: 1px solid var(--cyan);
  border-radius: 9px;
  color: var(--cyan);
  text-transform: uppercase;
}

.demo-form .booking-submit:hover:not(:disabled),
.demo-form .booking-submit:focus-visible:not(:disabled) {
  background: var(--cyan);
  color: var(--bg);
}

.demo-rating {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.demo-rating legend {
  padding: 0;
  color: #c6d2da;
  font-size: 13px;
}

.demo-stars {
  display: flex;
  gap: 5px;
  margin-top: 4px;
}

.demo-stars label {
  position: relative;
  display: block;
  color: #63727e;
  cursor: pointer;
}

.demo-stars input {
  position: absolute;
  inset: 0;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.demo-stars span[aria-hidden="true"] {
  display: block;
  padding: 3px;
  font-size: clamp(23px, 5vw, 32px);
  line-height: 1.15;
}

.demo-stars label:has(:checked), .demo-stars label:has(~ label :checked),
.demo-stars label:hover, .demo-stars label:has(~ label:hover) {
  color: var(--cyan);
}

.demo-stars label:has(:focus-visible) {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.demo-review-stars {
  display: block;
  color: var(--cyan);
  letter-spacing: .12em;
  margin: 5px 0;
}

.demo-review-stars .empty {
  color: #63727e;
}

.demo-manual-review {
  margin-bottom: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.demo-manual-review summary {
  color: var(--cyan);
  cursor: pointer;
}

.demo-manual-review .demo-note {
  margin: 11px 0;
}

.demo-manual-review .demo-form {
  grid-template-columns: minmax(0, 1fr);
}

.billing-fields {
  margin-top: 9px;
}

.demo-invite-url {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
