/*
 * IT Partner — shared styles (loaded everywhere, before the area files).
 * Values come from design-canvas/design-system (components/*.html), adjusted since in this theme.
 * Area files: home.css · shop.css · product.css · cart.css · content.css — each owned by one builder.
 */

:root {
	--itp-ink: #0F1115;
	--itp-paper: #FFFFFF;
	--itp-accent: #F09820;
	--itp-accent-hover: #D9821A;
	--itp-band: #F5F6F8;
	--itp-border: #E6E8EC;
	--itp-card: #FBFBFC;
	--itp-wash: #FDF1E0;
	--itp-text: #16181D;
	--itp-muted: #5B616E;
	--itp-placeholder: #A2A7B0;
	--itp-dark-text: #AEB4BF;
	--itp-dark-subdued: #8A8F99;
	--itp-dark-raised: #16191F;
	--itp-dark-border: #262B34;
	--itp-nav: #4A5059;
	--itp-header-border: #ECEEF2;
	--itp-checkbox: #C9CDD4;
	/* One 4px radius for controls, images, icon tiles and cards (WooCommerce's own, and squarer than the
	   design system's 6/8/11/12); pills stay round. */
	--itp-r-control: 4px;
	--itp-r-image: 4px;
	--itp-r-tile: 4px;
	--itp-r-card: 4px;
	--itp-r-pill: 100px;
	--itp-mono: "IBM Plex Mono", ui-monospace, monospace;
	--itp-utility-h: 34px;

	--itp-icon-phone: 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' stroke-linejoin='round'%3E%3Cpath d='M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384'/%3E%3C/svg%3E");
	--itp-icon-mail: 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' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
	--itp-icon-clock: 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' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
	--itp-icon-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-5.7 7-11a7 7 0 1 0-14 0c0 5.3 7 11 7 11Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
	--itp-icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E");
	--itp-icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Header, main and footer sit flush, with no gap between them. */
.wp-site-blocks > * {
	margin-block-start: 0;
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--itp-accent);
	outline-offset: 2px;
}
/* Twenty Twenty-Five outlines every focused element, mouse clicks included (a dark ring left on buttons).
   Keep only the keyboard ring above. */
.wp-site-blocks :focus:not(:focus-visible) {
	outline: none;
}

/* ---------------------------------------------------------------- Block styles */

/* Kicker (paragraph style "kicker"): accent shade on light, full accent on dark. */
.is-style-kicker {
	font-family: var(--itp-mono);
	font-weight: 500;
	font-size: 16px;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--itp-accent-hover);
}
:is(.is-style-dark, .is-style-dark-raised) .is-style-kicker {
	color: var(--itp-accent);
}

/* Secondary button: white fill, used on dark sections only. */
.wp-block-button.is-style-secondary > .wp-block-button__link {
	background-color: var(--itp-paper);
	color: var(--itp-ink);
	border: 0;
}
.wp-block-button.is-style-secondary > .wp-block-button__link:is(:hover, :focus) {
	background-color: var(--itp-border);
	color: var(--itp-ink);
}

/* Dark section: separators and inputs in the dark palette. */
.is-style-dark hr,
.is-style-dark .wp-block-separator {
	border-color: var(--itp-dark-border);
	color: var(--itp-dark-border);
}
:is(.is-style-dark, .is-style-dark-raised) :is(input[type="text"], input[type="search"], input[type="email"], input[type="tel"]) {
	background: transparent;
	border-color: #2E333C;
	color: var(--itp-paper);
}
:is(.is-style-dark, .is-style-dark-raised) ::placeholder {
	color: #7C828C;
}

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

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--itp-utility-h));
	z-index: 50;
}

/* Exactly --itp-utility-h tall (not a minimum): the sticky header above is offset by that much to hide the
   bar, so a taller bar would show a dark strip above the scrolled header. */
.itp-utility-bar {
	height: var(--itp-utility-h);
	box-sizing: border-box;
	align-items: center;
}
.itp-util {
	margin: 0;
}
.itp-util > a,
.itp-util > span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: inherit;
	text-decoration: none;
	line-height: 1;
}
.itp-util > :is(a, span)::before {
	content: "";
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	background-color: currentColor;
	-webkit-mask: var(--itp-icon) center / contain no-repeat;
	mask: var(--itp-icon) center / contain no-repeat;
}
.itp-util > a:hover {
	color: var(--itp-accent);
}
.itp-util--phone { --itp-icon: var(--itp-icon-phone); }
.itp-util--mail { --itp-icon: var(--itp-icon-mail); }
.itp-util--clock { --itp-icon: var(--itp-icon-clock); }
.itp-util--muted { color: var(--itp-dark-subdued); }

