/**
 * WooCommerce styles for FairyFlower-Custom.
 *
 * Loaded on every page while WooCommerce is active (see inc/enqueue.php): the
 * cart drawer, and its quantity steppers, are on every page. Mobile-first.
 *
 * @package FairyFlower_Custom
 */

/* -----------------------------------------------------------------------
 * Shop chrome: title, then a toolbar of category chips and controls
 * -------------------------------------------------------------------- */
/* Product pages keep the breadcrumb; archives drop it (inc/woocommerce.php). */
.woocommerce-breadcrumb {
	margin: 0 0 var(--ff-space-2xs);
	font-size: var(--ff-text-sm);
	color: var(--ff-color-muted);
}
.woocommerce-breadcrumb a { color: inherit; }
.woocommerce-breadcrumb a:hover { color: var(--ff-color-accent-text); }
/* One step up, "‹ Bouquets" (woocommerce/global/breadcrumb.php), as tall as a
   tap target. The chevron's own padding is pulled back, so its point lines up
   with the text below. */
.ff-breadcrumb-up {
	display: inline-flex;
	align-items: center;
	gap: .1em;
	min-height: 44px;
	text-decoration: none;
}
.ff-breadcrumb-up .ff-icon {
	flex: none;
	width: 1.25em;
	height: 1.25em;
	margin-inline-start: -.35em;
}

.woocommerce-products-header { margin: 0 0 var(--ff-space-lg); }
.woocommerce-products-header__title { margin: 0 0 var(--ff-space-3xs); }
.term-description { color: var(--ff-color-muted); max-width: 60ch; }

/* Chips, then the controls under them on phones; side by side from 60em,
   the controls lined up with the bottom of the chips. */
.woocommerce .ff-shop-toolbar {
	display: flex;
	flex-direction: column;
	gap: var(--ff-space-md);
	margin: 0 0 var(--ff-space-lg);
}
.ff-shop-toolbar__controls {
	display: flex;
	gap: var(--ff-space-md);
}
/* The ordering select fills the row on phones. */
.ff-shop-toolbar__controls > * { flex: 1 1 0; min-width: 0; }
@media (min-width: 60em) {
	.woocommerce .ff-shop-toolbar {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: var(--ff-space-lg);
	}
	.ff-shop-toolbar__controls { flex: 0 0 auto; }
	.ff-shop-toolbar__controls > * { flex: 0 0 auto; min-width: 14rem; }
	/* As wide as its longest option, so the chosen one is never cut off. */
	.woocommerce .woocommerce-ordering select { width: auto; }
}
/* On the product search results the result count stands in for the chips. */
.woocommerce .ff-shop-toolbar .woocommerce-result-count {
	float: none;
	margin: 0;
	color: var(--ff-color-muted);
}

/* Filter chips (occasions or categories): one row that scrolls sideways on
   phones, running into the page gutter, and wraps from 60em. */
.ff-chips { min-width: 0; }
.ff-chips__label {
	margin: 0 0 var(--ff-space-2xs);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ff-color-muted);
}
.ff-chips__list {
	display: flex;
	gap: var(--ff-space-2xs);
	margin: 0 calc(-1 * var(--ff-page-gutter));
	/* The block padding keeps focus rings clear of the scroll box's edge. */
	padding: 3px var(--ff-page-gutter);
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}
.ff-chips__list::-webkit-scrollbar { display: none; }
@media (min-width: 60em) {
	.ff-chips__list {
		flex-wrap: wrap;
		margin-inline: 0;
		padding-inline: 0;
		overflow: visible;
	}
}
.ff-chips__list li { flex: 0 0 auto; margin: 0; }
.ff-chip {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 var(--ff-space-sm);
	border: 1px solid var(--ff-color-border-strong);
	border-radius: var(--ff-radius);
	background: var(--ff-color-panel);
	color: var(--ff-color-text);
	font-size: var(--ff-text-sm);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--ff-transition-fast), border-color var(--ff-transition-fast), color var(--ff-transition-fast);
}
.ff-chip:hover {
	border-color: var(--ff-color-accent);
	color: var(--ff-color-accent-text);
}
.ff-chip.is-active {
	border-color: var(--ff-color-accent);
	background: var(--ff-color-accent);
	color: var(--ff-color-accent-ink);
}

/* Ordering: an underlined field, its mark at the right. */
.woocommerce .woocommerce-ordering {
	position: relative;
	float: none;
	margin: 0;
}
.woocommerce .woocommerce-ordering select {
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: .4rem 1.75rem .4rem 0;
	border: 0;
	border-bottom: 1px solid var(--ff-color-border-strong);
	border-radius: 0;
	background: transparent;
	color: var(--ff-color-text);
	font-family: var(--ff-font-heading);
	font-size: 1rem;
	line-height: 1.2;
	cursor: pointer;
	appearance: none;
	text-overflow: ellipsis;
}
/* The chevron, drawn with two borders so it follows the colour tokens. */
.woocommerce .woocommerce-ordering::after {
	content: "";
	position: absolute;
	right: .4rem;
	top: 50%;
	width: .5rem;
	height: .5rem;
	border: solid var(--ff-color-accent-text);
	border-width: 0 1.5px 1.5px 0;
	transform: translateY(-75%) rotate(45deg);
	pointer-events: none;
}
.woocommerce .woocommerce-ordering select:hover { border-bottom-color: var(--ff-color-accent); }

/* -----------------------------------------------------------------------
 * Product grid and cards
 *
 * Two columns on phones and three from 48em. The CSS grid deliberately
 * overrides WooCommerce's float/columns-N classes.
 *
 * A card is a column of sections: the photo, the title (and the rating, when
 * a product has reviews), then the button, which carries the price. The grid
 * stretches every card in a row to the tallest one and the button keeps to
 * the bottom, so across a row the photos, the titles and the buttons each
 * line up, whatever the length of a title.
 * -------------------------------------------------------------------- */
