.colorstock-calendar.colorstock-calendar{--calendar-width:min(30rem,calc(100% - 1.2rem));--calendar-padding:.8rem;width:var(--calendar-width);padding:var(--calendar-padding);max-height:calc(100dvh - 1.2rem);overflow:auto;--calendar-ink:var(--text,var(--cream));--calendar-accent:var(--brand-accent,var(--copper2));--calendar-selection:var(--booking-selection,#1267b1);--calendar-selection-ink:#fff}
.colorstock-calendar-heading,.colorstock-calendar-navigation{display:flex;align-items:center;justify-content:space-between;gap:.5em;margin-bottom:.5em}
.colorstock-calendar-heading h2{margin:0;font-size:1.15em}
.colorstock-calendar-heading form{margin:0}
.colorstock-calendar-navigation{display:grid;grid-template-columns:max(44px,2.8em) minmax(0,1fr) 5.6em max(44px,2.8em);gap:.35em}
.colorstock-calendar-navigation>select{width:100%;min-width:0;min-height:2.8em;padding:.35em .25em;font:inherit;color:var(--calendar-ink);background:var(--field,var(--bg));border-color:var(--line)}
.colorstock-calendar-navigation>button{min-width:0;min-height:max(44px,2.8em);padding:.2em;font-size:inherit}
html[dir=rtl] .colorstock-calendar-navigation>button{transform:scaleX(-1)}
.colorstock-calendar table{table-layout:fixed;width:100%;min-width:0;border-collapse:separate;border-spacing:.15em;font-size:1.08em}
.colorstock-calendar th{font-size:.85em;color:var(--muted);font-weight:inherit;overflow-wrap:anywhere}
.colorstock-calendar th,.colorstock-calendar td{padding:0;text-align:center;border-bottom:0;letter-spacing:normal;text-transform:none}
.colorstock-calendar table button[data-calendar-date]{width:100%;min-width:0;min-height:2.7em;margin:0;padding:.2em 0;background:transparent;color:var(--calendar-ink);box-shadow:none;border:1px solid transparent;font-size:inherit;font-weight:inherit;transform:none;text-shadow:none}
.colorstock-calendar .colorstock-calendar-week{border-inline-end:1px solid var(--line)}
.colorstock-calendar table th button[data-calendar-date]{color:var(--calendar-ink);font-weight:800}
.colorstock-calendar tbody th{font-size:inherit}
.colorstock-calendar table button[data-calendar-date]:disabled{opacity:1;color:var(--muted);filter:none;cursor:default;font-weight:inherit}
.colorstock-calendar table .colorstock-calendar-adjacent>button[data-calendar-date]{color:var(--muted)}
.colorstock-calendar table td[aria-selected=true]>button[data-calendar-date]{background:var(--calendar-selection);color:var(--calendar-selection-ink);font-weight:800}
.colorstock-calendar table button[aria-current=date]{border-color:var(--calendar-accent)}
.colorstock-calendar table button:focus-visible{outline-offset:-2px}
.colorstock-calendar-footer{display:flex;justify-content:center;margin-top:.5em}
/* The host supplies the dialog/button theme; this sheet only arranges the shared calendar. */
.colorstock-calendar .colorstock-calendar-heading>button{min-width:2.7em;padding:.2em .7em}
.colorstock-calendar table{background:transparent;color:var(--calendar-ink)}
.colorstock-calendar table th{position:static;background:transparent}
@media(max-width:360px){.colorstock-calendar-navigation{grid-template-columns:max(44px,2.8em) minmax(0,1fr) max(44px,2.8em)}.colorstock-calendar-navigation>[data-calendar-part=YearChoice]{grid-column:2;grid-row:2}.colorstock-calendar-navigation>[data-calendar-part=Next]{grid-column:3;grid-row:1}}
@media(orientation:landscape) and (max-height:480px){
 .colorstock-calendar.colorstock-calendar{--calendar-width:min(38rem,calc(100% - 1.2rem));--calendar-padding:.5rem}
 .colorstock-calendar-heading,.colorstock-calendar-navigation{margin-bottom:.15em}
 .colorstock-calendar table button[data-calendar-date]{min-height:2em}
 .colorstock-calendar-footer{margin-top:.15em}
}

/* The inline host keeps the same controls and week grid without a modal. */
.colorstock-calendar.colorstock-calendar-inline{width:100%;max-height:none;overflow:visible;padding:0}
.colorstock-calendar-inline .colorstock-calendar-heading{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%)}
.colorstock-calendar-inline table button[data-calendar-date]{min-height:var(--calendar-inline-day-height,2.3em)}
.colorstock-calendar-inline .colorstock-calendar-navigation{grid-template-columns:max(44px,2.8em) minmax(0,1fr) 4.5em max(44px,2.8em)}
.colorstock-calendar-inline .colorstock-calendar-navigation>[data-calendar-part=YearChoice],.colorstock-calendar-inline .colorstock-calendar-navigation>[data-calendar-part=Next]{grid-column:auto;grid-row:auto}