.itp-header-main {
	min-height: 71px;
	box-sizing: border-box;
	border-bottom: 1px solid var(--itp-header-border);
	position: relative;
	isolation: isolate;
	background-color: transparent !important;
}
/* The frosted background sits on a pseudo-element: a backdrop-filter on the row itself would make it the
   containing block for the navigation's fixed overlay, trapping the mobile menu inside the 61px row. */
.itp-header-main::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.itp-header-logo {
	margin: 0;
	line-height: 0;
}
.itp-header-logo img {
	height: 48px;
	width: auto;
	border-radius: 0;
}

/* Navigation: links in 80% ink, the current page in full ink. */
.itp-header-nav {
	font-size: 16px;
}
.itp-header-nav.wp-block-navigation .wp-block-navigation-item__content {
	color: rgba(15, 17, 21, 0.8);
	text-decoration: none;
}
.itp-header-nav.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.itp-header-nav.wp-block-navigation .wp-block-navigation-item__content[aria-current="page"],
.itp-header-nav.wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--contrast);
}
.itp-header-nav .wp-block-navigation__responsive-container-open,
.itp-header-nav .wp-block-navigation__responsive-container-close {
	color: var(--itp-text);
}
/* The open phone menu is a drawer like the cart and filter drawers: a white panel from the left over the
   cart's dimmed backdrop. Core's full-screen overlay becomes the backdrop (a tap on it closes the menu:
   assets/js/menu-backdrop.js) and its inner wrapper becomes the panel. */
.itp-header-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 0;
	background-color: rgba(15, 17, 21, 0.16) !important;
}
.itp-header-nav .is-menu-open .wp-block-navigation__responsive-close {
	box-sizing: border-box;
	width: min(calc(100% - 56px), 480px);
	max-width: none;
	height: 100%;
	margin: 0;
	padding: 24px var(--wp--preset--spacing--inset);
	overflow-y: auto;
	background: var(--itp-paper);
}
/* Opens like the catalog's filter drawer (shop.css): the backdrop fades and the panel slides in, 0.1s each. */
@media not (prefers-reduced-motion) {
	.itp-header-nav .wp-block-navigation__responsive-container.is-menu-open {
		animation: itp-fade-in 0.1s ease;
	}
	.itp-header-nav .is-menu-open .wp-block-navigation__responsive-close {
		animation: itp-slide-in-left 0.1s ease;
	}
}
@keyframes itp-fade-in {
	from {
		opacity: 0;
	}
}
@keyframes itp-slide-in-left {
	from {
		transform: translateX(-100%);
	}
}
/* The desktop nav is right-justified; the open phone menu (hamburger on the left) lists links from the left. */
.itp-header-nav .wp-block-navigation__responsive-container.is-menu-open,
.itp-header-nav .is-menu-open .wp-block-navigation__container {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
}
.itp-header-nav .is-menu-open .wp-block-navigation__container {
	gap: 20px;
	font-size: 20px;
}
.itp-header-nav.wp-block-navigation .is-menu-open .wp-block-navigation-item__content {
	color: var(--itp-text);
}

/* Search: an icon button that expands the field. */
.itp-header-search {
	display: flex;
	align-items: center;
	margin: 0;
}
.itp-header-search .wp-block-search__inside-wrapper {
	align-items: center;
}
.itp-header-search .wp-block-search__button {
	background: transparent !important;
	color: var(--itp-text) !important;
	padding: 0;
	margin-left: 0;
	min-width: 24px;
	height: 40px;
	border: 0;
	box-shadow: none;
}
.itp-header-search .wp-block-search__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.itp-header-search .wp-block-search__button svg {
	display: none;
}
.itp-header-search .wp-block-search__button::before {
	content: "";
	width: 19px;
	height: 19px;
	background-color: currentColor;
	-webkit-mask: var(--itp-icon-search) center / contain no-repeat;
	mask: var(--itp-icon-search) center / contain no-repeat;
}
.itp-header-search .wp-block-search__input {
	height: 40px;
	min-height: 0;
	padding: 0 12px;
	border-radius: var(--itp-r-control);
}

