/*
 * Shared components: header, navigation, mobile menu, footer, social icons, buttons.
 * Values from Figma: header 370:628, footer 370:875 / 281:2170 (desktop) · 386:2077, 386:2091, 796:1279 (mobile); open menu 613:2.
 * Desktop layout from 1200px; below that the mobile header, menu and footer.
 */

/* Screen-reader-only text */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ------------------------------------------------------------------ Buttons */

.zain-button--outline .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 9px 33.5px;
	border: 1px solid var(--wp--preset--color--ink);
	border-radius: 12px;
	background: transparent;
	color: var(--wp--preset--color--black);
	font-size: var(--wp--preset--font-size--regular);
	line-height: var(--wp--custom--line-height--regular);
	text-decoration: none;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.zain-button--outline .wp-block-button__link:hover {
	background: var(--wp--custom--color--forest-pale);
	border-color: var(--wp--custom--color--forest-pale);
	color: var(--wp--preset--color--forest);
}

/*
 * States every button shares. Hover = the hero Book Now's hover on every button, whatever its colour at rest
 * (Habib 2026-11-04): light green (forest-pale) background, forest text / icon, 0.15s. Contact Submit, 404 Back to home
 * and the desktop calendar Book a call are solid green at rest like the hero (Figma: light green), so the hover shows.
 * Keyboard focus looks like hover (plus the focus ring), pressed sinks 1px, disabled fades to 40% like the calendar
 * arrows and stops reacting.
 */
:is(.zain-button--outline, .zain-button--quiet) .wp-block-button__link:focus-visible,
.zain-booking__button:focus-visible {
	background: var(--wp--custom--color--forest-pale);
	border-color: var(--wp--custom--color--forest-pale);
	color: var(--wp--preset--color--forest);
}

.wp-block-button__link:active,
.zain-booking__button:active,
.zain-booking__prev:active,
.zain-booking__next:active,
.zain-form .wpcf7-submit:active,
.zain-social__link:active,
.zain-to-top:active {
	transform: translateY(1px);
}

.zain-form .wpcf7-submit:disabled {
	opacity: 0.4;
	pointer-events: none;
}

/* ------------------------------------------------------------------ Logo */

.zain-logo {
	display: block;
	color: inherit;
	line-height: 0;
}

.zain-logo svg,
.zain-logo img {
	width: 100%;
	height: auto;
}

/* ------------------------------------------------------------------ Navigation lists */

.zain-nav__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.zain-nav__link {
	color: inherit;
	text-decoration: none;
}

.zain-nav__link:hover {
	color: var(--wp--preset--color--forest);
}

.zain-nav__link[aria-current="page"] {
	color: var(--wp--preset--color--forest);
}

/* ------------------------------------------------------------------ Header */

.zain-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 47.2px var(--wp--custom--edge) 36.4px; /* edge: lines up with the 1728 page on wide screens. The smaller
	   2026-11-03 logo is centred on the old header line, as in Home 794:843 (the inner frames lift the nav 7px
	   instead); the header stays 134 tall as on every desktop frame but T&C (Habib 2026-11-03) */
}

.zain-header .zain-logo {
	width: 140px; /* Figma 794:843 (was 179) */
}

/* Figma 882:1161 (feedback 2026-11-11): links 32 apart, 40 to the buttons, Contact + Book Now 8 apart */
.zain-header__links {
	display: flex;
	align-items: center;
	gap: 40px;
}

/* The links span Figma's 544 (882:1162) — 32 apart at Figma's text widths; spread, as browser text runs a little
   wider. A longer menu grows past it, still 24 apart. */
.zain-nav--header .zain-nav__list {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	min-width: 544px;
}

.zain-nav--header .zain-nav__link {
	color: var(--wp--preset--color--black);
	font-size: var(--wp--preset--font-size--regular);
	line-height: var(--wp--custom--line-height--regular);
}

.zain-nav--header .zain-nav__link[aria-current="page"] {
	color: var(--wp--preset--color--forest);
}

