/* Calendar widget (dates.js). Uses --gold from the page, with a fallback. */
.dfield { position: relative; display: inline-block; max-width: 100%; }
.dfield.inline { display: block; }
.dinput { min-width: 11rem; cursor: pointer; }
.cal { width: 100%; max-width: 340px; padding: 12px; background: #fff; border: 1px solid #ced4da; color: #212529; font-family: inherit; font-size: 1rem; line-height: 1.4; }
.dfield:not(.inline) .cal { position: absolute; z-index: 60; top: 100%; left: 0; margin-top: 4px; min-width: 300px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 600; text-transform: capitalize; }
.cal-head button { width: 36px; height: 36px; padding: 0; font-family: inherit; font-size: 1.4rem; line-height: 1; color: var(--gold, #b47f41); background: #fff; border: 1px solid var(--gold, #b47f41); cursor: pointer; }
.cal-head button:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-dow { padding: 4px 0; font-size: .75rem; color: #6c6258; text-transform: capitalize; }
.day { aspect-ratio: 1; padding: 0; font: inherit; color: inherit; background: none; border: 0; border-radius: 50%; cursor: pointer; }
.day:hover:not(:disabled) { background: #f3e8d9; }
.day:disabled { color: #bbb; cursor: default; }
.day.today { box-shadow: inset 0 0 0 1px var(--gold, #b47f41); }
.day[aria-pressed="true"] { color: #fff; background: var(--gold, #b47f41); }
.picked { min-height: 1.4em; margin: .6rem 0 0; font-weight: 600; }

/* Phones: full-width inline calendar, big tap targets, popups that stay on screen */
.dfield.inline .cal { max-width: 420px; }
.day { min-height: 40px; }
.cal-head button { width: 44px; height: 44px; }
.dfield:not(.inline) .cal { max-width: calc(100vw - 32px); }
@media (max-width: 767px) { .dfield.inline .cal { max-width: none; } }

/* Days with no free time (full, closed or blocked) */
.day.full:disabled { color: #bbb; text-decoration: line-through; }