/* Mini-Cart: bag icon with a small ink count badge. */
/* Square 34px box centred on the icon so the focus ring frames it; the negative margins keep the icon where it was. */
.itp-header-cart .wc-block-mini-cart__button {
	color: var(--itp-text);
	padding: 6px;
	margin-inline: -2px -6px;
	border-radius: var(--itp-r-control);
}
.itp-header-cart .wc-block-mini-cart__icon {
	width: 22px;
	height: 22px;
}
.itp-header-cart .wc-block-mini-cart__badge {
	background: var(--itp-ink) !important;
	color: var(--itp-paper) !important;
	border: 0;
	font-size: 10px;
	min-width: 17px;
	height: 17px;
	font-weight: 400;
}
.itp-header-cart .wc-block-mini-cart__amount {
	display: none;
}

/* Language switcher (inc/languages.php): "LT  EN", the current language in full ink. Wide screens show it at
   the right of the utility bar; phones (where the menu is a drawer) at the bottom of the menu drawer. */
.itp-lang {
	display: flex;
	align-items: center;
}
.itp-lang__link {
	text-decoration: none;
	color: inherit;
}
/* .itp-utility-bar for weight over core's `.is-layout-flex > * { margin: 0 }`. */
.itp-utility-bar .itp-lang--bar {
	margin-left: auto;
	gap: 4px;
}
.itp-lang--bar .itp-lang__link {
	padding: 4px 6px;
	border-radius: var(--itp-r-control);
	color: var(--itp-dark-subdued);
	letter-spacing: 0.04em;
}
.itp-lang--bar .itp-lang__link:hover {
	color: var(--itp-accent);
}
.itp-lang--bar .itp-lang__link[aria-current] {
	color: var(--wp--preset--color--base);
	background: rgba(255, 255, 255, 0.08);
}
.itp-header-nav .itp-lang--menu {
	display: none;
}
.itp-header-nav .is-menu-open .itp-lang--menu {
	display: flex;
	gap: 8px;
	width: 100%;
	margin-top: 12px;
	padding-top: 24px;
	border-top: 1px solid var(--itp-header-border);
}
.itp-header-nav .is-menu-open .itp-lang__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	height: 40px;
	box-sizing: border-box;
	border: 1px solid var(--itp-header-border);
	border-radius: var(--itp-r-control);
	font-size: 15px;
	letter-spacing: 0.04em;
	color: var(--itp-text);
}
.itp-header-nav .is-menu-open .itp-lang__link[aria-current] {
	border-color: var(--itp-ink);
	background: var(--itp-ink);
	color: var(--itp-paper);
}
/* Checkout's short header: plain "LT EN" beside the cart icon, on every width. */
.itp-lang--checkout {
	gap: 2px;
	font-size: 15px;
}
.itp-lang--checkout .itp-lang__link {
	padding: 4px 6px;
	border-radius: var(--itp-r-control);
	color: var(--itp-muted);
	letter-spacing: 0.04em;
}
.itp-lang--checkout .itp-lang__link:hover {
	color: var(--itp-accent);
}
.itp-lang--checkout .itp-lang__link[aria-current] {
	color: var(--itp-ink);
	font-weight: 600;
}
@media (max-width: 599px) {
	.itp-lang--bar {
		display: none;
	}
}

