/**
 * Booking modal — „За кого е часът?“ (template-parts/booking/components/patient-picker.php,
 * assets/js/booking-patients.js). Plain CSS, no build. OFF-CATALOG: composed from the
 * booking pills (.booking-pill) and the patient form fields; tokens only, no shadows
 * (everything here sits in the modal's flow).
 */
.zd-patient-picker__question {
	margin: 0 0 0.75rem;
}

.zd-patient-picker__options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.zd-patient-picker__options .booking-pill {
	flex: 0 1 auto;
}

.zd-patient-picker__meta {
	margin-left: 0.375rem;
	font-weight: 400;
	color: var(--wp--preset--color--base-dark);
}

.zd-patient-picker__birth {
	margin-top: 1rem;
}

.zd-patient-picker__birth[hidden],
.zd-patient-picker__save[hidden],
.zd-patient-picker__warning[hidden] {
	display: none;
}

.zd-patient-picker__hint {
	margin: 0.375rem 0 0;
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--wp--preset--color--base-dark);
}

.zd-patient-picker__save {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.75rem;
	font-size: 0.875rem;
	color: var(--wp--preset--color--primary);
	cursor: pointer;
}

.zd-patient-picker__save input {
	width: 1.125rem;
	height: 1.125rem;
	margin: 0;
	accent-color: var(--wp--preset--color--primary);
}

/* Also used on the confirm screen (booking-confirm.php). */
.zd-patient-picker__warning {
	margin: 1rem 0 0;
	padding: 0.75rem 1rem;
	border-left: 3px solid var(--wp--preset--color--secondary);
	border-radius: 0.5rem;
	background: var(--wp--preset--color--secondary-light);
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--wp--preset--color--primary);
}

.booking-confirm .zd-patient-picker__warning {
	margin: 0 0 1rem;
	text-align: left;
}

.zd-patient-picker__login {
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
	color: var(--wp--preset--color--base-dark);
}

.zd-patient-picker__login a {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Birth date with the branded calendar (assets/js/date-picker.js + date-picker.css): the
   visible дд.мм.гггг field carries .booking-patient-form__input, so it looks like the other
   modal fields; the label sits after the .zd-date wrapper, so it floats from there. */
.zd-patient-picker .zd-date__input {
	padding-right: 2.75rem;
	font-variant-numeric: tabular-nums;
}

.zd-patient-picker .zd-date__input:focus::placeholder {
	color: var(--wp--preset--color--base-dark);
	opacity: 1;
}

.zd-patient-picker .zd-date__toggle {
	width: 2.75rem;
	height: 100%;
}

.zd-patient-picker .zd-date:focus-within ~ .booking-patient-form__label,
.zd-patient-picker .zd-date:has(.zd-date__input:not(:placeholder-shown)) ~ .booking-patient-form__label {
	top: -0.625rem;
	left: 0;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--wp--preset--color--primary);
	background-color: var(--wp--preset--color--white);
}