.woocommerce ul.products {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--ff-space-lg) var(--ff-space-sm);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 48em) {
	.woocommerce ul.products {
		column-gap: var(--ff-gap);
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
/* WooCommerce's legacy clearfix pseudo-elements would become grid items. */
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none; }

/* Core sizes cards with `.woocommerce ul.products[class*=columns-] li.product`
   — the attribute selector outranks a plain class chain, which is why the grid
   needs to match it here. Doing so also removes the need for !important. */
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce ul.products li.product {
	position: relative;
	display: flex;
	flex-direction: column;
	width: auto;
	margin: 0;
	padding: 0;
	float: none;
	clear: none;
	text-align: left;
}
.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
	display: block;
	/* The least space above the button; the button takes any extra. */
	margin-bottom: var(--ff-space-sm);
	color: var(--ff-color-text);
	text-decoration: none;
}

/* The photo, shown whole in a square frame. The frame is a light tint and
   the photo multiplies onto it, so the white backgrounds of photos shot in
   different places all become the same tint. */
.ff-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	margin: 0 0 var(--ff-space-xs);
	border-radius: var(--ff-radius);
	background: var(--ff-color-surface);
}
.woocommerce ul.products li.product .ff-card__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	margin: 0;
	object-fit: contain;
	border-radius: 0;
	mix-blend-mode: multiply;
	transition: transform .5s ease;
}
.woocommerce ul.products li.product a:hover .ff-card__media img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
	.woocommerce ul.products li.product .ff-card__media img { transition: none; }
	.woocommerce ul.products li.product a:hover .ff-card__media img { transform: none; }
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	margin: 0;
	padding: 0;
	font-family: var(--ff-font-heading);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ff-color-text);
}
@media (min-width: 48em) {
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1.05rem; }
}
.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title {
	color: var(--ff-color-accent-text);
}

.woocommerce ul.products li.product .star-rating {
	margin: var(--ff-space-2xs) 0 0;
	font-size: .7rem;
	color: var(--ff-color-accent-text);
}

/* The price shows in the button. This copy stays for screen readers, which
   hear the button by its label only. */
.woocommerce ul.products li.product .woocommerce-LoopProduct-link .price {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* The button: outlined in the accent, the label and then the price; it fills
   on hover. On the narrowest phones a sale price wraps to a second line,
   which still fits the button's 44px, so the row stays level. */
.woocommerce ul.products li.product .button {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0 .4em;
	width: 100%;
	min-height: 44px;
	margin: auto 0 0;
	padding: .3rem .5rem;
	border: 1px solid var(--ff-color-accent);
	border-radius: var(--ff-radius);
	background: transparent;
	color: var(--ff-color-accent-text);
	font-size: var(--ff-text-sm);
	font-weight: 600;
	line-height: 1.3;
	transition: background-color var(--ff-transition), color var(--ff-transition);
}
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .button:focus-visible {
	background: var(--ff-color-accent);
	color: var(--ff-color-accent-ink);
	filter: none;
}
/* The bullet ends the label, so a wrapped price starts its own line cleanly.
   The second content gives it empty alt text, so a screen reader reading the
   product page's button skips it; browsers without that syntax keep the first. */
.ff-buy__label::after {
	content: "•";
	content: "•" / "";
	margin-inline-start: .4em;
}
.ff-buy__price del {
	margin-inline-end: .35em;
	color: inherit;
	font-weight: 400;
	opacity: .7;
}
.ff-buy__price ins {
	background: none;
	color: inherit;
	text-decoration: none;
}
/* Sold out: the same shape, quietened; it links to the product page. */
.woocommerce ul.products li.product.outofstock .button {
	border-color: var(--ff-color-border-strong);
	color: var(--ff-color-muted);
}
/* While adding: WooCommerce's spinner, without core's shift of the label. */
.woocommerce ul.products li.product .button.loading {
	padding-right: .5rem;
	opacity: .6;
}
/* After adding, the cart drawer opens, so the card's own "View cart" link
   would only push the rest of the row out of line. */
.woocommerce ul.products li.product .added_to_cart { display: none; }

/* Sale badge ------------------------------------------------------------- */
/* The discount, "−35%" (inc/woocommerce.php), in the top-left corner of the
   photo: on cards the photo frame, on the product page the gallery. */
.woocommerce ul.products li.product span.onsale,
.woocommerce div.product span.onsale,
.woocommerce span.onsale {
	position: absolute;
	top: var(--ff-space-2xs);
	left: var(--ff-space-2xs);
	right: auto;   /* core pins it to the right corner */
	margin: 0;     /* core pulls it outside the card with a negative margin */
	z-index: 1;
	min-height: 0;
	min-width: 0;
	padding: .25rem .5rem;
	border-radius: var(--ff-radius-sm);
	background: var(--ff-color-sale);
	color: var(--ff-color-on-brand);
	font-size: .75rem;
	font-weight: 700;
	line-height: 1.4;
}
@media (min-width: 48em) {
	.woocommerce ul.products li.product span.onsale,
	.woocommerce div.product span.onsale,
	.woocommerce span.onsale {
		top: var(--ff-space-xs);
		left: var(--ff-space-xs);
		font-size: .8125rem;
	}
}

/* -----------------------------------------------------------------------
 * Pagination
 * -------------------------------------------------------------------- */
/* Plain page numbers; the current one underlined in the accent. */
.woocommerce nav.woocommerce-pagination { margin: var(--ff-space-xl) 0 0; }
.woocommerce nav.woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--ff-space-3xs);
	border: 0;
	margin: 0;
	padding: 0;
}
.woocommerce nav.woocommerce-pagination ul li {
	border: 0;
	margin: 0;
	overflow: visible;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 .5rem;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	background: transparent;
	color: var(--ff-color-text);
	font-size: 1.05rem;
	line-height: 1;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
	background: transparent;
	border-bottom-color: var(--ff-color-accent);
	color: var(--ff-color-accent-text);
	font-weight: 600;
}
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li a:focus-visible {
	background: transparent;
	color: var(--ff-color-accent-text);
}