/*
 * Desktop link hover (header and footer lists): the client's first nav reference (twofoldny.com/about, its shipped
 * GSAP + CSS, read 2026-11-03). A 1px line in the text colour (80%) just under the words draws in from the left over
 * 0.3s (power4.out ≈ --motion--ease-line) and, when the pointer leaves, runs out to the right. The text colour stays
 * (the current page keeps its green). Twofold finishes drawing before it leaves; CSS reverses from where it is.
 * Direction follows the pointer (Habib 2026-11-03): header.js sets --zain-line-side to the side it came in from on
 * enter and the side it left by on leave, so moving right → left draws from the right and runs out to the left.
 * Without JS: in from the left, out to the right.
 */
@media (min-width: 1200px) and (hover: hover) {
	:is(.zain-nav--header, .zain-footer__navs) .zain-nav__link {
		display: inline-block;
		position: relative;
	}

	:is(.zain-nav--header, .zain-footer__navs) .zain-nav__link::after {
		content: "";
		position: absolute;
		bottom: -1px;
		left: 0;
		width: 100%;
		height: 1px;
		background: currentColor;
		opacity: 0.8;
		pointer-events: none;
		transform: scaleX(0);
		transform-origin: var(--zain-line-side, right) center;
		transition: transform var(--wp--custom--motion--duration-line) var(--wp--custom--motion--ease-line);
	}

	.zain-nav--header .zain-nav__link:hover {
		color: var(--wp--preset--color--black);
	}

	.zain-footer__navs .zain-nav__link:hover {
		color: inherit;
	}

	:is(.zain-nav--header, .zain-footer__navs) .zain-nav__link[aria-current="page"]:hover {
		color: var(--wp--preset--color--forest);
	}

	.zain-footer__navs .zain-nav__link[aria-current="page"]:hover {
		color: var(--wp--preset--color--pine);
	}

	:is(.zain-nav--header, .zain-footer__navs) .zain-nav__link:hover::after {
		transform: scaleX(1);
		transform-origin: var(--zain-line-side, left) center;
	}
}

.zain-header .wp-block-buttons {
	display: flex;
	gap: 8px;
	margin: 0;
}

/* Book Now (Figma 882:1170): solid green, 127 × 44 like Contact, white 16px text; hovers like every button */
.zain-button--book .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 9px 24px;
	border: 1px solid var(--wp--preset--color--forest);
	border-radius: 12px;
	background: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--regular);
	line-height: var(--wp--custom--line-height--regular);
	text-decoration: none;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.zain-button--book .wp-block-button__link:is(:hover, :focus-visible) {
	background: var(--wp--custom--color--forest-pale);
	border-color: var(--wp--custom--color--forest-pale);
	color: var(--wp--preset--color--forest);
}

/*
 * Sticky menu (Figma 789:547, feedback 2026-11-02; behaviour: assets/js/header.js). Desktop only — no mobile design.
 * Once scrolled away, the header is fixed as a 1060 × 80 white bar 38px from the top: the logo's mark only, links 32
 * apart, Contact + Book Now 80 after them (789:553, updated with Book Now 2026-11-11). It slides in while scrolling up, out while scrolling down. Its slot keeps the
 * header's height so the page doesn't move. Figma's 18px background blur is left out: the bar is opaque white.
 */
@media (min-width: 1200px) {
	.wp-block-template-part:has(> .zain-header.is-pinned) {
		min-height: var(--zain-header-h);
	}

	.zain-header.is-pinned {
		position: fixed;
		top: 38px;
		left: 50%;
		z-index: 20;
		width: min(1060px, 100% - 2 * var(--wp--custom--gutter));
		height: 80px;
		padding: 0 21px;
		border-radius: 20px;
		background: var(--wp--preset--color--white);
		transform: translate(-50%, calc(-100% - 46px)); /* out of sight above the window */
		visibility: hidden;
	}

	.zain-header.is-pinned.is-shown {
		transform: translate(-50%, 0);
		visibility: visible;
	}

	/* Armed one frame after pinning, so pinning itself doesn't animate; body: beats motion.css's transition list */
	body .zain-header.is-armed {
		transition:
			transform var(--wp--custom--motion--duration-fast) var(--wp--custom--motion--ease),
			visibility 0s linear var(--wp--custom--motion--duration-fast);
	}

	body .zain-header.is-armed.is-shown {
		transition-delay: 0s;
	}

	.zain-header.is-pinned .zain-logo {
		width: 50px;
		overflow: hidden;
	}

	.zain-header.is-pinned .zain-logo :is(svg, img) {
		width: 139px; /* the full logo at 50px high; the bar shows its mark */
		max-width: none;
	}

	.zain-header.is-pinned .zain-header__links {
		gap: 80px;
	}
}

