/* LHR date picker (6.6): the calendar behind the "Preferred date" field. Tokens only. */
.dp { position: relative; }
.dp__input { cursor: pointer; padding-right: 2.75em !important; }
.dp__icon { position: absolute; right: 0.9em; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); pointer-events: auto; cursor: pointer; color: var(--ink-2);
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") no-repeat center / contain; }
.dp.is-open .dp__input { border-color: var(--c-white); }

.dp__pop { position: absolute; z-index: 60; left: 0; top: calc(100% + 6px); width: min(340px, calc(100vw - 2 * var(--gutter, 16px)));
	padding: var(--s-3); border-radius: var(--radius-lg); background: var(--c-white); color: var(--c-ink);
	box-shadow: 0 18px 50px rgba(14, 22, 32, .28); animation: dp-in .18s var(--ease); }
.dp__pop--up { top: auto; bottom: calc(100% + 6px); animation-name: dp-in-up; }
@keyframes dp-in-up { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.dp__backdrop { display: none; }
.dp__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-2); }
.dp__title { font-weight: 800; font-size: var(--fs-1); }
.dp__nav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--c-line); background: var(--c-white); color: var(--c-ink); cursor: pointer; display: grid; place-items: center; }
.dp__nav::before { content: ""; width: 9px; height: 9px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: 3px; }
.dp__nav--next::before { transform: rotate(-135deg); margin-left: -3px; }
.dp__nav:hover { background: var(--c-cloud); }
.dp__nav:disabled { opacity: .3; cursor: default; }
.dp__grid { display: grid; gap: 2px; }
.dp__week, .dp__row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp__dow { font-size: 0.72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--c-slate); text-align: center; padding: 6px 0; }
.dp__day { aspect-ratio: 1; min-height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--c-ink); font: inherit; font-weight: 600; cursor: pointer; display: grid; place-items: center; position: relative; }
.dp__day:hover:not(:disabled) { background: var(--c-cloud); }
.dp__day:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 1px; }
.dp__day.is-today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--c-accent); transform: translateX(-50%); }
.dp__day.is-selected { background: var(--c-ink); color: var(--c-white); }
.dp__day.is-selected.is-today::after { background: var(--c-gold); }
.dp__day.is-off { color: var(--c-line-dark); opacity: .35; cursor: default; text-decoration: line-through; }
.dp__day.is-closed { text-decoration: line-through; }
.dp__foot { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-2); padding-top: var(--s-2); border-top: 1px solid var(--c-line); font-size: var(--fs-0); color: var(--c-slate); }
.dp__note { flex: 1; }
.dp__clear, .dp__done { border: 0; background: transparent; color: var(--c-ink); font: inherit; font-weight: 700; cursor: pointer; padding: 6px 10px; border-radius: var(--radius); }
.dp__done { background: var(--c-ink); color: var(--c-white); }
.dp__clear:hover { background: var(--c-cloud); }
@keyframes dp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
	.dp__backdrop { display: block; position: fixed; inset: 0; z-index: 59; background: rgba(14, 22, 32, .55); }
	.dp__pop { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 86vh; overflow: auto; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: var(--s-4) var(--s-4) calc(var(--s-4) + env(safe-area-inset-bottom)); animation: dp-up .22s var(--ease); }
	.dp__day { min-height: 44px; }
	@keyframes dp-up { from { transform: translateY(100%); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .dp__pop { animation: none; } }