@media (max-width: 749px) {
	:root {
		--itp-utility-h: 52px;
	}
	.itp-utility-bar {
		gap: 10px !important;
	}
	.itp-util > :is(a, span) {
		justify-content: center;
		width: 32px;
		height: 32px;
		border-radius: var(--itp-r-tile);
		background: rgba(255, 255, 255, 0.08);
	}
	.itp-util > :is(a, span)::before {
		width: 16px;
		height: 16px;
	}
	.itp-util__label {
		position: absolute;
		overflow: hidden;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		border: 0;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
	.itp-util--muted {
		display: none;
	}	/* The phone header row is 61px (71px on desktop). */
	.itp-header-main {
		min-height: 61px;
	}
}

/* Phones: hamburger left, logo centred, search + cart right. */
@media (max-width: 599px) {
	.itp-header-main {
		display: grid !important;
		grid-template-columns: 1fr auto 1fr;
		align-items: center;
	}
	.itp-header-actions {
		display: contents !important;
	}
	.itp-header-nav {
		grid-column: 1;
		grid-row: 1;
		justify-self: start;
	}
	.itp-header-logo {
		grid-column: 2;
		grid-row: 1;
	}
	.itp-header-main .itp-header-search {
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
		margin-right: 40px;
	}
	.itp-header-cart {
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
	}
}

/* ---------------------------------------------------------------- Page-header banner */

.itp-page-header {
	box-sizing: border-box;
}
.itp-page-header > * {
	max-width: 720px;
	margin: 0;
}
.itp-page-header .itp-breadcrumbs {
	margin: 0 0 4px;
	padding: 0;
	font-family: var(--itp-mono);
	font-size: 12px;
	letter-spacing: 0.02em;
	line-height: 1.4;
	color: var(--itp-dark-subdued);
}
/* The breadcrumbs block adds has-small-font-size (an !important preset); crumbs are 12px. */
.itp-page-header .itp-breadcrumbs.has-small-font-size {
	font-size: 12px !important;
}
/* The second selector outranks WooCommerce's `.woocommerce.woocommerce-shop .wc-block-breadcrumbs
   .woocommerce-breadcrumb { display: block }` (4 classes), which collapses the crumbs on shop and search. */
.itp-page-header .woocommerce-breadcrumb,
.itp-page-header.is-style-dark .itp-breadcrumbs.wc-block-breadcrumbs .woocommerce-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	font-size: inherit;
	color: inherit;
}
.itp-page-header .woocommerce-breadcrumb::before,
.itp-page-header .woocommerce-breadcrumb::after {
	display: none;
}
.itp-page-header .woocommerce-breadcrumb a {
	color: inherit;
	text-decoration: none;
}
.itp-page-header .woocommerce-breadcrumb a:hover {
	color: var(--itp-paper);
	text-decoration: underline;
}
.itp-page-header .itp-crumb:last-child {
	color: var(--itp-paper);
	font-weight: 500;
}
.itp-page-header .itp-page-header__title {
	margin: 0;
	color: var(--itp-paper);
	font-size: 40px;
	line-height: 44px;
	letter-spacing: -1.2px;
	font-weight: 700;
}
.itp-page-header .itp-page-header__description,
.itp-page-header .itp-page-header__description p {
	margin: 0;
	color: var(--itp-dark-text);
}

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

.itp-footer {
	font-size: 16px;
}
.itp-footer p {
	margin-block-end: 0;
}
.itp-footer .wp-block-column > p:first-child {
	margin-block-start: 0;
}
.itp-footer__tagline {
	max-width: 260px;
	color: var(--itp-dark-text);
}
.itp-footer__label {
	font-family: var(--itp-mono);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.03em;
	line-height: 1.4;
	text-transform: uppercase;
	color: #6B7079;
	margin-bottom: 4px !important;
}
.itp-footer__row,
.itp-footer__row a {
	color: var(--itp-border);
	text-decoration: none;
}
.itp-footer__row a:hover {
	color: var(--itp-accent);
}
.itp-footer__row:is(.itp-footer__row--pin, .itp-footer__row--phone, .itp-footer__row--mail, .itp-footer__row--clock) {
	display: flex;
	align-items: center;
	gap: 10px;
}
.itp-footer__row:is(.itp-footer__row--pin, .itp-footer__row--phone, .itp-footer__row--mail, .itp-footer__row--clock)::before {
	content: "";
	flex-shrink: 0;
	width: 15px;
	height: 15px;
	background-color: var(--itp-accent);
	-webkit-mask: var(--itp-icon) center / contain no-repeat;
	mask: var(--itp-icon) center / contain no-repeat;
}
.itp-footer__row--pin { --itp-icon: var(--itp-icon-pin); }
.itp-footer__row--phone { --itp-icon: var(--itp-icon-phone); }
.itp-footer__row--mail { --itp-icon: var(--itp-icon-mail); }
.itp-footer__row--clock { --itp-icon: var(--itp-icon-clock); }
.itp-footer__copyright {
	border-top: 1px solid var(--itp-dark-border);
	padding-top: 22px;
	font-size: 13px;
	color: var(--itp-dark-subdued);
}

/* ---------------------------------------------------------------- Product card (every product grid) */