/* ------------------------------------------------------------------ Mobile menu */

.zain-menu {
	display: none;
}

.zain-menu__open,
.zain-menu__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 41px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
}

.zain-menu__open:hover,
.zain-menu__close:hover {
	color: var(--wp--preset--color--forest);
}

.zain-menu__dialog {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 24px var(--wp--custom--edge-m) 32px; /* the page header's box, so logo and X sit where logo and menu
	   icon were (feedback 2026-11-02). Top 24, not Figma's 69: room for a phone status bar the browser already draws */
	border: 0;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	overflow-y: auto;
}

.zain-menu__dialog::backdrop {
	background: transparent;
}

/* Open menu (Figma 613:2): logo + close button, then the links card 53px below */
.zain-menu__bar {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 40px; /* 613:8 starts 40 under the bar since Contact joined the card (2026-11-11) */
}

.zain-menu__bar .zain-logo {
	margin-right: auto;
}

/* Book (Figma 882:747 header, 888:1557 open menu): 66 × 30 green pill, 14px white, 12 left of the menu icon / X */
.zain-menu__book {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 66px;
	min-height: 30px;
	padding: 5px 16px;
	border-radius: 10px;
	background: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--small);
	line-height: var(--wp--custom--line-height--small);
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
}

.zain-menu__book:is(:hover, :focus-visible) {
	background: var(--wp--custom--color--forest-pale);
	color: var(--wp--preset--color--forest);
}

.zain-menu__bar .zain-logo {
	width: 111px;
}

/* The close button takes the menu button's 40 × 41 box, so the X sits exactly where the icon was (feedback
   2026-11-02; Figma 613:2 draws it 4px further left) */

.zain-menu__close svg {
	overflow: visible;
}

/* Links card: 5% forest, 32 padding, rows 34 high with a 24 / rule / 24 rhythm */
.zain-nav--mobile .zain-nav__list {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 32px;
	border-radius: 20px;
	background: var(--wp--custom--color--forest-wash);
}

.zain-nav--mobile .zain-nav__item + .zain-nav__item {
	padding-top: 23px; /* + the 1px rule = 24 (Figma's line has no height) */
	border-top: 1px solid rgb(0 0 0 / 0.08);
}

.zain-nav--mobile .zain-nav__link {
	display: block;
	color: var(--wp--preset--color--black);
	font-family: var(--wp--preset--font-family--hanken-grotesk);
	font-size: var(--wp--preset--font-size--heading-3);
	font-weight: 300;
	line-height: var(--wp--custom--line-height--heading-3);
}

.zain-nav--mobile .zain-nav__link:hover,
.zain-nav--mobile .zain-nav__link[aria-current="page"] {
	color: var(--wp--preset--color--forest);
}

/* Social icons 40px under the card, policy links 40px under them (44px rows); both start at the card's text */
.zain-menu__dialog .zain-social {
	gap: 16px;
	margin: 40px 32px 0;
}

.zain-menu__dialog .zain-social__link {
	width: 44px;
	height: 44px;
	border-color: rgb(0 0 0 / 0.1);
	color: rgb(0 0 0 / 0.75);
}

.zain-menu__dialog .zain-nav--legal {
	margin: 40px 32px 0;
}

.zain-menu__dialog .zain-nav--legal .zain-nav__link {
	display: flex;
	align-items: center;
	height: 44px;
	color: rgb(0 0 0 / 0.75);
	font-size: var(--wp--preset--font-size--regular);
	line-height: var(--wp--custom--line-height--regular);
}

.zain-menu__dialog .zain-nav--legal .zain-nav__link:hover,
.zain-menu__dialog .zain-nav--legal .zain-nav__link[aria-current="page"] {
	color: var(--wp--preset--color--forest);
}