/* -----------------------------------------------------------------------
 * Single product
 *
 * On phones one column in page order (inc/woocommerce.php): the title, the
 * photo and thumbnails, the button, the short description, related
 * products, the long description. From 60em the photo takes the left
 * column, beside the title and the summary. WooCommerce's own gallery (the
 * slider, declared in inc/setup.php) supplies the behaviour — this only
 * gives it a shape. There is no zoom and no lightbox.
 * -------------------------------------------------------------------- */
.woocommerce div.product { margin: 0; }

.ff-product-header { margin: 0 0 var(--ff-space-sm); }
.woocommerce div.product .product_title { margin: 0; }
.ff-product-header .woocommerce-product-rating { margin: var(--ff-space-2xs) 0 0; }

/* The sale badge's frame (see the badge under "Sale badge"). */
.ff-product-media {
	position: relative;
	margin: 0 0 var(--ff-space-md);
}

/* WooCommerce keeps a set of legacy rules prefixed with `#content`, e.g.
   `.woocommerce #content div.product div.images{float:left;width:48%}`. Our
   <main> is id="content" (header.php), so those match here — and an ID beats
   any class selector. Overrides of them have to carry #content too. */
.woocommerce #content div.product div.images,
.woocommerce #content div.product div.summary,
.woocommerce div.product div.images,
.woocommerce div.product div.summary {
	float: none;
	width: auto;
	margin: 0;
}

@media (min-width: 60em) {
	/* The photo spans both rows of the right column: the title, then the
	   summary. The summary's row takes whatever height the photo needs beyond
	   the title, so the summary starts right under the title. */
	.woocommerce div.product {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-rows: auto 1fr;
		column-gap: var(--ff-space-xl);
		row-gap: 0;
		align-items: start;
	}
	.woocommerce div.product > .ff-product-header { grid-column: 2; grid-row: 1; }
	.woocommerce div.product > .ff-product-media {
		grid-column: 1;
		grid-row: 1 / span 2;
		margin: 0;
	}
	.woocommerce div.product > .summary { grid-column: 2; grid-row: 2; }
	/* Full-width rows below the two columns: related products, the tabs. */
	.woocommerce div.product > :not(.ff-product-header, .ff-product-media, .summary) {
		grid-column: 1 / -1;
	}
}

/* Gallery ---------------------------------------------------------------- */
.woocommerce div.product div.images { margin: 0 0 var(--ff-space-md); }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
	background: var(--ff-color-panel);
	border: 1px solid var(--ff-color-border);
	border-radius: var(--ff-radius);
	overflow: hidden;
}
.woocommerce div.product div.images img {
	border-radius: 0;
	background: var(--ff-color-surface);
}
/* The other photos: a row of circles that scrolls sideways, running into the
   page gutter on phones. */
.woocommerce div.product div.images .flex-control-thumbs {
	display: flex;
	gap: var(--ff-space-2xs);
	margin: var(--ff-space-sm) calc(-1 * var(--ff-page-gutter)) 0;
	/* Room for the focus ring, which the scroll box would otherwise clip. */
	padding: 3px var(--ff-page-gutter);
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	scroll-padding-inline: var(--ff-page-gutter);
	scrollbar-width: none;
}
.woocommerce div.product div.images .flex-control-thumbs::-webkit-scrollbar { display: none; }
@media (min-width: 60em) {
	.woocommerce div.product div.images .flex-control-thumbs {
		margin-inline: 0;
		padding-inline: 0;
	}
}
.woocommerce div.product div.images .flex-control-thumbs li {
	flex: 0 0 auto;
	width: auto;
	margin: 0;
	float: none;
	scroll-snap-align: start;
}
.woocommerce div.product div.images .flex-control-thumbs img {
	display: block;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 1px solid var(--ff-color-border-strong);
	border-radius: 50%;
	background: var(--ff-color-panel);
	object-fit: cover;
	opacity: 1;
	cursor: pointer;
	transition: border-color var(--ff-transition-fast), box-shadow var(--ff-transition-fast);
}
@media (min-width: 48em) {
	.woocommerce div.product div.images .flex-control-thumbs img {
		width: 72px;
		height: 72px;
	}
}
/* The photo on show, and hover: the accent, at full strength. */
.woocommerce div.product div.images .flex-control-thumbs img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs img:hover {
	border-color: var(--ff-color-accent);
	box-shadow: 0 0 0 1px var(--ff-color-accent);
}

/* Summary ---------------------------------------------------------------- */
.woocommerce div.product .summary > * { margin-bottom: var(--ff-space-sm); }
.woocommerce div.product .summary > *:last-child { margin-bottom: 0; }

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	margin: 0 0 var(--ff-space-sm);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--ff-color-text);
}
.woocommerce div.product p.price del { color: var(--ff-color-muted); font-weight: 400; font-size: 1.15rem; }
.woocommerce div.product p.price ins { text-decoration: none; color: var(--ff-color-sale); }

.woocommerce div.product .woocommerce-product-details__short-description {
	color: var(--ff-color-muted);
	max-width: 60ch;
}

.woocommerce div.product .woocommerce-product-rating { margin: 0 0 var(--ff-space-2xs); }
.woocommerce div.product .star-rating { color: var(--ff-color-accent-text); }
.woocommerce div.product .woocommerce-review-link { color: var(--ff-color-muted); font-size: var(--ff-text-sm); }

/* Add to cart ------------------------------------------------------------ */
/* One button across the column, with no quantity field beside it. It reads
   like the cards' button, "Add • 45,00 €", and carries the only copy of the
   price on the page (inc/woocommerce.php). */
