reezly-calendar-input {
  --rz-cal-ink: #141110;
  --rz-cal-muted: #7b716d;
  --rz-cal-dark: #191514;
  --rz-cal-panel: #fffaf5;
  --rz-cal-line: #eaded4;
  --rz-cal-soft: #f6eee7;
  --rz-cal-green: #2f8a61;
  --rz-cal-amber: #c6822d;
  --rz-cal-rose: #b85d67;
  --rz-cal-blue: #426b8f;
  --rz-cal-shadow: 0 24px 70px rgba(25, 21, 20, .22);
  position: relative;
  display: block;
  min-width: 0;
  color: var(--rz-cal-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rz-cal-source-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.rz-cal-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 8px 10px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.rz-cal-trigger-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #fff;
  background: var(--rz-cal-dark);
}

.rz-cal-trigger-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rz-cal-trigger-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.rz-cal-trigger-copy small,
.rz-cal-detail-kicker,
.rz-cal-panel-head span {
  color: var(--rz-cal-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.rz-cal-trigger-copy strong {
  overflow: hidden;
  color: var(--rz-cal-ink);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rz-cal-trigger-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 26px;
  margin-left: auto;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef7f1;
  color: var(--rz-cal-green);
  font-size: 11px;
  font-weight: 850;
}

.rz-cal-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 120;
  width: min(720px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  background: var(--rz-cal-panel);
  box-shadow: var(--rz-cal-shadow);
}

.rz-cal-inline .rz-cal-panel {
  position: static;
  width: 100%;
  border-color: rgba(255, 255, 255, .1);
  background:
    linear-gradient(145deg, rgba(255, 250, 245, .96), rgba(246, 238, 231, .96)),
    var(--rz-cal-panel);
  box-shadow: 0 18px 55px rgba(25, 21, 20, .1);
}

.rz-cal-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-bottom: 12px;
}

.rz-cal-panel-head strong {
  display: block;
  margin-top: 4px;
  color: var(--rz-cal-ink);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
}

.rz-cal-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--rz-cal-line);
  border-radius: 12px;
  background: #fff;
  color: var(--rz-cal-ink);
  font-size: 24px;
  line-height: 1;
}

.rz-cal-inline .rz-cal-close {
  display: none;
}

.rz-cal-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.rz-cal-quick button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--rz-cal-line);
  border-radius: 999px;
  background: #fff;
  color: #4f4642;
  font-size: 12px;
  font-weight: 850;
}

.rz-cal-quick button.is-active,
.rz-cal-quick button:hover {
  border-color: rgba(25, 21, 20, .16);
  background: var(--rz-cal-dark);
  color: #fff;
}

.rz-cal-month-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 12px;
  padding: 5px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--rz-cal-line);
}

.rz-cal-month-row strong {
  color: var(--rz-cal-ink);
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.rz-cal-month-row button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 11px;
  background: var(--rz-cal-soft);
  color: var(--rz-cal-ink);
  font-size: 26px;
  line-height: 1;
}

.rz-cal-month-row button:hover {
  background: var(--rz-cal-dark);
  color: #fff;
}

.rz-cal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, .42fr);
  gap: 14px;
  align-items: stretch;
}

.rz-cal-main,
.rz-cal-detail {
  min-width: 0;
}

.rz-cal-weekdays,
.rz-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.rz-cal-weekdays {
  gap: 6px;
  margin-bottom: 7px;
}