.zain-menu-is-open {
	overflow: hidden;
}

/* Mobile list rows (441:221): 44px text row, 4px, 1px line, 4px → 52px pitch */
.zain-footer .zain-nav--footer .zain-nav__item {
	padding: 10px 0 4px;
}

@media (max-width: 1199px) {
	.zain-header {
		padding: 24px var(--wp--custom--edge-m) 26px; /* edge-m: lines up with the phone / tablet column. Top 24, not
		   Figma's 60: the 440 frame reserves the iPhone status bar, which the browser already shows (Habib 2026-10-22) */
	}

	.zain-header .zain-logo {
		width: 111px;
	}

	.zain-header__links {
		display: none;
	}

	.zain-menu {
		display: flex;
		align-items: center;
		gap: 12px;
	}

	.zain-footer .zain-nav--footer .zain-nav__item {
		height: 49px;
		margin-bottom: 3px;
		border-bottom: 1px solid rgb(0 0 0 / 0.1);
	}

	.zain-footer .zain-nav--footer .zain-nav__link {
		display: block;
		font-size: var(--wp--preset--font-size--regular);
		line-height: var(--wp--custom--line-height--regular);
	}

	.zain-footer .zain-nav--footer .zain-nav__link[aria-current="page"] {
		text-decoration: underline;
	}
}

/* ------------------------------------------------------------------ Social icons */

.zain-social {
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.zain-social__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgb(51 51 51 / 0.15);
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	transition: border-color 0.2s, color 0.2s;
}

.zain-social__link:hover {
	border-color: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--forest);
}

.zain-social__link svg {
	width: 18px;
	height: 18px;
}

/* ------------------------------------------------------------------ Footer */

.zain-footer {
	padding: 139px var(--wp--custom--edge) 60px; /* the 56px mark sits 19px lower than the old 75px one; the tagline stays */
}

.zain-footer__inner {
	display: grid;
	grid-template-columns: 434px 1fr;
	grid-template-areas:
		"mark    mark"
		"tagline navs"
		"social  navs"
		"legal   legal";
	grid-template-rows: auto auto 1fr auto;
	max-width: var(--wp--style--global--content-size);
	margin: 0 auto;
}

.zain-footer__mark {
	grid-area: mark;
	width: 56px; /* Figma 794:871 (was 75) */
	margin-bottom: 94px;
}

.zain-footer__tagline {
	grid-area: tagline;
	margin: 0;
	font-size: var(--wp--preset--font-size--intro);
	line-height: var(--wp--custom--line-height--intro);
}

.zain-footer__social {
	grid-area: social;
	align-self: end;
	margin-top: 98px;
}

.zain-footer__navs {
	grid-area: navs;
	display: flex;
	justify-content: space-between;
	justify-self: end;
	width: 508px;
}

.zain-footer .zain-nav--footer {
	width: 230px;
}

.zain-footer .zain-nav--legal {
	width: 166px;
}

.zain-footer__navs .zain-nav__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.zain-footer__navs .zain-nav__link {
	font-size: var(--wp--preset--font-size--large);
	line-height: var(--wp--custom--line-height--large);
}

/* Current page in the desktop footer: Figma's dark green, underlined (Home V3 882:986: #004C23 + UNDERLINE); mobile
   keeps forest, also underlined (796:1288). The hover line isn't drawn under it — the underline is already there. */
@media (min-width: 1200px) {
	.zain-footer__navs .zain-nav__link[aria-current="page"] {
		color: var(--wp--preset--color--pine);
		text-decoration: underline;
	}

	.zain-footer__navs .zain-nav__link[aria-current="page"]::after {
		content: none;
	}
}

.zain-footer .zain-nav--footer .zain-nav__item {
	padding: 0;
}

.zain-footer__legal {
	grid-area: legal;
	display: flex;
	justify-content: space-between;
	gap: 24px;
	margin-top: 50px;
	padding-top: 32px;
	border-top: 1px solid rgb(0 0 0 / 0.15);
	color: var(--wp--preset--color--slate);
	font-size: var(--wp--preset--font-size--small);
	line-height: var(--wp--custom--line-height--small);
}

.zain-footer__legal p {
	margin: 0;
}