.woocommerce div.product form.cart {
	display: flex;
	flex-direction: column;
	gap: var(--ff-space-sm);
	margin: 0 0 var(--ff-space-md);
	padding: var(--ff-space-sm) 0;
	border-top: 1px solid var(--ff-color-border);
	border-bottom: 1px solid var(--ff-color-border);
}
/* Core's clearfix would be two more items in the column. */
.woocommerce div.product form.cart::before,
.woocommerce div.product form.cart::after { content: none; }

/* The quantity input is a hidden field (inc/woocommerce.php). Its wrapper goes
   too, with the label a screen reader would still read out. !important
   because WooCommerce's variation script calls .show() on the wrapper each
   time a variation is chosen. */
.woocommerce div.product form.cart .quantity:has(> input[type="hidden"]) { display: none !important; }
/* Grouped products keep a quantity field per product. */
.woocommerce div.product form.cart .quantity { margin: 0; }
.woocommerce div.product form.cart .quantity input.qty {
	width: 5rem;
	min-height: 44px;
	text-align: center;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0 .4em;
	width: 100%;
	float: none;
	min-height: 48px;
	padding: .6rem 1rem;
	font-size: 1rem;
	line-height: 1.3;
}
/* Until a variation is chosen. Without this, core's disabled button, its own
   purple at half opacity, wins over the theme's. */
.woocommerce div.product form.cart .single_add_to_cart_button.disabled {
	background: var(--ff-color-tint);
	color: var(--ff-color-muted);
	opacity: 1;
}

.woocommerce div.product form.cart .variations { margin: 0; }
/* The chosen variation's price shows in the button (assets/js/variation-price.js).
   WooCommerce's copy stays for screen readers, in the live region that
   announces the choice. */
.woocommerce div.product form.cart .woocommerce-variation-price {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.woocommerce div.product form.cart .single_variation .stock { margin-bottom: var(--ff-space-2xs); }
.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
	display: block;
	width: auto;
	padding: 0 0 var(--ff-space-2xs);
	border: 0;
	line-height: 1.4;
	text-align: left;
}
.woocommerce div.product form.cart .variations label { font-weight: 600; }
.woocommerce div.product form.cart .variations select {
	width: 100%;
	min-height: 44px;
	margin: 0;
}
.woocommerce div.product form.cart .reset_variations {
	display: inline-block;
	font-size: var(--ff-text-sm);
	color: var(--ff-color-muted);
}
.woocommerce div.product .stock { margin: 0; font-size: var(--ff-text-sm); }
.woocommerce div.product .stock.in-stock { color: var(--ff-color-success); }
.woocommerce div.product .stock.out-of-stock { color: var(--ff-color-error); }

.woocommerce div.product .product_meta {
	font-size: var(--ff-text-sm);
	color: var(--ff-color-muted);
}
.woocommerce div.product .product_meta a { color: inherit; text-decoration: underline; }

/* Tabs ------------------------------------------------------------------- */
.woocommerce div.product .woocommerce-tabs { margin: var(--ff-space-xl) 0 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs {
	margin: 0 0 var(--ff-space-sm);
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--ff-space-sm);
	border-bottom: 1px solid var(--ff-color-border);
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after { content: none; }
.woocommerce #content div.product .woocommerce-tabs ul.tabs li,
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	border-radius: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { content: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: var(--ff-space-2xs) 0;
	border-bottom: 2px solid transparent;
	color: var(--ff-color-muted);
	font-weight: 600;
	text-decoration: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
	color: var(--ff-color-text);
	border-bottom-color: var(--ff-color-accent);
}
.woocommerce div.product .woocommerce-tabs .panel { margin: 0; max-width: 70ch; }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { display: none; }

/* Related / upsells ------------------------------------------------------ */
.woocommerce div.product .related,
.woocommerce div.product .upsells { margin: var(--ff-space-xl) 0 0; }
.woocommerce div.product .related > h2,
.woocommerce div.product .upsells > h2 { margin: 0 0 var(--ff-space-md); }

/* -----------------------------------------------------------------------
 * Carousel (the `ff-carousel` class)
 *
 * The product cards sit in one row that scrolls sideways and snaps to a card.
 * On phones one card shows with about a third of the next, so it is clear the
 * row goes on; from 30em two and part of a third; from 48em three, and from
 * 60em four. The row runs into the page gutter, so on phones the next card is
 * cut off by the screen and not by the page margin.
 *
 * A product page's upsells and related products are carousels, wrapped in
 * inc/woocommerce.php; a Page Builder widget with the class around a products
 * shortcode is one too. On a product page the page itself is .woocommerce,
 * rather than a shortcode's wrapper inside the carousel, hence the second
 * selector in each rule.
 *
 * Scrolling works by touch, trackpad and keyboard (tabbing to a card scrolls
 * it into view) with no script. assets/js/carousel.js adds the arrows.
 * -------------------------------------------------------------------- */
.ff-carousel .woocommerce ul.products,
.woocommerce .ff-carousel ul.products {
	grid-template-columns: none;
	grid-auto-flow: column;
	grid-auto-columns: 75%;
	gap: var(--ff-space-sm);
	/* The block padding keeps focus rings from being clipped by the scroll
	   box; the negative margin gives that space back. */
	margin: calc(-1 * var(--ff-space-3xs)) calc(-1 * var(--ff-page-gutter));
	padding: var(--ff-space-3xs) var(--ff-page-gutter);
	scroll-padding-inline: var(--ff-page-gutter);
	scroll-snap-type: x mandatory;
	overflow-x: auto;
	overscroll-behavior-x: contain;
}
.ff-carousel .woocommerce ul.products > li,
.woocommerce .ff-carousel ul.products > li { scroll-snap-align: start; }
@media (min-width: 30em) {
	.ff-carousel .woocommerce ul.products,
	.woocommerce .ff-carousel ul.products { grid-auto-columns: 40%; }
}
@media (min-width: 48em) {
	.ff-carousel .woocommerce ul.products,
	.woocommerce .ff-carousel ul.products {
		gap: var(--ff-gap);
		grid-auto-columns: calc((100% - 2 * var(--ff-gap)) / 3);
	}
}
@media (min-width: 60em) {
	.ff-carousel .woocommerce ul.products,
	.woocommerce .ff-carousel ul.products { grid-auto-columns: calc((100% - 3 * var(--ff-gap)) / 4); }
}

/* Added by the script, which wraps the row in a frame to hold the arrows.
   Arrows and mouse dragging replace the scrollbar; without the script the
   scrollbar stays. */
.ff-carousel__frame { position: relative; }
.ff-carousel__frame > ul.products { scrollbar-width: none; }
.ff-carousel__frame > ul.products::-webkit-scrollbar { display: none; }
.ff-carousel__frame.is-draggable > ul.products { cursor: grab; }
.ff-carousel__frame.is-dragging > ul.products,
.ff-carousel__frame.is-dragging > * * {
	cursor: grabbing;
	user-select: none;
}

/* Phones and tablets swipe, so the arrows start above tablet width (1025px). */
.ff-carousel__arrow {
	position: absolute;
	/* The script centres the arrows on the card photos. */
	top: var(--ff-carousel-arrow-y, 35%);
	z-index: 1;
	display: none;
	place-items: center;
	width: 44px;
	height: 44px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ff-color-panel);
	color: var(--ff-color-text);
	box-shadow: var(--ff-shadow-md);
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity .4s ease, visibility 0s, color var(--ff-transition-fast);
}
/* 8px in from the edge of the row. */
.ff-carousel__arrow--prev { inset-inline-start: calc(var(--ff-space-2xs) - var(--ff-page-gutter)); }
.ff-carousel__arrow--next { inset-inline-end: calc(var(--ff-space-2xs) - var(--ff-page-gutter)); }
.ff-carousel__arrow--prev svg,
[dir="rtl"] .ff-carousel__arrow--next svg { transform: scaleX(-1); }
[dir="rtl"] .ff-carousel__arrow--prev svg { transform: none; }
.ff-carousel__arrow:hover { color: var(--ff-color-accent-text); filter: none; }
.ff-carousel__arrow:focus-visible {
	outline: 2px solid var(--ff-color-accent);
	outline-offset: 2px;
}
/* Nothing further this way: fade out, then leave the tab order. */
.ff-carousel__arrow:disabled {
	opacity: 0;
	visibility: hidden;
	transition: opacity .4s ease, visibility 0s .4s;
}
@media (min-width: 64.0625em) {
	.ff-carousel__arrow { display: grid; }
}

