.rv-calendar { min-width: 0; margin-block: 1.25rem; }
.rv-calendar [hidden] { display: none !important; }
.rv-calendar-nav { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: .5rem; margin-bottom: .65rem; }
.rv-calendar-nav button { min-height: 44px; border: 1px solid var(--rule, #8a9f7a); color: var(--ink, #2e2e2e); background: transparent; font: inherit; font-size: 1.25rem; border-radius: 4px; cursor: pointer; }
.rv-calendar-nav button:disabled { opacity: .4; cursor: default; }
.rv-calendar-heading { text-align: center; font-weight: 600; margin: 0; text-transform: capitalize; }
.rv-calendar-month > summary { min-height: 44px; padding-block: .6rem; text-transform: capitalize; cursor: pointer; }
.rv-calendar.is-enhanced .rv-calendar-month > summary { display: none; }
.rv-calendar-grid { table-layout: fixed; width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 1rem; }
.rv-calendar-grid th { font-weight: 600; text-align: center; padding-bottom: .4rem; }
.rv-calendar-grid abbr { text-decoration: none; }
.rv-calendar-grid td { padding: 0; vertical-align: top; text-align: center; border: 1px solid transparent; border-radius: 3px; }
.rv-calendar-date { display: flex; min-height: 45px; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: inherit; line-height: 1.1; padding: .25rem 0; }
.rv-calendar-date small { display: block; font-size: .7rem; min-height: .8rem; margin-top: .2rem; }
.rv-calendar-day:not(.has-session) { color: #595b53; }
.rv-calendar-day.has-session { background: #eef1e8; border-color: #8a9f7a; }
.rv-calendar-day.is-selected { background: #dce5d0; border: 2px solid #506742; font-weight: 600; }
.rv-calendar-day.is-past .rv-calendar-date > span { text-decoration: line-through; }
.rv-calendar-day.is-past { background: #efeee9; }
.rv-calendar-day.is-unavailable.has-session:not(.is-selected) { border-style: dashed; }
.rv-calendar-date[aria-current=date] { outline: 2px solid #506742; outline-offset: 1px; }
.rv-calendar-times { margin-top: .75rem; border-top: 1px solid var(--rule, #8a9f7a); padding-top: .5rem; }
.rv-calendar-times > summary { min-height: 44px; cursor: pointer; font-weight: 600; }
.rv-calendar-times fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.rv-calendar .rv-calendar-option { display: flex; align-items: center; gap: .65rem; min-height: 44px; padding-block: .35rem; }
.rv-calendar-option input { width: 22px; height: 22px; flex-shrink: 0; }
.rv-calendar-legend, .rv-calendar-selection { font-size: .875rem; line-height: 1.45; margin-block: .65rem 0; }
.rv-calendar-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; list-style: none; padding: 0; }
.rv-calendar-legend li { margin: 0; }
.rv-calendar-legend .is-absent, .rv-calendar-selection-mark { display: none; }
.rv-calendar-day.is-selected .rv-calendar-selection-mark { display: inline; }
.rv-calendar-past-key { text-decoration: line-through; }
.rv-calendar-schedules span { display: block; }
/* Native checked controls keep the same visual legend and highlighting without JavaScript. */
@supports selector(:has(input:checked)) {
  .rv-calendar.has-choices [data-calendar-legend="available"],
  .rv-calendar.has-choices [data-calendar-legend="selected"] { display: none; }
  .rv-calendar.has-choices:has(input[data-calendar-status="available"]:not(:checked):not(:disabled)) [data-calendar-legend="available"],
  .rv-calendar.has-choices:has(input:checked:not(:disabled)) [data-calendar-legend="selected"] { display: list-item; }
  .rv-appointment-form:has([name="another_date"]:checked) #appointment-available-dates { display: none; }
  .rv-appointment-form:has([name="another_date"]:checked) #appointment-another-date-note { display: block !important; }
  .rv-appointment-form:has([name="another_date"]:not(:checked)) #appointment-another-date-note { display: none !important; }
}
.rv-calendar :focus-visible { outline: 3px solid #506742; outline-offset: 3px; }
.rv-calendar-selection { font-weight: 600; }
.rv-application-reference { font-weight: 600; overflow-wrap: anywhere; }