/* Desktop Home (199:1394…): 100px above the line (other pages 50) and 40px under the copyright (60); its mark
   (794:876) kept the old mark's top, so the room is under the mark instead */
@media (min-width: 1200px) {
	.zain-page-home .zain-footer {
		padding-top: 120px;
		padding-bottom: 40px;
	}

	.zain-page-home .zain-footer__mark {
		margin-bottom: 113px;
	}

	.zain-page-home .zain-footer__legal {
		margin-top: 100px;
	}
}

@media (max-width: 1199px) {
	.zain-footer {
		padding: 32px var(--wp--custom--edge-m);
	}

	.zain-footer__inner {
		grid-template-columns: 1fr;
		grid-template-areas:
			"mark"
			"tagline"
			"navs"
			"social"
			"legal";
		grid-template-rows: none;
	}

	.zain-footer__mark {
		width: 40px; /* Figma 796:1282 (was 50) */
		margin-bottom: 64px;
	}

	.zain-footer__tagline {
		margin-bottom: 32px;
		font-size: var(--wp--preset--font-size--regular);
		line-height: var(--wp--custom--line-height--regular);
	}

	.zain-footer__navs {
		flex-direction: column;
		gap: 32px;
		width: auto;
		justify-self: stretch;
	}

	.zain-footer .zain-nav--footer,
	.zain-footer .zain-nav--legal {
		width: auto;
	}

	.zain-footer__navs .zain-nav__list {
		gap: 0;
	}

	.zain-footer .zain-nav--footer .zain-nav__item {
		padding: 10px 0 4px;
	}

	/* Legal links (441:234): 44px rows, 14/20 text, rows overlap by 6px */
	.zain-footer .zain-nav--legal .zain-nav__item {
		padding: 12px 0;
		margin-bottom: -6px;
	}

	.zain-footer .zain-nav--legal .zain-nav__link {
		display: block;
		font-size: var(--wp--preset--font-size--small);
		line-height: var(--wp--custom--line-height--small);
	}

	/* No gap after the last row (Figma's lists end on the row / line) */
	.zain-footer .zain-nav--footer .zain-nav__item:last-child,
	.zain-footer .zain-nav--legal .zain-nav__item:last-child {
		margin-bottom: 0;
	}

	.zain-footer__social {
		align-self: start;
		margin-top: 32px;
	}

	.zain-footer__social.zain-social {
		gap: 16px;
	}

	.zain-footer__social .zain-social__link {
		width: 44px;
		height: 44px;
	}

	.zain-footer__legal {
		flex-direction: column;
		gap: 8px;
		margin-top: 32px;
		padding-top: 0;
		border-top: 0;
		font-size: 12px;
		line-height: 20px;
	}
}

/* ------------------------------------------------------------------ Booking calendar (zain/booking)
 * Figma calendar-card 218:2336 (desktop) / 386:3309 (mobile). The "10:30–10:45" slot line appears only when a
 * provider adapter returns times (ADR 0002); the link adapter has none.
 */

.zain-booking {
	display: flex;
	flex-direction: column;
	gap: 64px;
	padding: 47px; /* Figma's 48px padding includes the 1px inside stroke */
	border: 1px solid var(--wp--custom--color--line);
	border-radius: 25px;
	background: var(--wp--preset--color--white);
}

.zain-booking__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 40px;
}

.zain-booking__title {
	margin: 0;
	color: var(--wp--preset--color--forest);
	font-family: var(--wp--preset--font-family--hanken-grotesk);
	font-size: var(--wp--custom--type--calendar-month--size);
	font-weight: 400;
	line-height: var(--wp--custom--type--calendar-month--line);
}

.zain-booking__nav {
	display: flex;
	gap: 12px;
}

.zain-booking__prev,
.zain-booking__next {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--wp--preset--color--forest);
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--forest);
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.zain-booking__next {
	border-color: var(--wp--preset--color--honey);
	background: var(--wp--preset--color--honey);
	color: var(--wp--preset--color--white);
}

.zain-booking__next svg {
	transform: scaleX(-1);
}

.zain-booking__prev:disabled,
.zain-booking__next:disabled {
	opacity: 0.4;
	cursor: default;
}

