.yb-booking-lock {
  overflow: hidden;
}

.yb-booking-backdrop[hidden] {
  display: none;
}

.yb-booking-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(42, 33, 27, .34);
  backdrop-filter: blur(14px);
}

.yb-booking-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  width: min(980px, 100%);
  max-height: min(780px, calc(100svh - 36px));
  overflow: hidden;
  color: var(--fg, #2a211b);
  background: var(--surface, #fff);
  border: 1px solid var(--border, #ebe8e1);
  border-radius: 14px;
  box-shadow: var(--shadow-window, 0 40px 90px rgba(39, 34, 29, .16));
}

.yb-booking-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 580px;
  padding: 28px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(201, 100, 66, .24), transparent 58%),
    #2a211b;
}

.yb-booking-kicker {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.yb-booking-side h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.02;
}

.yb-booking-side p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .74);
  font-size: 14px;
  line-height: 1.55;
}

.yb-booking-meta {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.yb-booking-meta span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
}

.yb-booking-meta span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #c96442;
  box-shadow: 0 0 0 4px rgba(201, 100, 66, .18);
}

.yb-booking-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .84);
  font-size: 13px;
  font-weight: 700;
}

.yb-booking-brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.yb-booking-panel {
  position: relative;
  min-width: 0;
  max-height: min(780px, calc(100svh - 36px));
  overflow: auto;
  padding: 28px;
}