/* -----------------------------------------------------------------------
 * Home page product rows (layouts/home.json)
 *
 * Each row is a Page Builder widget with the ff-section class holding a
 * heading and a products / product_categories shortcode. A row whose
 * shortcode finds nothing (no products on sale, say) is hidden, Page Builder
 * row and its spacing included, instead of leaving a heading over nothing.
 * -------------------------------------------------------------------- */
.panel-grid:has(.ff-section):not(:has(.ff-section ul.products > li)) { display: none; }

/* "Shop by category" tiles: [product_categories] in a widget with the
 * ff-categories class. Three across, four from 60em: the same columns as the
 * carousels' cards, so the tiles line up with the product rows around them. */
.ff-categories .woocommerce ul.products {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--ff-space-sm);
}
@media (min-width: 48em) {
	.ff-categories .woocommerce ul.products { gap: var(--ff-gap); }
}
@media (min-width: 60em) {
	.ff-categories .woocommerce ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ff-categories .woocommerce ul.products li.product-category a {
	display: block;
	color: inherit;
	text-align: center;
	text-decoration: none;
}
.ff-categories .woocommerce ul.products li.product-category a img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	margin: 0 0 var(--ff-space-2xs);
	object-fit: cover;
	border-radius: var(--ff-radius);
}
.ff-categories .woocommerce ul.products li.product-category .woocommerce-loop-category__title {
	margin: 0;
	padding: 0;
	font-size: .9375rem;
	font-weight: 600;
}
.ff-categories .woocommerce ul.products li.product-category a:hover .woocommerce-loop-category__title {
	color: var(--ff-color-accent-text);
}
/* The product count reads as noise on a tile. */
.ff-categories .woocommerce-loop-category__title .count { display: none; }
/* With the ff-carousel class too (the second home layout), the tiles are a
 * carousel row: the carousel's columns rather than the grid's. */
.ff-categories.ff-carousel .woocommerce ul.products { grid-template-columns: none; }

/* -----------------------------------------------------------------------
 * Quantity stepper, "− 2 +" (fairyflower_custom_wc_quantity_stepper(), quantity.js)
 *
 * On the cart page and in the cart drawer, which sets a smaller size. The
 * input inside is WooCommerce's number field, without the browser's arrows.
 * Selectors go through .quantity to outrank WooCommerce's own
 * `.woocommerce .quantity .qty` on shop pages.
 * -------------------------------------------------------------------- */
.ff-qty {
	--ff-qty-size: 44px;
	display: inline-flex;
	border: 1px solid var(--ff-color-border-strong);
	border-radius: var(--ff-radius);
	background: var(--ff-color-panel);
	overflow: hidden;
}
.ff-qty .quantity { display: flex; margin: 0; }
.ff-qty .quantity input.qty {
	width: calc(var(--ff-qty-size) * .9);
	height: var(--ff-qty-size);
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--ff-color-text);
	font-weight: 600;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}
.ff-qty .quantity input.qty::-webkit-inner-spin-button,
.ff-qty .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ff-qty .quantity input.qty:focus-visible { outline: 2px solid var(--ff-color-accent); outline-offset: -2px; }

