/* Calendario di Balla Tango (assets/js/datepicker.js): carta, inchiostro, bordeaux, doppio filo come le schede. */
/* Il contenitore è .bt-datefield: .bt-date è già la riga delle "Prossime date" del tema. */
.bt-datefield { position: relative; }
.bt-date__btn {
	display: flex; align-items: center; gap: .5rem; width: 100%; min-height: 2.75rem; padding: .5rem .75rem;
	border: 1px solid var(--bt-c-linea, #b9ae9f); background: var(--bt-c-carta, #fffaf1); color: var(--bt-c-inchiostro, #2a1d18);
	font: inherit; font-size: var(--bt-fs-s, .9rem); text-align: left; cursor: pointer;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; /* la data non va mai a capo */
}
.bt-date__btn::before {
	content: ""; flex: none; width: 1.1rem; height: 1.1rem; background-color: var(--bt-c-bordeaux, #8b1e1e);
	-webkit-mask: var(--bt-svg-calendario) center / contain no-repeat; mask: var(--bt-svg-calendario) center / contain no-repeat;
}
.bt-date__btn.is-empty { color: var(--bt-c-seppia, #6b5e57); }
.bt-date__btn:focus-visible, .bt-date__btn[aria-expanded="true"] { outline: none; border-color: var(--bt-c-inchiostro, #2a1d18); box-shadow: 0 0 0 2px var(--bt-c-bordeaux, #8b1e1e); }

.bt-cal {
	position: absolute; z-index: 60; top: calc(100% + .5rem); left: 0; width: 18.5rem; padding: .75rem;
	background: var(--bt-c-avorio, #f5ecdc); color: var(--bt-c-inchiostro, #2a1d18);
	border: 1px solid var(--bt-c-inchiostro, #2a1d18); outline: 1px solid var(--bt-c-inchiostro, #2a1d18); outline-offset: .25rem;
	box-shadow: 0 1rem 2.5rem rgba(20, 10, 5, .25);
}
.bt-cal[hidden] { display: none; }
.bt-finder__dates label:last-child .bt-cal { left: auto; right: 0; }
.bt-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.bt-cal__title { margin: 0; font-size: var(--bt-fs-l, 1.2rem); font-weight: 700; font-stretch: var(--bt-stretch-titoli, 75%); text-transform: capitalize; }
.bt-cal__nav {
	display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 1px solid transparent;
	background: none; color: var(--bt-c-bordeaux, #8b1e1e); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.bt-cal__nav:hover { border-color: var(--bt-c-linea, #b9ae9f); }
.bt-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.bt-cal__dow { padding: .25rem 0; text-align: center; font-size: var(--bt-fs-xs, .75rem); text-transform: uppercase; letter-spacing: .05em; color: var(--bt-c-seppia, #6b5e57); }
.bt-cal__day {
	aspect-ratio: 1; display: grid; place-items: center; padding: 0; border: 1px solid transparent; background: none;
	color: inherit; font: inherit; font-size: var(--bt-fs-s, .9rem); font-weight: 600; cursor: pointer;
}
.bt-cal__day.is-weekend { color: var(--bt-c-bordeaux, #8b1e1e); }
.bt-cal__day:hover:not([disabled]) { border-color: var(--bt-c-inchiostro, #2a1d18); }
.bt-cal__day:focus-visible { outline: 2px solid var(--bt-c-bordeaux, #8b1e1e); outline-offset: -2px; }
.bt-cal__day.is-today { box-shadow: inset 0 -3px 0 var(--bt-c-bordeaux, #8b1e1e); }
.bt-cal__day.is-sel { background: var(--bt-c-bordeaux, #8b1e1e); color: var(--bt-c-crema, #fff3e0); }
.bt-cal__day[disabled] { color: var(--bt-c-linea, #b9ae9f); font-weight: 400; cursor: default; }
.bt-cal__foot { display: flex; justify-content: space-between; margin-top: .5rem; padding-top: .5rem; border-top: 1px solid var(--bt-c-linea, #b9ae9f); }
.bt-cal__link { padding: 0; border: 0; background: none; color: var(--bt-c-bordeaux, #8b1e1e); font: inherit; font-size: var(--bt-fs-s, .9rem); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
@media (max-width: 30rem) {
	.bt-cal { position: fixed; top: auto; bottom: 1rem; left: 1rem; right: 1rem; width: auto; }
	.bt-finder__dates label:last-child .bt-cal { left: 1rem; right: 1rem; }
}
