.booking-calendar {
  width: 100%;
  max-width: 504px;
  padding: 38px 36px 30px;
  border-radius: 24px;
  color: #fff;
  background: #42523a;
  font-family: inherit;
}

.booking-calendar__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 36px;
}

.booking-calendar__month {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
}

.booking-calendar__nav {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #d2ba98;
  background: transparent;
  cursor: pointer;
}

.booking-calendar__nav::before {
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.booking-calendar__nav--previous::before { transform: rotate(-135deg); }
.booking-calendar__nav:disabled { opacity: .28; cursor: default; }

.booking-calendar__grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  table-layout: fixed;
}

.booking-calendar__grid th {
  height: 24px;
  padding: 0 0 10px;
  color: #ecede8;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.booking-calendar__grid td {
  padding: 0;
  border: 0;
  text-align: center;
}

.booking-calendar__day {
  display: inline-grid;
  width: min(100%, 46px);
  min-width: 30px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.booking-calendar__day.is-outside { color: #c9d0c3; }
.booking-calendar__day[aria-current="date"] { box-shadow: inset 0 0 0 1px #c5ceb9; }
.booking-calendar__day:disabled { color: #9ba591; cursor: default; }
.booking-calendar__day.is-selected { color: #42523a; background: #d2ba98; box-shadow: none; }
.booking-calendar__range { color:#42523a; background:#d2ba98; }
.booking-calendar__grid[aria-multiselectable="true"] td[aria-selected="true"] { color:#42523a; background:#d2ba98; }
.booking-calendar__grid[aria-multiselectable="true"] td[aria-selected="true"] .booking-calendar__day { color:inherit; background:transparent; }
.booking-calendar__grid[aria-multiselectable="true"] td[aria-selected="true"]:not(td[aria-selected="true"] + td) { border-radius:30px 0 0 30px; }
.booking-calendar__grid[aria-multiselectable="true"] td[aria-selected="true"]:not(:has(+ td[aria-selected="true"])) { border-top-right-radius:30px; border-bottom-right-radius:30px; }
/* Six-week months fit the same calendar panel without clipping dates. */
.booking-calendar:has(tbody tr:nth-child(6)) .booking-calendar__grid { border-spacing:0 6px; }
.booking-calendar:has(tbody tr:nth-child(6)) .booking-calendar__day { height:40px; }

@media (hover: hover) {
  .booking-calendar__day:not(:disabled):not(.is-selected):hover,
  .booking-calendar__nav:not(:disabled):hover { background: rgba(255, 255, 255, .12); }
}

.booking-calendar__day:focus-visible,
.booking-calendar__nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.booking-calendar__status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .booking-calendar { padding: 28px 18px 24px; }
  .booking-calendar__header { margin-bottom: 25px; }
  .booking-calendar__month { font-size: 18px; }
  .booking-calendar__day { height: 40px; font-size: 16px; }
  .booking-calendar__grid { border-spacing: 0 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .booking-calendar__day { transition: none; }
}