.ff-qty__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: var(--ff-qty-size);
	height: var(--ff-qty-size);
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--ff-color-text);
	transition: background-color var(--ff-transition-fast), color var(--ff-transition-fast);
}
.ff-qty__btn .ff-icon { width: 18px; height: 18px; }
.ff-qty__btn:hover { filter: none; }
/* Only where there is a pointer to hover with: a tap would leave it tinted. */
@media (hover: hover) {
	.ff-qty__btn:hover { background: var(--ff-color-surface); }
}
.ff-qty__btn:focus-visible { outline: 2px solid var(--ff-color-accent); outline-offset: -2px; }
.ff-qty__btn[aria-disabled="true"] { background: none; color: var(--ff-color-border-strong); cursor: default; }

/* -----------------------------------------------------------------------
 * Cart problems on the checkout (woocommerce/checkout/cart-errors.php)
 * -------------------------------------------------------------------- */
.ff-cart-errors {
	max-width: 40rem;
	margin: 0 auto;
	padding: var(--ff-space-lg) 0;
}

/* -----------------------------------------------------------------------
 * Card-based cart (template override: woocommerce/cart/cart.php)
 *
 * One <li> per line item; each item is a 2-column grid: thumbnail | details.
 * Collapses to a single column (thumbnail on top) on small screens.
 * -------------------------------------------------------------------- */
.ff-cart-items {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	display: grid;
	gap: var(--ff-gap);
}

.ff-cart-item {
	display: grid;
	grid-template-columns: 1fr;            /* mobile: stacked */
	gap: 1rem;
	padding: 1rem;
	border: 1px solid var(--ff-color-border);
	border-radius: var(--ff-radius);
	background: var(--ff-color-panel);
	position: relative;
}

@media (min-width: 40em) {
	.ff-cart-item {
		grid-template-columns: 96px 1fr;    /* tablet+: thumbnail | details */
		align-items: start;
	}
}

.ff-cart-item__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--ff-radius);
}

.ff-cart-item__details {
	display: grid;
	gap: .5rem;
}

.ff-cart-item__name {
	font-weight: 600;
	font-size: 1.05rem;
}
.ff-cart-item__name a { text-decoration: none; color: inherit; }
.ff-cart-item__name .variation,
.ff-cart-item__meta { margin: 0; font-size: .9rem; color: var(--ff-color-muted); }
.ff-cart-item__meta dl { margin: 0; }
.ff-cart-item__meta dt { font-weight: 600; display: inline; }
.ff-cart-item__meta dd { display: inline; margin: 0 0 0 .25rem; }

.ff-cart-item__pricing {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem 1.25rem;
}
.ff-cart-item__price-label { color: var(--ff-color-muted); font-size: .85rem; margin-right: .25rem; }
.ff-cart-item__price { color: var(--ff-color-muted); }
.ff-cart-item__subtotal { font-weight: 700; }

.ff-cart-item__remove {
	position: absolute;
	top: .5rem;
	right: .5rem;
}
.ff-cart-item__remove a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--ff-color-tint);
	color: var(--ff-color-error) !important;
	font-size: 1.1rem;
	line-height: 1;
	text-decoration: none;
}
.ff-cart-item__remove a.remove:hover { background: var(--ff-color-error); color: var(--ff-color-on-dark) !important; }

.ff-cart-item .backorder_notification { margin: 0; font-size: .85rem; color: var(--ff-color-warning); }

/* Coupon + update-cart actions row */
.ff-cart-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	border: 1px solid var(--ff-color-border);
	border-radius: var(--ff-radius);
	background: var(--ff-color-surface);
	margin-bottom: 1.5rem;
}
.ff-cart-actions .coupon { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ff-cart-actions .coupon input.input-text { width: auto; max-width: 14rem; }

/* Cart totals / collaterals */
.cart-collaterals .cart_totals {
	border: 1px solid var(--ff-color-border);
	border-radius: var(--ff-radius);
	padding: 1rem 1.25rem;
}
.cart-collaterals .cart_totals h2 { margin-top: 0; }

/* Generic WooCommerce notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-radius: var(--ff-radius);
	padding: .85rem 3rem;
	margin-bottom: 1.25rem;
	list-style: none;
}
.woocommerce-message { background: var(--ff-color-success-bg); }
.woocommerce-info { background: var(--ff-color-info-bg); }
.woocommerce-error { background: var(--ff-color-error-bg); }

/* -----------------------------------------------------------------------
 * Buttons
 *
 * WooCommerce colours its buttons itself (grey, and purple for `.alt` such as
 * "Place order") with selectors that outrank the theme's `.button`, so they
 * are matched here and given the theme's accent.
 * -------------------------------------------------------------------- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: .65rem 1.1rem;
	border: 1px solid transparent;
	border-radius: var(--ff-radius);
	background: var(--ff-color-accent);
	color: var(--ff-color-accent-ink);
	font-family: inherit;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	transition: background-color var(--ff-transition-fast);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit:hover {
	background: var(--ff-color-accent-strong);
	color: var(--ff-color-accent-ink);
}
.woocommerce a.button.disabled,
.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled],
.woocommerce button.button.disabled,
.woocommerce button.button.alt:disabled,
.woocommerce button.button.alt:disabled[disabled] {
	background: var(--ff-color-tint);
	color: var(--ff-color-muted);
	cursor: not-allowed;
}

/* -----------------------------------------------------------------------
 * Paired form fields (first + last name): checkout and My Account addresses
 *
 * WooCommerce floats .form-row-first / .form-row-last at 47% each, so when
 * one label wraps (e.g. "Recipient's last name (optional)" on a phone) its
 * input drops below its neighbour's. Instead the field wrapper becomes a
 * two-column grid and each paired row subgrids three shared rows: label,
 * input, inline error (checkout.js appends .checkout-inline-error-message to
 * the row). The inputs stay level whatever the label length or error state,
 * and labels sit at the bottom of their row, right above their own input.
 * -------------------------------------------------------------------- */
.woocommerce form :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper) {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 6%;   /* the same 47% + 47% split as WooCommerce's floats */
}
.woocommerce form :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper) > * {
	grid-column: 1 / -1;
}
.woocommerce form :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper) > :is(.form-row-first, .form-row-last) {
	display: grid;
	grid-row: span 3;
	grid-template-rows: subgrid;
	row-gap: 0;
	width: auto;
	float: none;
}
.woocommerce form :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper) > .form-row-first { grid-column: 1; }
.woocommerce form :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper) > .form-row-last { grid-column: 2; }
/* The rows' clearfix pseudo-elements would otherwise take grid cells. */
.woocommerce form :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper) > :is(.form-row-first, .form-row-last)::before,
.woocommerce form :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper) > :is(.form-row-first, .form-row-last)::after {
	content: none;
}
.woocommerce form :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper) > :is(.form-row-first, .form-row-last) > label {
	align-self: end;
}