.yb-booking-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border, #ebe8e1);
  border-radius: 8px;
  color: var(--muted, #746f67);
  background: var(--surface, #fff);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.yb-booking-close:hover {
  color: var(--strong, #2a211b);
  border-color: color-mix(in oklch, var(--accent, #c96442) 42%, var(--border, #ebe8e1));
}

.yb-booking-content {
  min-height: 520px;
  padding-top: 10px;
}

.yb-booking-topline {
  max-width: 620px;
  padding-right: 44px;
}

.yb-booking-topline h3 {
  margin: 0;
  color: var(--strong, #2a211b);
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
}

.yb-booking-topline p {
  margin: 10px 0 0;
  color: var(--muted, #746f67);
  font-size: 14px;
  line-height: 1.55;
}

.yb-booking-alert {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid color-mix(in oklch, var(--accent, #c96442) 30%, var(--border, #ebe8e1));
  border-radius: 8px;
  color: var(--fg, #2a211b);
  background: color-mix(in oklch, var(--accent-soft, #f6e7df) 70%, white);
  font-size: 13px;
  line-height: 1.45;
}

.yb-booking-alert[data-tone="danger"] {
  border-color: rgba(185, 61, 45, .24);
  background: #fff0ec;
}

.yb-booking-loader {
  display: grid;
  place-items: center;
  min-height: 360px;
  color: var(--muted, #746f67);
  font-size: 14px;
}

.yb-booking-scheduler {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(220px, .82fr);
  gap: 22px;
  margin-top: 24px;
}

.yb-booking-month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.yb-booking-month strong {
  color: var(--strong, #2a211b);
  font-family: var(--font-display, Georgia, serif);
  font-size: 23px;
  font-weight: 650;
}

.yb-booking-icon-row {
  display: inline-flex;
  gap: 8px;
}

.yb-booking-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border, #ebe8e1);
  border-radius: 8px;
  color: var(--fg, #2a211b);
  background: var(--surface, #fff);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}

.yb-booking-icon-btn:hover:not(:disabled) {
  border-color: color-mix(in oklch, var(--accent, #c96442) 42%, var(--border, #ebe8e1));
  background: var(--subtle, #f4f2ed);
}

.yb-booking-icon-btn:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.yb-booking-weekdays,
.yb-booking-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.yb-booking-weekdays {
  margin-bottom: 8px;
  color: var(--muted, #746f67);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.yb-booking-day {
  display: inline-grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--fg, #2a211b);
  background: var(--subtle, #f4f2ed);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.yb-booking-day:hover:not(:disabled) {
  border-color: color-mix(in oklch, var(--accent, #c96442) 42%, var(--border, #ebe8e1));
}

.yb-booking-day[aria-pressed="true"] {
  color: #fff;
  background: var(--accent, #c96442);
}

.yb-booking-day:disabled {
  cursor: not-allowed;
  color: color-mix(in oklch, var(--muted, #746f67) 45%, white);
  background: transparent;
}

.yb-booking-empty {
  aspect-ratio: 1;
}

.yb-booking-slots {
  min-height: 318px;
  padding: 18px;
  border: 1px solid var(--border, #ebe8e1);
  border-radius: 10px;
  background: color-mix(in oklch, var(--bg, #faf9f7) 62%, white);
}

.yb-booking-slots h4 {
  margin: 0 0 4px;
  color: var(--strong, #2a211b);
  font-family: var(--font-display, Georgia, serif);
  font-size: 21px;
  line-height: 1.15;
}

.yb-booking-slots p {
  margin: 0 0 14px;
  color: var(--muted, #746f67);
  font-size: 13px;
  line-height: 1.45;
}

.yb-booking-slot-list {
  display: grid;
  gap: 9px;
}

.yb-booking-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--border, #ebe8e1);
  border-radius: 8px;
  color: var(--fg, #2a211b);
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.yb-booking-slot:hover {
  border-color: color-mix(in oklch, var(--accent, #c96442) 42%, var(--border, #ebe8e1));
}

.yb-booking-slot span:last-child {
  color: var(--muted, #746f67);
  font-size: 12px;
  font-weight: 650;
}

.yb-booking-muted {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: var(--muted, #746f67);
  font-size: 14px;
  text-align: center;
}

.yb-booking-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.yb-booking-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border, #ebe8e1);
  border-radius: 999px;
  color: var(--fg, #2a211b);
  background: var(--subtle, #f4f2ed);
  font-size: 13px;
  font-weight: 700;
}

.yb-booking-form {
  display: grid;
  gap: 14px;
  max-width: 620px;
  margin-top: 24px;
}

.yb-booking-field {
  display: grid;
  gap: 7px;
}

.yb-booking-field label {
  color: var(--strong, #2a211b);
  font-size: 13px;
  font-weight: 750;
}

.yb-booking-field input,
.yb-booking-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border, #ebe8e1);
  border-radius: 8px;
  color: var(--fg, #2a211b);
  background: #fff;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.yb-booking-field textarea {
  min-height: 102px;
  resize: vertical;
}

.yb-booking-field input:focus,
.yb-booking-field textarea:focus {
  border-color: var(--accent, #c96442);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent, #c96442) 18%, transparent);
}

.yb-booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.yb-booking-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border, #ebe8e1);
  border-radius: 8px;
  color: var(--fg, #2a211b);
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.yb-booking-btn:hover:not(:disabled) {
  border-color: color-mix(in oklch, var(--accent, #c96442) 42%, var(--border, #ebe8e1));
}

.yb-booking-btn[data-variant="primary"] {
  border-color: var(--accent, #c96442);
  color: #fff;
  background: var(--accent, #c96442);
}

.yb-booking-btn:disabled {
  cursor: wait;
  opacity: .68;
}

.yb-booking-success {
  display: grid;
  align-content: center;
  min-height: 470px;
}

.yb-booking-success-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--green, #328f57);
  font-size: 26px;
  font-weight: 800;
}

.yb-booking-success h3 {
  margin: 0;
  color: var(--strong, #2a211b);
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(30px, 4vw, 44px);
}

.yb-booking-success p {
  max-width: 560px;
  margin: 12px 0 0;
  color: var(--muted, #746f67);
  font-size: 15px;
  line-height: 1.58;
}

@media (max-width: 820px) {
  .yb-booking-backdrop {
    align-items: end;
    padding: 10px;
  }

  .yb-booking-modal {
    grid-template-columns: 1fr;
    max-height: calc(100svh - 20px);
  }

  .yb-booking-side {
    min-height: 0;
    padding: 22px;
  }

  .yb-booking-side p,
  .yb-booking-meta {
    display: none;
  }

  .yb-booking-panel {
    max-height: calc(100svh - 170px);
    padding: 22px;
  }

  .yb-booking-content {
    min-height: 430px;
  }

  .yb-booking-scheduler {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .yb-booking-backdrop {
    padding: 0;
  }

  .yb-booking-modal {
    width: 100%;
    max-height: 100svh;
    border-radius: 0;
  }

  .yb-booking-panel {
    max-height: calc(100svh - 132px);
    padding: 18px;
  }

  .yb-booking-weekdays,
  .yb-booking-grid {
    gap: 5px;
  }

  .yb-booking-slots {
    padding: 14px;
  }

  .yb-booking-actions {
    display: grid;
  }
}