/* Figma draws the previous arrow as it is in the current month: grey ring and arrow, full opacity */
.zain-booking__prev:disabled {
	border-color: var(--wp--custom--color--arrow-off);
	color: var(--wp--custom--color--arrow-off);
	opacity: 1;
}

/* Hover: the hero Book Now's hover — light green, forest arrow (Habib 2026-11-04). Not on touch screens, where
   :hover stays on the arrow after a tap */
@media (hover: hover) {
	.zain-booking__prev:not(:disabled):hover,
	.zain-booking__next:not(:disabled):hover {
		border-color: var(--wp--custom--color--forest-pale);
		background: var(--wp--custom--color--forest-pale);
		color: var(--wp--preset--color--forest);
	}
}

.zain-booking__grid,
.zain-booking__grid thead,
.zain-booking__grid tbody {
	display: grid;
	gap: 16px;
	width: 100%;
}

/* Grid instead of table layout (exact gaps); the markup keeps explicit table roles for screen readers */
.zain-booking__grid {
	margin-top: 16px;
	border-collapse: collapse;
}

.zain-booking__grid tr {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 8px;
}

.zain-booking__grid th {
	height: 32px;
	padding: 0;
	color: var(--wp--preset--color--forest);
	font-size: var(--wp--custom--type--calendar-label--size);
	font-weight: 400;
	line-height: var(--wp--custom--type--calendar-label--line);
	text-align: center;
}

.zain-booking__grid td {
	height: 52px;
	padding: 0;
}

.zain-booking__day {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 26px;
	background: none;
	color: var(--wp--custom--color--day-off);
	font: inherit;
	font-size: var(--wp--preset--font-size--regular);
	line-height: var(--wp--custom--line-height--regular);
}

.zain-booking__day.is-past {
	color: var(--wp--custom--color--day-past);
}

.zain-booking__day.is-open {
	background: var(--wp--custom--color--honey-tint);
	color: var(--wp--preset--color--forest);
	cursor: pointer;
	transition: background-color 0.15s;
}

/* Not on the picked day (honey under its white number), and not on touch screens, where :hover stays after a tap */
@media (hover: hover) {
	.zain-booking__day.is-open:not([aria-pressed="true"]):hover {
		background: var(--wp--preset--color--honey);
	}
}

.zain-booking__day[aria-pressed="true"] {
	background: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--white);
	font-weight: 600;
}

.zain-booking__selection {
	padding-top: 16px;
}

.zain-booking__date {
	margin: 0;
	color: var(--wp--preset--color--forest);
	font-family: var(--wp--preset--font-family--hanken-grotesk);
	font-size: var(--wp--custom--type--calendar-date--size);
	line-height: var(--wp--custom--type--calendar-date--line);
}

.zain-booking__meta {
	margin: 8px 0 0;
	color: var(--wp--custom--color--meta);
	font-size: var(--wp--custom--type--calendar-label--size);
	line-height: var(--wp--custom--type--calendar-label--line);
}

/* Day line above the button (Figma cta-row 882:1145): 16 under the meta, the button 12 under it */
.zain-booking__slot {
	margin: 16px 0 0;
	color: var(--wp--custom--color--meta);
	font-size: var(--wp--custom--type--calendar-label--size);
	line-height: 22px;
}

.zain-booking__slot:empty {
	display: none;
}

.zain-booking__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 240px;
	height: 50px;
	margin-top: 12px;
	border-radius: 6px;
	/* Solid green at rest like the hero Book Now, so the shared hover (light green) shows (Habib 2026-11-04; Figma: light green, green text) */
	background: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--regular);
	line-height: var(--wp--custom--line-height--regular);
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
}

.zain-booking__button:hover {
	background: var(--wp--custom--color--forest-pale);
	color: var(--wp--preset--color--forest);
}