/* -----------------------------------------------------------------------
 * Checkout (template override: woocommerce/checkout/form-checkout.php)
 *
 * Two-column top area — customer details | sticky order summary — with the
 * payment / "Place order" step full-width beneath. Mobile-first: single column,
 * the summary collapses into an accordion, and a sticky bar surfaces the total
 * + Place order action.
 * -------------------------------------------------------------------- */

/* Macro layout */
.ff-checkout__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--ff-gap);
}
.ff-checkout__main,
.ff-checkout__summary { min-width: 0; }

@media (min-width: 60em) {
	.ff-checkout__grid {
		grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
		align-items: start;
	}
	.ff-checkout__summary {
		position: sticky;
		top: 1rem;
	}
}

/* Stack billing + shipping (override WooCommerce's col2-set float). */
.ff-checkout #customer_details.col2-set {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--ff-gap);
}
.ff-checkout .col2-set .col-1,
.ff-checkout .col2-set .col-2 {
	width: auto;
	float: none;
}

/* Field polish — consistent tokens, 16px to avoid iOS zoom-on-focus. */
.ff-checkout .form-row { margin: 0 0 1rem; }
.ff-checkout .form-row > label { display: block; margin-bottom: .4rem; font-weight: 600; font-size: .9rem; }
/* WooCommerce gives field labels line-height: 2, which spreads a wrapped label
 * far apart. form.ff-checkout matches its specificity and loads later. Only
 * direct field labels: PolyPoint's own labels (zone, date, time chips) keep theirs. */
form.ff-checkout .form-row > label { line-height: 1.35; }
.ff-checkout .input-text,
.ff-checkout textarea,
.ff-checkout select {
	width: 100%;
	font-size: 16px;
	padding: .6rem .75rem;
	border: 1px solid var(--ff-color-border);
	border-radius: var(--ff-radius);
	background: var(--ff-color-panel);
}
.ff-checkout .input-text:focus,
.ff-checkout textarea:focus,
.ff-checkout select:focus {
	border-color: var(--ff-color-accent);
	outline: 2px solid var(--ff-color-accent);
	outline-offset: 1px;
}

/* Order-summary card (the <details> disclosure) */
.ff-checkout__summary-disclosure {
	border: 1px solid var(--ff-color-border);
	border-radius: var(--ff-radius);
	background: var(--ff-color-panel);
}
.ff-checkout__summary-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}
.ff-checkout__summary-toggle::-webkit-details-marker { display: none; }
.ff-checkout__summary-toggle::after {
	content: "";
	width: .5rem;
	height: .5rem;
	flex: 0 0 auto;
	border-right: 2px solid var(--ff-color-muted);
	border-bottom: 2px solid var(--ff-color-muted);
	transform: rotate(45deg);
	transition: transform var(--ff-transition-fast);
}
.ff-checkout__summary-disclosure[open] .ff-checkout__summary-toggle::after {
	transform: rotate(-135deg);
}
.ff-checkout__summary-body { padding: 0 1.25rem 1.25rem; }
#order_review_heading { margin: 0 0 1rem; font-size: 1.15rem; }

/* Desktop: the summary is always shown, so drop the accordion toggle. */
@media (min-width: 60em) {
	.ff-checkout__summary-toggle { display: none; }
}
/* Mobile: the toggle is the heading, so hide the duplicate inner heading. */
@media (max-width: 59.99em) {
	#order_review_heading {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
	.ff-checkout__summary-body { padding-top: 1rem; }
}

/* Greeting recap */
.ff-checkout-recap {
	margin: 0 0 1rem;
	padding: .85rem 1rem;
	border: 1px solid var(--ff-color-border);
	border-radius: var(--ff-radius);
	background: var(--ff-color-primary-tint);
}
.ff-checkout-recap__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
}
.ff-checkout-recap__title { margin: 0; font-size: 1rem; }
.ff-checkout-recap__edit { font-size: .85rem; font-weight: 600; }
.ff-checkout-recap__card { margin: .35rem 0 0; font-size: .9rem; }
.ff-checkout-recap__label { color: var(--ff-color-muted); }
.ff-checkout-recap__message {
	margin: .35rem 0 0;
	font-size: .9rem;
	color: var(--ff-color-muted);
	font-style: italic;
}

/* Delivery step (PolyPoint BG plugin). Its own CSS is deliberately plain;
   this maps it onto the theme: tokens, label style, 44px chips. */
.ff-checkout .ppbg-where,
.ff-checkout .ppbg-when {
	--ppbg-accent: var(--ff-color-accent);
	--ppbg-border: var(--ff-color-border-strong);
	--ppbg-muted: var(--ff-color-muted);
	--ppbg-radius: var(--ff-radius);
	--ppbg-error: var(--ff-color-error);
	--ppbg-gap: var(--ff-space-2xs);
	--ppbg-surface: var(--ff-color-panel);
}
.ff-checkout .ppbg-where__title,
.ff-checkout .ppbg-manual > label,
.ff-checkout .ppbg-dates__label,
.ff-checkout .ppbg-windows > legend { font-weight: 600; font-size: .9rem; }
.ff-checkout .ppbg-calendar { --ppbg-day: 44px; }
.ff-checkout .ppbg-map { border-color: var(--ff-color-border); }
.ff-checkout .ppbg-zone-status {
	padding: .6rem .85rem;
	border-radius: var(--ff-radius);
	background: var(--ff-color-surface);
}
.ff-checkout .ppbg-chip {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	min-height: 44px;
	background: var(--ff-color-panel);
	line-height: 1.25;
}
.ff-checkout .ppbg-chip__main { font-weight: 600; }
.ff-checkout .ppbg-chip:has(input:checked) { background: var(--ff-color-primary-tint); }

