/**
 * Service booking panel — the design's sticky card.
 *
 * Selection state is drawn from :checked on the real inputs (the inputs
 * themselves are visually hidden), so the highlight is correct before any
 * script runs and stays correct if none ever does.
 */

.anps-bookcard {
	position: sticky;
	top: 92px;
	background: var(--wp--preset--color--paper, #fffdf8);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--border, #8f7d69) 40%, transparent);
	border-radius: 22px;
	box-shadow: 0 8px 30px rgb(33 29 26 / 8%);
	padding: 24px;
}

/* ---------------------------------------------------------------- Head */

.anps-bookcard__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
}

.anps-bookcard__from {
	font-size: 0.78125rem; /* 12.5px */
	color: var(--wp--preset--color--muted, GrayText);
}

.anps-bookcard__price {
	font-family: var(--wp--preset--font-family--heading, serif);
	font-size: 2.125rem; /* 34px */
	font-weight: 600;
	line-height: 1;
}

.anps-bookcard__pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 999px;
	padding: 6px 13px;
	background: color-mix(in srgb, var(--wp--preset--color--secondary, #5c6152) 14%, transparent);
	color: var(--wp--preset--color--secondary, #3f4437);
	font-size: 0.78125rem;
	font-weight: 600;
	white-space: nowrap;
}

.anps-bookcard__dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--wp--preset--color--secondary, #5c6152);
}

/* ---------------------------------------------------------------- Result banner */

/* Rendered by Blocks\BookingRequest::status() after the POST redirects back.
   Its own block's stylesheet is not on this page, so the banner is styled here
   too — same class names, so a page carrying both blocks stays consistent. */
.anps-bookcard__form .anps-booking-request__status {
	margin-top: 18px;
	padding: 12px 14px;
	border-radius: 12px;
	border-inline-start: 4px solid currentColor;
	background: var(--wp--preset--color--surface, Canvas);
	font-size: 0.875rem;
	line-height: 1.5;
}

.anps-bookcard__form .anps-booking-request__status.anps-is-success {
	border-inline-start-color: var(--wp--preset--color--secondary, LinkText);
}

.anps-bookcard__form .anps-booking-request__status.anps-is-error {
	border-inline-start-color: var(--wp--preset--color--cta, Mark);
}

.anps-bookcard__form .anps-booking-request__status:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

@media (forced-colors: active) {
	.anps-bookcard__form .anps-booking-request__status {
		border: 1px solid currentColor;
	}
}

/* ---------------------------------------------------------------- Groups */

.anps-bookcard__group {
	border: 0;
	margin: 20px 0 0;
	padding: 0;
	min-inline-size: 0;
}

.anps-bookcard__label {
	display: block;
	padding: 0;
	margin-bottom: 12px;
	font-size: 0.71875rem; /* 11.5px */
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted, GrayText);
}

/* Every picker input: present for keyboard and for the POST, invisible. The
   focus ring is drawn on the label instead (see :focus-visible rules). */