@media (max-width: 1199px) {
	.zain-booking {
		gap: 20px;
		padding: 15px;
		border-radius: 12px;
	}

	.zain-booking__header {
		height: 44px;
		margin: 0 16px;
	}

	.zain-booking__prev,
	.zain-booking__next {
		width: 44px;
		height: 44px;
	}

	.zain-booking__prev:disabled {
		border-color: var(--wp--custom--color--arrow-off-line-m);
		color: var(--wp--custom--color--arrow-off-m);
	}

	.zain-booking__grid {
		gap: 20px;
		margin-top: 20px;
	}

	.zain-booking__grid tbody,
	.zain-booking__grid tr {
		gap: 4px;
	}

	/* Day pill keeps Figma's 48 × 44 shape (386:3309): never wider than 48, shrinks in proportion on narrow phones
	   (a fixed 44 height turned it into an upright oval below 440 and a long pill on tablets) */
	.zain-booking__grid td {
		display: grid;
		place-items: center;
		height: auto;
	}

	.zain-booking__day {
		width: min(100%, 48px);
		height: auto;
		aspect-ratio: 48 / 44;
		border-radius: 999px; /* Figma's radius 22 on a 44 height = full pill */
		color: var(--wp--custom--color--day-off-m);
		font-size: var(--wp--preset--font-size--small);
		line-height: var(--wp--custom--line-height--small);
	}

	.zain-booking__day.is-past {
		color: var(--wp--custom--color--day-off-m);
	}

	.zain-booking__day[aria-pressed="true"] {
		font-weight: 400;
	}

	.zain-booking__panel {
		margin: 0 15px;
	}

	.zain-booking__selection {
		padding-top: 12px;
	}

	/* Mobile summary (Figma 570:399): white box, 1px dark green line, radius 12, padding 12; green day line, the
	   button 8 under it inside the box; the box 20 under the meta */
	.zain-booking__summary {
		display: flex;
		flex-direction: column;
		gap: 8px;
		margin: 20px -12px 0; /* the box reaches 12 past the text column on both sides (43 vs 55) */
		padding: 12px;
		border: 1px solid var(--wp--preset--color--pine);
		border-radius: 12px;
		background: var(--wp--preset--color--white);
	}

	.zain-booking__slot {
		margin: 0;
		color: var(--wp--preset--color--forest);
		font-size: var(--wp--preset--font-size--small);
		line-height: 20px;
	}

	.zain-booking__button {
		width: 100%;
		height: 48px;
		margin-top: 0;
		border: 0;
		border-radius: 12px;
		background: var(--wp--preset--color--forest);
		color: var(--wp--preset--color--white);
		font-weight: 600;
	}

	.zain-booking__button:is(:hover, :focus-visible) {
		background: var(--wp--custom--color--forest-pale);
		color: var(--wp--preset--color--forest);
	}
}

/*
 * ------------------------------------------------------------------ Back to top (zain-core, no Figma design)
 * Colours of the calendar's available day (.zain-booking__day.is-open); the tint is laid over white so the
 * button stays solid over the page. Shown per layout when switched on in Zain Therapy menu.
 */
.zain-to-top {
	position: fixed;
	right: 32px;
	bottom: 32px;
	z-index: 10;
	display: none;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(var(--wp--custom--color--honey-tint), var(--wp--custom--color--honey-tint)), var(--wp--preset--color--white);
	box-shadow: 0 4px 16px rgb(0 0 0 / 0.12);
	color: var(--wp--preset--color--forest);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s, visibility 0.2s, background-color 0.15s, color 0.15s;
}

/* Hover / focus: the hero Book Now's hover — light green, forest arrow (Habib 2026-11-04; was honey) */
.zain-to-top:is(:hover, :focus-visible) {
	background: var(--wp--custom--color--forest-pale);
	color: var(--wp--preset--color--forest);
}

.zain-to-top:focus-visible {
	outline: 2px solid var(--wp--preset--color--forest);
	outline-offset: 2px;
}

.zain-to-top.is-visible {
	opacity: 1;
	visibility: visible;
}

body[tabindex="-1"]:focus {
	outline: 0;
}

@media (min-width: 1200px) {
	.zain-to-top--desktop {
		display: flex;
	}
}

@media (max-width: 1199px) {
	.zain-to-top {
		right: 16px;
		bottom: 16px;
		width: 44px;
		height: 44px;
	}

	.zain-to-top--mobile {
		display: flex;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zain-to-top {
		transition: none;
	}
}