/* Order-review card (template override: checkout/review-order.php) */
.ff-order-review { margin: 0; }

/* Line items: Quantity | Thumbnail | Name | Line total */
.ff-order-items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: .85rem;
}
.ff-order-item {
	display: grid;
	grid-template-columns: auto 48px minmax(0, 1fr) auto;
	align-items: center;
	gap: .6rem;
	padding-bottom: .85rem;
	border-bottom: 1px solid var(--ff-color-border);
}
.ff-order-item__qty {
	font-size: .85rem;
	color: var(--ff-color-muted);
	white-space: nowrap;
}
.ff-order-item__qty .product-quantity { font-weight: 700; color: var(--ff-color-text); }
.ff-order-item__media { line-height: 0; }
.ff-order-item__media img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: var(--ff-radius);
}
.ff-order-item__name { font-size: .9rem; min-width: 0; }
.ff-order-item__name .variation,
.ff-order-item__name dl { margin: .15rem 0 0; font-size: .82rem; color: var(--ff-color-muted); }
.ff-order-item__name dt { font-weight: 600; display: inline; }
.ff-order-item__name dd { display: inline; margin: 0 0 0 .25rem; }
.ff-order-item__price { font-weight: 600; text-align: right; white-space: nowrap; }

/* Totals */
.ff-order-totals { margin-top: 1rem; }
.ff-order-totals__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: .4rem 0;
}
.ff-order-totals__label { color: var(--ff-color-muted); }
.ff-order-totals__value { text-align: right; }
.ff-order-totals .order-total {
	margin-top: .35rem;
	padding-top: .85rem;
	border-top: 1px solid var(--ff-color-border);
	font-size: 1.15rem;
}
.ff-order-totals .order-total .ff-order-totals__label { color: var(--ff-color-text); font-weight: 700; }
.ff-order-totals .order-total .ff-order-totals__value { font-weight: 700; }
.ff-order-shipping__placeholder { color: var(--ff-color-muted); font-style: italic; }
.ff-order-shipping__detail { display: block; font-size: var(--ff-text-sm); }

/* Inline discount field (just above the order total) */
.ff-coupon { margin: .85rem 0; }
.ff-coupon__label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .85rem; }
.ff-coupon__row { display: flex; gap: .5rem; }
.ff-coupon__input {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 16px;
	padding: .55rem .65rem;
	border: 1px solid var(--ff-color-border);
	border-radius: var(--ff-radius);
}
.ff-coupon__apply { flex: 0 0 auto; }
.ff-coupon__apply.is-busy { opacity: .6; cursor: progress; }
.ff-coupon__feedback { margin: .4rem 0 0; font-size: .82rem; }
.ff-coupon__feedback:empty { display: none; }
.ff-coupon__feedback.is-error { color: var(--ff-color-error); }
.ff-coupon__feedback.is-success { color: var(--ff-color-success); }

/* Full-width payment / Place order step */
.ff-checkout__payment-section { margin-top: var(--ff-gap); }
.ff-checkout__payment-title { margin: 0 0 1rem; font-size: 1.15rem; }
.ff-checkout #payment {
	background: var(--ff-color-surface);
	border: 1px solid var(--ff-color-border);
	border-radius: var(--ff-radius);
	padding: 1.25rem;
}
.ff-checkout #payment ul.payment_methods {
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	border: 0;
}
/* Payment method logos no taller than the Apple Pay badge (32px), the largest
   of Stripe's. Some gateways hand over a print-size image: ePay.bg's EasyPay
   and B-pay logo is 300x100. A cap, so smaller logos keep their own size. */
.ff-checkout #payment ul.payment_methods li label img {
	width: auto;
	max-height: 32px;
}
/* The selected method's description: WooCommerce paints it lilac, arrow included. */
.woocommerce-checkout .ff-checkout #payment div.payment_box {
	background: var(--ff-color-primary-tint);
	color: var(--ff-color-text);
}
.woocommerce-checkout .ff-checkout #payment div.payment_box::before {
	border-bottom-color: var(--ff-color-primary-tint);
}
.ff-checkout #payment .place-order { margin: 0; }
.ff-checkout #place_order {
	width: 100%;
	padding: .85rem 1.25rem;
	font-size: 1.05rem;
}
.ff-checkout-secure {
	margin: 0 0 .75rem;
	font-size: .85rem;
	color: var(--ff-color-muted);
	text-align: center;
}
@media (min-width: 60em) {
	.ff-checkout #place_order { width: auto; min-width: 16rem; }
	.ff-checkout #payment .place-order { text-align: right; }
	.ff-checkout-secure { text-align: right; }
}

/* Sticky mobile bar — total + Place order, always within reach */
.ff-checkout__bar { display: none; }
@media (max-width: 59.99em) {
	.ff-checkout__bar {
		position: sticky;
		bottom: 0;
		z-index: var(--ff-z-sticky);
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		margin-top: var(--ff-gap);
		padding: .75rem 1rem;
		background: var(--ff-color-panel);
		border-top: 1px solid var(--ff-color-border);
		box-shadow: var(--ff-shadow-bar);
	}
	.ff-checkout__bar-label { display: block; font-size: .75rem; color: var(--ff-color-muted); }
	.ff-checkout__bar-total .ff-checkout-summary-total { font-weight: 700; font-size: 1.1rem; }
	.ff-checkout__bar-button { flex: 0 0 auto; padding: .75rem 1.5rem; }
}