.wc-block-product-template > .wc-block-product,
.itp-product-card,
.woocommerce ul.products li.product {
	display: flex;
	flex-direction: column;
	gap: 8px;
	box-sizing: border-box;
	padding: 14px;
	margin: 0;
	background: var(--itp-paper);
	border: 1px solid var(--itp-border);
	border-radius: var(--itp-r-card);
	text-align: left;
}
:is(.wc-block-product, .itp-product-card) > * {
	margin-block: 0 !important;
}
:is(.wc-block-product, .itp-product-card) .wc-block-components-product-image {
	margin: 0 !important;
	border-radius: var(--itp-r-image);
	overflow: hidden;
	background: var(--itp-paper);
}
:is(.wc-block-product, .itp-product-card) .wc-block-components-product-image img,
.woocommerce ul.products li.product img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
	background: var(--itp-paper);
	border-radius: var(--itp-r-image);
}
:is(.wc-block-product, .itp-product-card) :is(.wp-block-post-title, .wc-block-components-product-name),
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	margin: 0;
	padding: 0;
	font-size: 16px;
	line-height: 22px;
	font-weight: 400;
	letter-spacing: 0;
	color: var(--itp-text);
	text-align: left;
}
:is(.wc-block-product, .itp-product-card) .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}
:is(.wc-block-product, .itp-product-card) .wp-block-post-title a:hover {
	color: var(--itp-accent-hover);
}
:is(.wc-block-product, .itp-product-card) :is(.wc-block-components-product-price, .wp-block-woocommerce-product-price),
.woocommerce ul.products li.product .price {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--itp-text);
	text-align: left;
}
:is(.wc-block-product, .itp-product-card) del {
	color: var(--itp-muted);
	font-weight: 400;
}
:is(.wc-block-product, .itp-product-card) ins {
	text-decoration: none;
}
/* Optional brand line above the title (product-terms block). */
:is(.wc-block-product, .itp-product-card) .taxonomy-product_brand,
.itp-product-card__vendor {
	font-size: 13px;
	color: var(--itp-muted);
}
:is(.wc-block-product, .itp-product-card) .taxonomy-product_brand a {
	color: inherit;
	text-decoration: none;
}
.wc-block-components-product-sale-badge {
	border: 0;
	border-radius: var(--itp-r-pill);
	background: var(--itp-accent);
	color: var(--itp-paper);
	font-size: 12px;
	font-weight: 500;
	padding: 2px 10px;
	text-transform: none;
}

/* ---------------------------------------------------------------- WooCommerce buttons */