.anps-bookcard__group input[type="radio"],
.anps-bookcard__group input[type="checkbox"] {
	position: absolute;
	/* 1px, not auto: out of flow it would inherit the theme's
	   `input { width: 100% }` and overflow the viewport. */
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.anps-bookcard__group label:has(input:focus-visible) {
	outline: 2px solid var(--wp--preset--color--cta, #a85a38);
	outline-offset: 2px;
}

/* ---------------------------------------------------------------- Stylists */

/* Wraps rather than overflowing: four stylists in one row need ~340px, more
   than a 320px phone has. */
.anps-bookcard__stylists {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.anps-stylist {
	flex: 1 1 84px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	padding: 10px 4px;
	border-radius: 14px;
	border: 1.5px solid color-mix(in srgb, var(--wp--preset--color--border, #8f7d69) 45%, transparent);
	cursor: pointer;
	text-align: center;
}

.anps-stylist:has(input:checked) {
	border-color: var(--wp--preset--color--cta, #a85a38);
	background: color-mix(in srgb, var(--wp--preset--color--cta, #a85a38) 7%, transparent);
}

.anps-stylist__av {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	overflow: hidden;
	background: var(--wp--preset--color--surface, #efe4d9);
	font-family: var(--wp--preset--font-family--heading, serif);
	font-size: 1rem;
	font-weight: 600;
}

.anps-stylist__av img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.anps-stylist__n {
	font-size: 0.78125rem;
	font-weight: 600;
}

.anps-stylist__r {
	font-size: 0.65625rem; /* 10.5px */
	line-height: 1.2;
	color: var(--wp--preset--color--muted, GrayText);
}

/* ---------------------------------------------------------------- Days */

.anps-bookcard__days {
	display: flex;
	gap: 8px;
}

.anps-day {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 9px 0;
	border-radius: 12px;
	border: 1.5px solid color-mix(in srgb, var(--wp--preset--color--border, #8f7d69) 45%, transparent);
	cursor: pointer;
}

.anps-day:has(input:checked) {
	border-color: var(--wp--preset--color--cta, #a85a38);
	background: color-mix(in srgb, var(--wp--preset--color--cta, #a85a38) 7%, transparent);
}

.anps-day__dow {
	font-size: 0.6875rem; /* 11px */
	font-weight: 500;
	color: var(--wp--preset--color--muted, GrayText);
}

.anps-day__n {
	font-family: var(--wp--preset--font-family--heading, serif);
	font-size: 1rem;
	font-weight: 600;
}

/* ---------------------------------------------------------------- Times */

.anps-bookcard__slots {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.anps-slot {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	border-radius: 11px;
	border: 1.5px solid color-mix(in srgb, var(--wp--preset--color--border, #8f7d69) 45%, transparent);
	font-size: 0.84375rem; /* 13.5px */
	font-weight: 600;
	cursor: pointer;
}

.anps-slot:has(input:checked) {
	background: var(--wp--preset--color--contrast, #211d1a);
	border-color: var(--wp--preset--color--contrast, #211d1a);
	color: var(--wp--preset--color--base, #fff7ee);
}

/* ---------------------------------------------------------------- Add-ons */

.anps-bookcard__addons {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.anps-addon {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 11px 13px;
	border-radius: 13px;
	border: 1.5px solid color-mix(in srgb, var(--wp--preset--color--border, #8f7d69) 45%, transparent);
	cursor: pointer;
	text-align: left;
}

.anps-addon:has(input:checked) {
	border-color: var(--wp--preset--color--cta, #a85a38);
	background: color-mix(in srgb, var(--wp--preset--color--cta, #a85a38) 6%, transparent);
}

.anps-addon__box {
	position: relative;
	flex: none;
	width: 20px;
	height: 20px;
	border-radius: 6px;
	border: 1.5px solid color-mix(in srgb, var(--wp--preset--color--border, #8f7d69) 70%, transparent);
}

.anps-addon:has(input:checked) .anps-addon__box {
	background: var(--wp--preset--color--cta, #a85a38);
	border-color: var(--wp--preset--color--cta, #a85a38);
}

.anps-addon__box::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid var(--wp--preset--color--on-cta, #fff7ee);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0);
	transition: transform 0.12s ease;
}

.anps-addon:has(input:checked) .anps-addon__box::after {
	transform: rotate(45deg) scale(1);
}

.anps-addon__n {
	flex: 1;
	font-size: 0.875rem;
	font-weight: 500;
}

.anps-addon__p {
	font-family: var(--wp--preset--font-family--heading, serif);
	font-size: 0.875rem;
	font-weight: 600;
}

/* ---------------------------------------------------------------- Contact */

.anps-bookcard__contact {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.anps-bookcard__field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin: 0;
}

.anps-bookcard__field label {
	font-size: 0.78125rem;
	color: var(--wp--preset--color--muted, GrayText);
}

.anps-bookcard__field input {
	height: 42px;
	padding: 0 14px;
	border: 1.5px solid color-mix(in srgb, var(--wp--preset--color--border, #8f7d69) 45%, transparent);
	border-radius: 11px;
	background: var(--wp--preset--color--base, #fff);
	font-family: inherit;
	font-size: 0.875rem;
}

.anps-bookcard__field input:focus {
	outline: 0;
	border-color: var(--wp--preset--color--cta, #a85a38);
}

/* ---------------------------------------------------------------- Total + CTA */

.anps-bookcard__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--border, #8f7d69) 35%, transparent);
	font-size: 0.9375rem;
	font-weight: 600;
}

.anps-bookcard__total-v {
	font-family: var(--wp--preset--font-family--heading, serif);
	font-size: 1.625rem; /* 26px */
}

.anps-bookcard__fine {
	font-size: 0.75rem;
	color: var(--wp--preset--color--muted, GrayText);
	margin: 6px 0 0;
}

.anps-bookcard__submit {
	width: 100%;
	min-height: 52px;
	margin-top: 16px;
	border-radius: var( --wp--custom--radius--control, 999px );
	font-size: 0.96875rem; /* 15.5px */
	font-weight: 600;
}

.anps-bookcard__call {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 12px 0 0;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted, GrayText);
}

.anps-bookcard__call svg {
	color: var(--wp--preset--color--secondary, #5c6152);
}

/* The honeypot the request form ships: off-screen, never focusable. */
.anps-bookcard__form .anps-booking-request__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 781px) {
	.anps-bookcard {
		position: static;
	}
}