.rz-cal-weekdays span {
  color: var(--rz-cal-muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.rz-cal-grid {
  gap: 6px;
}

.rz-cal-day {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 6px;
  justify-items: center;
  gap: 4px;
  min-height: 66px;
  padding: 8px 4px 7px;
  border: 1px solid var(--rz-cal-line);
  border-radius: 15px;
  background: #fff;
  color: var(--rz-cal-ink);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.rz-cal-day:hover {
  transform: translateY(-1px);
  border-color: rgba(25, 21, 20, .22);
  background: #fffdf9;
}

.rz-cal-day:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.rz-cal-day span {
  color: inherit;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.rz-cal-day small {
  max-width: 100%;
  overflow: hidden;
  color: var(--rz-cal-muted);
  font-size: 9px;
  font-weight: 850;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rz-cal-day i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  height: 6px;
  font-style: normal;
}

.rz-cal-day i b,
.rz-cal-detail-status i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
}

.rz-cal-day i b:nth-child(2) {
  opacity: .62;
}

.rz-cal-day i b:nth-child(3) {
  opacity: .28;
}

.rz-cal-day.is-muted {
  background: rgba(255, 255, 255, .55);
}

.rz-cal-day.is-today {
  border-color: rgba(66, 107, 143, .34);
}

.rz-cal-day.is-selected {
  border-color: transparent;
  background: var(--rz-cal-dark);
  color: #fff;
  box-shadow: 0 12px 26px rgba(25, 21, 20, .18);
}

.rz-cal-day.is-selected small {
  color: rgba(255, 255, 255, .76);
}

.rz-status-available {
  color: var(--rz-cal-green);
}

.rz-status-limited {
  color: var(--rz-cal-amber);
}

.rz-status-busy,
.rz-status-blocked {
  color: var(--rz-cal-rose);
}

.rz-status-promo {
  color: var(--rz-cal-blue);
}

.rz-status-loading {
  color: #6f625d;
}

.rz-status-unknown {
  color: var(--rz-cal-muted);
}

.rz-cal-detail {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--rz-cal-line);
  border-radius: 18px;
  background: var(--rz-cal-dark);
  color: #fff;
}

.rz-cal-detail-kicker {
  color: rgba(255, 255, 255, .58);
}

.rz-cal-detail strong {
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.15;
}

.rz-cal-detail p {
  margin: 0;
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.rz-cal-detail-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  font-size: 12px;
  font-weight: 900;
}

.rz-cal-slots {
  display: grid;
  gap: 7px;
  margin-top: 2px;
  max-height: 280px;
  overflow: auto;
  padding-right: 2px;
}

.rz-cal-slots button,
.rz-cal-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.rz-cal-slots button strong {
  font-size: 13px;
}

.rz-cal-slots button span,
.rz-cal-empty {
  color: rgba(255, 255, 255, .64);
  font-size: 11px;
  font-weight: 750;
}

.rz-cal-slots button.is-selected {
  border-color: rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}

.rz-cal-slots button.is-selected span {
  color: rgba(255, 255, 255, .82);
}

.rz-cal-empty {
  justify-content: flex-start;
}

.market-input reezly-calendar-input {
  flex: 1 1 auto;
  min-width: 0;
}

.market-filter-row reezly-calendar-input {
  width: 100%;
}

.market-filter-row .rz-cal-trigger {
  min-height: 46px;
  border: 1px solid var(--market-soft-line, #eef2f7);
  background: #fff;
}

.market-filter-row .rz-cal-trigger-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.market-filter-row .rz-cal-trigger-badge {
  display: none;
}

.rz-cal-mode-range .rz-cal-panel {
  width: min(430px, calc(100vw - 32px));
}

.rz-cal-range-trigger {
  padding-right: 14px;
}

.rz-cal-range-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rz-cal-range-fields label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.rz-cal-range-fields span {
  color: var(--rz-cal-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rz-cal-range-fields input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--rz-cal-line);
  border-radius: 14px;
  outline: 0;
  background: #fff;
  color: var(--rz-cal-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

.rz-cal-range-fields input:focus {
  border-color: rgba(25, 21, 20, .28);
  box-shadow: 0 0 0 4px rgba(25, 21, 20, .08);
}

.rz-cal-range-value {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--rz-cal-line);
  border-radius: 14px;
  background: #fff;
  color: var(--rz-cal-ink);
  font-size: 13px;
  font-weight: 900;
}

.rz-cal-range-month {
  margin-top: 12px;
}

.rz-cal-range-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.rz-cal-range-day {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid var(--rz-cal-line);
  border-radius: 13px;
  background: #fff;
  color: var(--rz-cal-ink);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.rz-cal-range-day span {
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.rz-cal-range-day:hover {
  transform: translateY(-1px);
  border-color: rgba(25, 21, 20, .22);
  background: #fffdf9;
}

.rz-cal-range-day:disabled {
  cursor: not-allowed;
  opacity: .36;
}

.rz-cal-range-day.is-muted {
  background: rgba(255, 255, 255, .55);
}

.rz-cal-range-day.is-between {
  border-color: rgba(25, 21, 20, .08);
  background: #eee3da;
  color: #2b2522;
}

.rz-cal-range-day.is-start,
.rz-cal-range-day.is-end {
  border-color: transparent;
  background: var(--rz-cal-dark);
  color: #fff;
  box-shadow: 0 10px 22px rgba(25, 21, 20, .16);
}

.rz-cal-range-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.rz-cal-range-presets button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--rz-cal-line);
  border-radius: 999px;
  background: #fff;
  color: #4f4642;
  font-size: 12px;
  font-weight: 850;
}

.rz-cal-range-presets button:hover {
  background: var(--rz-cal-dark);
  color: #fff;
}

.rz-cal-range-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.rz-cal-range-actions button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  background: var(--rz-cal-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.booking-calendar-shell-rich {
  padding: 0;
  border: 0;
  background: transparent;
}

.booking-term-layout-calendar {
  grid-template-columns: minmax(0, 1fr);
}

.booking-term-layout-calendar .booking-slots-shell {
  display: none;
}

.booking-calendar-shell-rich .booking-calendar-head,
.booking-calendar-shell-rich #bookingDateGrid {
  display: none;
}

.booking-calendar-shell-rich reezly-calendar-input {
  --rz-cal-dark: var(--booking-accent-strong, #2a1f1f);
  --rz-cal-green: #2f8a61;
  --rz-cal-amber: #b6782a;
  --rz-cal-rose: #af5360;
  --rz-cal-blue: #426b8f;
}

@media (max-width: 760px) {
  reezly-calendar-input.is-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(15, 13, 13, .54);
    backdrop-filter: blur(6px);
  }

  .rz-cal-panel {
    position: fixed;
    inset: auto 10px 10px;
    z-index: 1000;
    width: auto;
    max-height: calc(100dvh - 22px);
    overflow: auto;
    padding: 14px;
    border-radius: 24px 24px 18px 18px;
  }

  .rz-cal-layout {
    grid-template-columns: 1fr;
  }

  .rz-cal-day {
    min-height: 58px;
    border-radius: 13px;
  }

  .rz-cal-day small {
    display: none;
  }

  .rz-cal-detail {
    border-radius: 16px;
  }

  .rz-cal-range-fields {
    grid-template-columns: 1fr;
  }

  .booking-page.is-booking-term-step .booking-calendar-shell-rich reezly-calendar-input.rz-cal-inline {
    height: 100%;
    min-height: 0;
  }

  .booking-page.is-booking-term-step .booking-calendar-shell-rich reezly-calendar-input.rz-cal-inline .rz-cal-panel {
    position: static;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    height: 100%;
    max-height: none;
    overflow: hidden;
    padding: 10px;
    border-radius: 18px;
  }

  .booking-page.is-booking-term-step .booking-calendar-shell-rich .rz-cal-panel-head {
    margin-bottom: 8px;
  }

  .booking-page.is-booking-term-step .booking-calendar-shell-rich .rz-cal-panel-head strong {
    margin-top: 2px;
    font-size: 15px;
  }

  .booking-page.is-booking-term-step .booking-calendar-shell-rich .rz-cal-month-row {
    min-height: 38px;
    margin-bottom: 8px;
  }

  .booking-page.is-booking-term-step .booking-calendar-shell-rich .rz-cal-month-row button {
    width: 30px;
    height: 30px;
  }

  .booking-page.is-booking-term-step .booking-calendar-shell-rich .rz-cal-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(132px, 1fr);
    gap: 8px;
    min-height: 0;
    overflow: hidden;
  }

  .booking-page.is-booking-term-step .booking-calendar-shell-rich .rz-cal-main,
  .booking-page.is-booking-term-step .booking-calendar-shell-rich .rz-cal-detail {
    min-height: 0;
  }

  .booking-page.is-booking-term-step .booking-calendar-shell-rich .rz-cal-weekdays {
    gap: 4px;
    margin-bottom: 5px;
  }

  .booking-page.is-booking-term-step .booking-calendar-shell-rich .rz-cal-grid {
    gap: 4px;
  }

  .booking-page.is-booking-term-step .booking-calendar-shell-rich .rz-cal-day {
    min-height: clamp(36px, 6.8dvh, 48px);
    padding: 5px 2px;
    border-radius: 12px;
  }

  .booking-page.is-booking-term-step .booking-calendar-shell-rich .rz-cal-detail {
    display: grid;
    grid-template-rows: auto auto auto minmax(92px, 1fr);
    gap: 6px;
    overflow: hidden;
    padding: 10px;
    border-radius: 15px;
  }

  .booking-page.is-booking-term-step .booking-calendar-shell-rich .rz-cal-detail strong {
    font-size: 16px;
  }

  .booking-page.is-booking-term-step .booking-calendar-shell-rich .rz-cal-detail p {
    font-size: 11px;
    line-height: 1.3;
  }

  .booking-page.is-booking-term-step .booking-calendar-shell-rich .rz-cal-detail-status {
    min-height: 24px;
    font-size: 11px;
  }

  .booking-page.is-booking-term-step .booking-calendar-shell-rich .rz-cal-slots {
    min-height: 92px;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .booking-page.is-booking-term-step .booking-calendar-shell-rich .rz-cal-slots button,
  .booking-page.is-booking-term-step .booking-calendar-shell-rich .rz-cal-empty {
    min-height: 36px;
    padding: 7px 10px;
  }
}

@media (max-width: 520px) {
  .rz-cal-trigger {
    min-height: 52px;
    padding: 7px;
  }

  .rz-cal-trigger-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .rz-cal-trigger-badge {
    display: none;
  }

  .rz-cal-panel-head strong {
    font-size: 16px;
  }

  .rz-cal-month-row {
    min-height: 42px;
  }

  .rz-cal-grid {
    gap: 5px;
  }

  .rz-cal-day {
    min-height: 52px;
    padding: 7px 2px 6px;
  }

  .rz-cal-day span {
    font-size: 14px;
  }

  .rz-cal-day i b {
    width: 4px;
    height: 4px;
  }

  .rz-cal-detail {
    padding: 14px;
  }
}

@media (max-width: 760px) and (max-height: 720px) {
  .booking-page.is-booking-term-step .booking-calendar-shell-rich reezly-calendar-input.rz-cal-inline .rz-cal-panel {
    padding: 8px;
  }

  .booking-page.is-booking-term-step .booking-calendar-shell-rich .rz-cal-panel-head {
    display: none;
  }

  .booking-page.is-booking-term-step .booking-calendar-shell-rich .rz-cal-month-row {
    min-height: 34px;
    margin-bottom: 6px;
  }

  .booking-page.is-booking-term-step .booking-calendar-shell-rich .rz-cal-day {
    min-height: clamp(32px, 6.1dvh, 42px);
    border-radius: 10px;
  }

  .booking-page.is-booking-term-step .booking-calendar-shell-rich .rz-cal-day span {
    font-size: 13px;
  }

  .booking-page.is-booking-term-step .booking-calendar-shell-rich .rz-cal-detail {
    grid-template-rows: auto auto minmax(86px, 1fr);
  }

  .booking-page.is-booking-term-step .booking-calendar-shell-rich .rz-cal-detail p,
  .booking-page.is-booking-term-step .booking-calendar-shell-rich .rz-cal-detail-status {
    display: none;
  }
}