.wc-block-components-button:not(.is-link):not(.outlined),
.wc-block-components-product-button__button,
.woocommerce :is(a.button, button.button, input.button, #respond input#submit),
.single_add_to_cart_button {
	background-color: var(--itp-accent);
	color: var(--itp-paper);
	border: 0;
	border-radius: var(--itp-r-control);
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none;
	box-shadow: none;
}
.wc-block-components-button:not(.is-link):not(.outlined):is(:hover, :focus),
.wc-block-components-product-button__button:is(:hover, :focus),
.woocommerce :is(a.button, button.button, input.button):hover,
.single_add_to_cart_button:hover {
	background-color: var(--itp-accent-hover);
	color: var(--itp-paper);
}
.wc-block-components-button.outlined {
	background: var(--itp-paper);
	color: var(--itp-text);
	border: 1px solid var(--itp-border);
	border-radius: var(--itp-r-control);
	box-shadow: none;
	font-weight: 400;
}
.wc-block-components-button.outlined:hover {
	border-color: var(--itp-text);
}
.wc-block-components-button:not(.is-link) .wc-block-components-button__text {
	font-weight: 400;
}
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wc-block-mini-cart__footer-checkout {
	min-height: 56px;
}

/* Product card footer: the buy panel in miniature. A grey strip across the card bottom with the price
   on the left and a small accent Add to cart (the product page's bag icon) on the right. The label
   shows when the card is wide enough, otherwise the button is icon-only. After this card adds the
   product, WooCommerce reveals its "View cart" link and swaps the label to "1 in cart"; the bag
   then becomes a check. */
.wc-block-product > .itp-card-buy {
	container-type: inline-size;
	margin: auto -14px -14px !important;
	padding: 12px 14px;
	align-items: center;
	gap: 8px;
	background: var(--itp-card);
	border-top: 1px solid var(--itp-border);
	border-radius: 0 0 calc(var(--itp-r-card) - 1px) calc(var(--itp-r-card) - 1px);
}
.itp-card-buy .wc-block-components-product-button {
	flex: none;
	margin: 0;
}
.itp-card-buy .wc-block-components-product-button > .wc-block-components-product-button__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	position: relative;
	box-sizing: border-box;
	height: 36px;
	min-height: 0;
	margin: 0;
	padding: 0 12px;
	border: 0;
	font-size: 14px;
	line-height: 1;
	white-space: nowrap;
}
.itp-card-buy .wc-block-components-product-button > .wc-block-components-product-button__button::before {
	content: "";
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	background-color: 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='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8h12l1 12H5L6 8Z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center / contain no-repeat;
	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='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8h12l1 12H5L6 8Z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* In the cart (inc/product-buttons.php): a check in place of the bag. */
.itp-card-buy .wc-block-components-product-button > .wc-block-components-product-button__button.is-in-cart::before {
	-webkit-mask-image: 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' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
	mask-image: 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' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
/* Narrow cards (the 6-up homepage row, phones): a 36px icon-only square; the label stays for screen readers. */
@container (max-width: 199px) {
	.itp-card-buy .wc-block-components-product-button > .wc-block-components-product-button__button {
		width: 36px;
		padding: 0;
	}
	.itp-card-buy .wc-block-components-product-button > .wc-block-components-product-button__button > span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}
}
.itp-card-buy .wc-block-components-product-button > span,
.wc-block-product.outofstock .itp-card-buy .wc-block-components-product-button {
	display: none;
}

/* ---------------------------------------------------------------- Inputs */

:where(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input[type="password"], input[type="url"], select, textarea) {
	box-sizing: border-box;
	min-height: 48px;
	padding: 0 16px;
	border: 1px solid var(--itp-border);
	border-radius: var(--itp-r-control);
	background-color: var(--itp-paper);
	color: var(--itp-text);
	font: inherit;
	font-size: 16px;
}
:where(textarea) {
	padding: 18px 16px;
	min-height: 140px;
}
::placeholder {
	color: var(--itp-placeholder);
	opacity: 1;
}
:where(input, select, textarea):focus {
	border-color: var(--itp-accent);
	outline: none;
	box-shadow: 0 0 0 1px var(--itp-accent);
}
/* WooCommerce block fields keep their own floating-label geometry; only the frame changes. */
.wc-block-components-text-input input,
.wc-block-components-textarea,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-combobox .wc-block-components-combobox-control input {
	border: 1px solid var(--itp-border) !important;
	border-radius: var(--itp-r-control) !important;
	background-color: var(--itp-paper);
	box-shadow: none;
}
.wc-block-components-text-input input:focus,
.wc-block-components-textarea:focus,
.wc-blocks-components-select .wc-blocks-components-select__select:focus {
	border-color: var(--itp-accent) !important;
	box-shadow: 0 0 0 1px var(--itp-accent) !important;
}
.wc-block-components-text-input.is-active label,
.wc-block-components-text-input label {
	color: var(--itp-muted);
}

/* Checkboxes: 18px · r4 · #C9CDD4, checked in ink. */
input[type="checkbox"] {
	accent-color: var(--itp-ink);
}
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
	width: 18px;
	height: 18px;
	min-height: 0;
	padding: 0;
	border: 1px solid var(--itp-checkbox);
	border-radius: 4px;
	background: var(--itp-paper);
}
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked {
	background: var(--itp-ink);
	border-color: var(--itp-ink);
}
.wc-block-components-checkbox .wc-block-components-checkbox__mark {
	fill: var(--itp-paper);
}

/* ---------------------------------------------------------------- Quantity stepper (h40–54 · 1px border · r4) */

.wc-block-components-quantity-selector {
	min-width: 110px;
	width: auto;
	height: 40px;
	border: 1px solid var(--itp-border) !important;
	border-radius: var(--itp-r-control) !important;
	background: var(--itp-paper);
	box-shadow: none;
}
.wc-block-components-quantity-selector::after {
	display: none !important;
}
.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
	min-height: 0;
	height: 100%;
	padding: 0;
	border: 0 !important;
	box-shadow: none !important;
	background: transparent;
	font-size: 16px;
	font-weight: 400;
	color: var(--itp-text);
}
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	min-width: 36px;
	color: var(--itp-text);
	opacity: 1;
	font-size: 18px;
	background: transparent;
	border: 0;
	box-shadow: none;
}
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:disabled {
	color: var(--itp-placeholder);
}
.quantity input.qty {
	min-height: 0;
	height: 54px;
	width: 72px;
	padding: 0 8px;
	text-align: center;
	border: 1px solid var(--itp-border);
	border-radius: var(--itp-r-control);
	font-size: 16px;
}

