@layer booking-calendar {
  .request-calendar { max-width: 460px; margin: 1.2rem 0 1.6rem; }
  .calendar-tabs button { display: grid; gap: 4px; padding: 11px 6px; text-align: left; font-size: 12px; }
  .calendar-tabs button+button { padding-left: 16px; }
  .calendar-tabs button span { font-weight: 600; }
  .calendar-tabs button small { font-size: 11px; color: var(--muted); font-weight: 400; }
  .calendar-heading { padding: 12px 0 8px; }
  .calendar-heading strong { font-size: 13px; font-weight: 600; }
  .calendar-heading button { width: 36px; height: 36px; }
  .calendar-heading button[aria-disabled="true"] { opacity: .3; cursor: not-allowed; }
  .calendar-week { gap: 5px; }
  .calendar-week span { font-size: 10px; padding: 4px 0 8px; }
  .calendar-grid { gap: 5px; }
  .calendar-grid .calendar-day { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; height: 52px; min-height: 44px; padding: 4px 1px; font-size: 13px; line-height: 1.1; border: 1px solid #dce0d6; background: #fff; color: var(--ink); text-decoration: none; transition: background .16s ease, border-color .16s ease; }
  .calendar-day-number { display: flex; justify-content: center; align-items: baseline; gap: 3px; }
  .calendar-day-number b { font-size: 8px; font-weight: 700; }
  .calendar-grid .calendar-day small { display: block; min-height: 9px; font-size: 8px; font-weight: 400; line-height: 1.1; }
  .calendar-grid .calendar-day[aria-disabled="true"] { border-color: transparent; background: #eff0ec; color: #777f77; cursor: help; }
  .calendar-grid .calendar-day[data-date-status="full"],
  .calendar-grid .calendar-day[data-date-status="closed"],
  .calendar-grid .calendar-day[data-date-status="holiday"] { border: 1px dashed #bbc1b6; background: #eceee8; }
  .calendar-grid .calendar-day.in-range { background: #f5e8dc; border-color: #e8d9cb; }
  .calendar-grid .calendar-day.in-range[aria-disabled="true"] { background: #f2ece5; border-color: transparent; }
  .calendar-grid .calendar-day.has-selection { background: #fff; color: #703a1c; border: 2px solid var(--orange); font-weight: 600; }
  .calendar-grid .calendar-day[aria-pressed="true"] { background: var(--orange); border: 2px solid var(--orange); color: #1e281e; }
  .calendar-grid .calendar-day.has-selection[aria-disabled="true"] { border-style: dashed; }
  .calendar-grid .calendar-day[aria-current="date"] .calendar-day-number { text-decoration: underline; text-underline-offset: 4px; }
  .calendar-grid .calendar-day:hover { border-color: var(--orange); background: #f6e8db; color: #263126; }
  .calendar-grid .calendar-day[aria-disabled="true"]:hover { background: #e5e8df; border-color: #aab3a1; }
  .calendar-grid .calendar-day:focus-visible, .calendar-tabs button:focus-visible,
  .calendar-actions button:focus-visible, .calendar-heading button:focus-visible { outline: 2px solid #38452f; outline-offset: 2px; }
  .calendar-legend { display: flex; flex-wrap: wrap; gap: 9px 16px; align-items: center; margin: 14px 0 12px; font-size: 10px; color: var(--muted); }
  .calendar-legend span { display: flex; align-items: center; gap: 5px; }
  .calendar-legend i { display: inline-block; width: 11px; height: 11px; border: 1px solid #bdc5b7; background: #fff; }
  .calendar-legend .legend-blocked { background: #eceee8; border-style: dashed; }
  .calendar-legend b { display: inline-flex; justify-content: center; align-items: center; font-size: 9px; width: 15px; height: 15px; border: 1px solid var(--orange); color: #703a1c; }
  .calendar-status { margin: 0 0 12px; font-size: 11px; line-height: 1.6; color: var(--muted); }
  .calendar-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
  .calendar-actions .text-link { font-size: 11px; padding-block: 5px; }
  .calendar-actions .text-link:disabled, .calendar-actions [aria-disabled="true"] { color: var(--muted); opacity: .6; cursor: wait; }
  .calendar-actions .text-link:disabled { cursor: not-allowed; }
  .calendar-keyboard-note { margin: 8px 0 0; font-size: 9px; line-height: 1.5; color: var(--muted); }
  .calendar-feedback:not(:empty) { padding: 11px 13px; margin: 12px 0 20px; border-left: 2px solid var(--orange); background: #f3f0e9; font-size: 11px; line-height: 1.65; }
  .form-field input[type="date"]:disabled { background: #f0f1ed; color: #737b70; opacity: 1; cursor: not-allowed; }
  .request-calendar[aria-busy="true"] .calendar-grid { opacity: .65; }
  @media (max-width: 480px) {
    .calendar-grid, .calendar-week { gap: 3px; }
    .calendar-grid .calendar-day { height: 49px; font-size: 12px; }
    .calendar-grid .calendar-day small { font-size: 7px; }
    .calendar-legend { gap: 8px 12px; font-size: 9px; }
    .calendar-actions { gap: 7px 15px; }
    .calendar-keyboard-note { display: none; }
  }
  @media (prefers-reduced-motion: reduce) { .calendar-grid .calendar-day { transition: none; } }
}