/* ---------------------------------------------------------------- Notices */

.wc-block-components-notice-banner,
.woocommerce :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
	border: 1px solid var(--itp-border);
	border-radius: var(--itp-r-card);
	background: var(--itp-card);
	color: var(--itp-text);
	font-size: 16px;
	box-shadow: none;
}
.wc-block-components-notice-banner > svg {
	background-color: var(--itp-accent);
	fill: var(--itp-paper);
	border-radius: var(--itp-r-pill);
}
.wc-block-components-notice-banner.is-error > svg {
	background-color: #C2410C;
}
.wc-block-components-notice-banner a,
.woocommerce :is(.woocommerce-message, .woocommerce-info) a:not(.button) {
	color: var(--itp-accent-hover);
}
.wc-block-components-notice-banner .wc-forward {
	opacity: 1;
	color: var(--itp-accent-hover);
}

/* ---------------------------------------------------------------- Cart toast
 * "Added to cart" confirmation (inc/cart-toast.php, assets/js/cart-toast.js): a white card bottom right with the
 * product's thumbnail, a green check, its name and a cart link; an accent bar runs down the 5 s before it closes.
 * WooCommerce's success banners give way to it once the script is set up (the class is added in <head>).
 */
.itp-has-cart-toast .wc-block-store-notices .wc-block-components-notice-banner.is-success {
	display: none;
}
.itp-toast-region {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 100;
	width: min(400px, calc(100vw - 48px));
	pointer-events: none;
}
.itp-toast {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	overflow: hidden;
	box-sizing: border-box;
	padding: 16px 44px 18px 16px;
	border: 1px solid var(--itp-border);
	border-radius: var(--itp-r-card);
	background: var(--itp-paper);
	box-shadow: 0 12px 32px rgb(15 17 21 / 14%), 0 2px 6px rgb(15 17 21 / 6%);
	color: var(--itp-text);
	pointer-events: auto;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.itp-toast.is-open {
	opacity: 1;
	transform: none;
}
.itp-toast.is-closing {
	transition-duration: 0.18s;
}
.itp-toast > *,
.itp-toast__body > * {
	margin: 0;
}
.itp-toast__media {
	flex: 0 0 56px;
	height: 56px;
	overflow: hidden;
	border: 1px solid var(--itp-border);
	border-radius: var(--itp-r-image);
	background: var(--itp-paper);
}
.itp-toast__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.itp-toast__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}
.itp-toast__status {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--itp-muted);
	font-family: var(--itp-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-transform: uppercase;
}
.itp-toast__status svg {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	padding: 2px;
	box-sizing: border-box;
	border-radius: var(--itp-r-pill);
	background: #3FD45F;
	fill: none;
	stroke: var(--itp-paper);
	stroke-width: 3.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.itp-toast__name {
	display: -webkit-box;
	overflow: hidden;
	color: var(--itp-text);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}
.itp-toast .itp-toast__link {
	align-self: flex-start;
	margin-top: 5px;
	color: var(--itp-accent-hover);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}
.itp-toast .itp-toast__link::after {
	content: " \2192";
}
.itp-toast .itp-toast__link:hover {
	color: var(--itp-ink);
}
.itp-toast__close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: var(--itp-r-control);
	background: transparent;
	color: var(--itp-muted);
	cursor: pointer;
}
.itp-toast__close:hover {
	background: var(--itp-band);
	color: var(--itp-text);
}
.itp-toast__close svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}
.itp-toast__timer {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 3px;
	background: var(--itp-accent);
	transform-origin: left center;
	animation: itp-toast-timer 5s linear forwards;
}
.itp-toast:is(:hover, :focus-within) .itp-toast__timer {
	animation-play-state: paused;
}
@keyframes itp-toast-timer {
	to { transform: scaleX(0); }
}
@media (prefers-reduced-motion: reduce) {
	.itp-toast {
		transform: none;
		transition: opacity 0.15s linear;
	}
}
@media (max-width: 749px) {
	.itp-toast-region {
		right: 12px;
		bottom: 12px;
		left: 12px;
		width: auto;
	}
}

/* Prices and totals read in body ink at 600. */
.wc-block-components-formatted-money-amount {
	font-weight: inherit;
}

/* ---------------------------------------------------------------- Phones
 * Section padding scales to 70% below 750px (76px -> 53px).
 */
@media (max-width: 749px) {
	body {
		--wp--preset--spacing--section: 53px;
	}
}
