/* =========================================================================
 * 3. Single product page (FlanFudge layout)
 *
 *    Source markup: woocommerce/content-single-product.php
 *    Reference:     https://flanfudge-direct.lovable.app/product/triple-choc
 * ========================================================================= */

body.flanfudge-shop.single-product .ff-section--shop {
	padding-block: clamp(28px, 3vw, 56px) clamp(48px, 7vw, 96px);
}

/* Two-column layout (gallery left, summary right) at >= 960px. */

.ff-single__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--ff-space-8);
}

@media (min-width: 960px) {
	.ff-single__layout {
		grid-template-columns: 1.05fr 1fr;
		gap: clamp(48px, 5vw, 80px);
		align-items: start;
	}
}

/* ----- Gallery (left column) ------------------------------------------ */

/* WooCommerce layout.css sets div.images to 48% + float — override on PDP only. */
body.flanfudge-shop--single .ff-single__media,
body.single-product .ff-single__media {
	width: 100%;
	min-width: 0;
}

body.flanfudge-shop--single .ff-single__media .woocommerce #content div.product div.images,
body.flanfudge-shop--single .ff-single__media .woocommerce div.product div.images,
body.flanfudge-shop--single .ff-single__media .woocommerce-page #content div.product div.images,
body.flanfudge-shop--single .ff-single__media .woocommerce-page div.product div.images,
body.flanfudge-shop--single .ff-single .ff-single__media div.images,
body.single-product .ff-single__media .woocommerce div.product div.images,
body.single-product .ff-single__media .woocommerce-page div.product div.images,
body.single-product .ff-single .ff-single__media div.images {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	margin: 0 !important;
	clear: none !important;
}

.ff-single__media {
	position: relative;
	width: 100%;
	min-width: 0;
	/* Reveal opacity so the gallery is visible even if WC's FlexSlider
	   never gets to set opacity:1 itself. WC paints the wrapper with
	   inline `style="opacity:0"` waiting for the slider init; we run our
	   own gallery script (assets/js/woocommerce.js) instead. */
}

.ff-single__media .woocommerce-product-gallery {
	float: none;
	width: 100%;
	margin: 0;
	position: relative;
	opacity: 1;
}

.ff-single__media .woocommerce-product-gallery__wrapper {
	position: relative;
	border-radius: var(--ff-radius-xl);
	overflow: hidden;
	background: var(--ff-mist);
	box-shadow: 0 18px 48px rgb(31 42 36 / 0.10);
	aspect-ratio: 1 / 1;
	/* The 4 .woocommerce-product-gallery__image children stack in source
	   order. We use a single-cell grid so they overlap perfectly: only
	   the active image (.is-active, applied by JS) is visible.
	   This avoids vertical stacking when FlexSlider isn't wired up. */
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
}

.ff-single__media .woocommerce-product-gallery__image {
	grid-column: 1 / -1;
	grid-row: 1 / -1;
	width: 100%;
	height: 100%;
	display: block;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease;
}

.ff-single__media .woocommerce-product-gallery__image.is-active,
.ff-single__media .woocommerce-product-gallery__image:first-child:not(.has-flanfudge-gallery ~ *):not(.has-flanfudge-gallery .woocommerce-product-gallery__image) {
	opacity: 1;
	visibility: visible;
}

/* While our gallery JS hasn't booted yet (or on no-JS), force the FIRST
   image to be visible so the page never renders an empty grey square. */
.ff-single__media .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child {
	opacity: 1;
	visibility: visible;
}

.ff-single__media .woocommerce-product-gallery__image > a {
	display: block;
	width: 100%;
	height: 100%;
}

.ff-single__media .woocommerce-product-gallery__image img {
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
}

/* ----- Custom thumbnail strip ------------------------------------------
   Rendered by initProductGallery() in assets/js/woocommerce.js when the
   product has >1 image. Lives directly under the main image wrapper. */
.ff-single__thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
	gap: 10px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.ff-single__thumb {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: var(--ff-radius);
	overflow: hidden;
	background: var(--ff-mist);
	border: 2px solid transparent;
	padding: 0;
	cursor: pointer;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.ff-single__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ff-single__thumb:hover {
	border-color: var(--ff-accent);
	transform: translateY(-1px);
}

.ff-single__thumb.is-active {
	border-color: var(--ff-foreground);
}

.ff-single__thumb:focus-visible {
	outline: 2px solid var(--ff-foreground);
	outline-offset: 2px;
}

/* Zoom magnifier — Lovable surfaces it as a small circular cream pill
   in the top-right corner. WooCommerce ships a default <a class="…__trigger">
   absolutely positioned inside the wrapper; we just restyle it. */
body.flanfudge .ff-single__media .woocommerce-product-gallery__trigger {
	top: 16px;
	right: 16px;
	left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 50%;
	background: var(--ff-card);
	color: var(--ff-foreground);
	text-indent: 0;
	font-size: 0;
	box-shadow: 0 4px 16px rgb(31 42 36 / 0.18);
	transition: background-color var(--ff-dur-fast) var(--ff-ease),
	            color var(--ff-dur-fast) var(--ff-ease),
	            transform var(--ff-dur-fast) var(--ff-ease);
}

body.flanfudge .ff-single__media .woocommerce-product-gallery__trigger::before {
	content: "";
	display: block;
	width: 18px;
	height: 18px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2a24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.3-4.3'/></svg>");
	background-repeat: no-repeat;
	background-position: center;
}

body.flanfudge .ff-single__media .woocommerce-product-gallery__trigger:hover,
body.flanfudge .ff-single__media .woocommerce-product-gallery__trigger:focus-visible {
	background: var(--ff-foreground);
	color: var(--ff-cream);
	transform: scale(1.05);
	outline: none;
}

body.flanfudge .ff-single__media .woocommerce-product-gallery__trigger:hover::before,
body.flanfudge .ff-single__media .woocommerce-product-gallery__trigger:focus-visible::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7f1e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.3-4.3'/></svg>");
}

/* Legacy FlexSlider thumb strip — kept as a defensive no-op for any
   third-party plugin (e.g. WooCommerce gallery extensions) that still
   injects the original markup. Our custom .ff-single__thumbs above is
   what the theme actually renders. */
.ff-single__media .flex-control-thumbs {
	display: none;
}

/* Sale flash overlay sits inside the gallery wrapper. */
.ff-single__media .ff-onsale {
	z-index: 3;
}

/* ----- Summary (right column) ----------------------------------------- */

.ff-single__summary {
	position: relative;
}

@media (min-width: 1024px) {
	.ff-single__summary {
		position: sticky;
		top: 100px;
	}
}

.ff-single__summary-inner {
	display: flex;
	flex-direction: column;
	gap: var(--ff-space-4);
}

.ff-single__badge {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	background: var(--ff-cream-soft);
	color: var(--ff-foreground);
	font-size: 11px;
	font-weight: var(--ff-weight-bold);
	letter-spacing: var(--ff-tracking-widest);
	text-transform: uppercase;
	border-radius: var(--ff-radius-pill);
	border: 1px solid var(--ff-border);
}

/* Category eyebrow — uppercase tracked olive text above the title.
   Renders as an <a> when the term link exists so customers can pivot
   back to the menu category in one tap; we strip the `body.flanfudge a`
   underline / colour with a scoped rule so the eyebrow stays calm. */
body.flanfudge a.ff-single__category,
body.flanfudge a.ff-single__category:visited,
.ff-single__category {
	align-self: flex-start;
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: var(--ff-weight-semibold);
	letter-spacing: var(--ff-tracking-widest);
	text-transform: uppercase;
	color: var(--ff-accent);
	margin: 0 0 -4px;
	text-decoration: none;
	transition: color var(--ff-dur-fast) var(--ff-ease);
}

body.flanfudge a.ff-single__category:hover,
body.flanfudge a.ff-single__category:focus-visible {
	color: var(--ff-foreground);
}

body.flanfudge .ff-single__title {
	font-size: clamp(2rem, 2.2vw + 1rem, 2.75rem);
	font-weight: var(--ff-weight-medium);
	letter-spacing: -0.025em;
	line-height: 1.1;
	color: var(--ff-foreground);
	margin: 0;
}

.ff-single__price {
	font-size: clamp(1.375rem, 0.6vw + 1.1rem, 1.625rem);
	font-weight: var(--ff-weight-bold);
	color: var(--ff-foreground);
	letter-spacing: -0.01em;
	line-height: 1;
}

.ff-single__price del {
	color: var(--ff-muted-fg);
	font-weight: var(--ff-weight-normal);
	margin-right: 10px;
	font-size: 1.125rem;
}

.ff-single__price ins {
	background: transparent;
	text-decoration: none;
}

.ff-single__excerpt {
	color: var(--ff-muted-fg);
	font-size: 1rem;
	line-height: 1.6;
}

.ff-single__excerpt p {
	margin: 0 0 var(--ff-space-3);
}

.ff-single__excerpt p:last-child {
	margin-bottom: 0;
}

/* The form wraps qty / addons / actions / WhatsApp into one stack so
   spacing is uniform regardless of which fields are present. */
.ff-single__form {
	display: flex;
	flex-direction: column;
	gap: var(--ff-space-4);
	margin: 0;
}

/* Quantity */

.ff-single__qty {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ff-single__qty-label {
	font-size: 0.8125rem;
	font-weight: var(--ff-weight-semibold);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ff-muted-fg);
}

.ff-single .quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--ff-border);
	border-radius: var(--ff-radius-pill);
	background: var(--ff-card);
	overflow: hidden;
	height: 48px;
	width: fit-content;
}

.ff-single .quantity input.qty {
	width: 56px;
	height: 100%;
	padding: 0 4px;
	border: 0;
	background: transparent;
	color: var(--ff-foreground);
	font-family: inherit;
	font-size: 1rem;
	font-weight: var(--ff-weight-bold);
	text-align: center;
	-moz-appearance: textfield;
}

.ff-single .quantity input.qty::-webkit-outer-spin-button,
.ff-single .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ff-single .ff-qty-btn {
	width: 42px;
	height: 100%;
	border: 0;
	background: transparent;
	color: var(--ff-foreground);
	font-size: 1.125rem;
	font-weight: var(--ff-weight-bold);
	cursor: pointer;
	transition: background-color var(--ff-dur-fast) var(--ff-ease);
}

.ff-single .ff-qty-btn:hover {
	background: var(--ff-mist);
}

/* Addon picker (Add a sauce / extras)
 *
 * Lovable renders these as horizontal pill chips that wrap across rows
 * on narrow viewports — `Chocolate +PKR 150`, `Strawberry +PKR 200`,
 * etc. The native <input type="checkbox"> stays visually hidden but is
 * still tabbable + keyboard-toggleable so screen readers and the existing
 * JS (which listens on `input[name="flanfudge_addons[]"]`) keep working.
 */

.ff-single__addons {
	border: 0;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ff-single__addons-title {
	font-size: 0.8125rem;
	font-weight: var(--ff-weight-semibold);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ff-muted-fg);
	padding: 0;
}

.ff-single__addons-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ff-addon {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 1px solid var(--ff-border);
	border-radius: var(--ff-radius-pill);
	background: var(--ff-card);
	cursor: pointer;
	user-select: none;
	min-height: 40px;
	transition: border-color var(--ff-dur-fast) var(--ff-ease),
	            background-color var(--ff-dur-fast) var(--ff-ease),
	            color var(--ff-dur-fast) var(--ff-ease),
	            transform var(--ff-dur-fast) var(--ff-ease);
	-webkit-tap-highlight-color: transparent;
}

.ff-addon:hover {
	border-color: var(--ff-foreground);
	transform: translateY(-1px);
}

.ff-addon input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.ff-addon:has(input[type="checkbox"]:checked) {
	border-color: var(--ff-foreground);
	background: var(--ff-foreground);
	color: var(--ff-cream);
}

.ff-addon input[type="checkbox"]:focus-visible ~ .ff-addon__name {
	outline: 2px solid var(--ff-foreground);
	outline-offset: 4px;
	border-radius: var(--ff-radius);
}

.ff-addon__name {
	font-size: 0.9375rem;
	font-weight: var(--ff-weight-semibold);
	color: inherit;
	letter-spacing: -0.005em;
}

.ff-addon__price {
	font-size: 0.875rem;
	font-weight: var(--ff-weight-semibold);
	color: var(--ff-muted-fg);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* Inside the pill, the `bdi`/`span` rendered by `wc_price()` inherits the
   pill colour: muted-fg at rest, cream when the chip is selected. */
.ff-addon__price * {
	color: inherit;
}

.ff-addon:has(input[type="checkbox"]:checked) .ff-addon__price,
.ff-addon:has(input[type="checkbox"]:checked) .ff-addon__name {
	color: var(--ff-cream);
}

/* Action buttons row
 *
 * Lovable lays out [Add to Cart] [Buy Now] [Custom order? WhatsApp us]
 * on a single inline row at desktop, then wraps to a stacked column on
 * narrow viewports. We use flex-wrap so the WhatsApp link reflows naturally
 * once it runs out of horizontal space, and `width: auto` on the buttons
 * keeps each pill snug against its label instead of spanning the column.
 */

.ff-single__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin-top: 4px;
}

.ff-single__add,
.ff-single__buy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	width: auto;
	flex: 0 0 auto;
	border-radius: var(--ff-radius-pill);
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: var(--ff-weight-semibold);
	letter-spacing: 0.005em;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color var(--ff-dur-fast) var(--ff-ease),
	            border-color var(--ff-dur-fast) var(--ff-ease),
	            transform var(--ff-dur-fast) var(--ff-ease),
	            box-shadow var(--ff-dur-fast) var(--ff-ease);
}

.ff-single__add {
	background: var(--ff-foreground);
	color: var(--ff-cream);
	border: 1px solid var(--ff-foreground);
}

.ff-single__add:hover,
.ff-single__add:focus-visible {
	background: var(--ff-olive-soft);
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgb(31 42 36 / 0.20);
	outline: none;
}

.ff-single__buy {
	background: var(--ff-card);
	color: var(--ff-foreground);
	border: 1px solid var(--ff-border);
}

.ff-single__buy:hover,
.ff-single__buy:focus-visible {
	border-color: var(--ff-foreground);
	background: var(--ff-cream-soft);
	outline: none;
}

.ff-single__add.added::after {
	content: " ✓";
}

.ff-single__add.loading {
	opacity: 0.6;
	pointer-events: none;
}

/* WhatsApp link — when nested inside .ff-single__actions it sits inline
   with the buttons; when used standalone (sold-out fallback) the modifier
   class drops back to the original margin so it doesn't hug the unavailable
   message. */

.ff-single__whatsapp {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	color: var(--ff-accent);
	font-weight: var(--ff-weight-semibold);
	font-size: 0.9375rem;
	line-height: 1.2;
	text-decoration: none;
	margin: 0;
	padding: 4px 2px;
}

.ff-single__whatsapp:hover,
.ff-single__whatsapp:focus-visible {
	color: var(--ff-foreground);
	outline: none;
}

.ff-single__whatsapp--standalone {
	margin-top: 4px;
}

.ff-single__whatsapp svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex-shrink: 0;
}

/* On very narrow viewports the buttons stretch full-width and the
   WhatsApp link drops to its own row, matching Lovable's mobile pattern
   without any markup change. */
@media (max-width: 479.99px) {
	.ff-single__add,
	.ff-single__buy {
		flex: 1 1 100%;
		width: 100%;
	}
	.ff-single__whatsapp {
		flex: 1 1 100%;
		justify-content: flex-start;
		padding-top: 6px;
	}
}

/* Sold out / unavailable text */

.ff-single__unavailable {
	color: var(--ff-muted-fg);
	font-size: 0.9375rem;
	background: var(--ff-cream-soft);
	border: 1px solid var(--ff-border);
	padding: 14px 18px;
	border-radius: var(--ff-radius);
	margin: 0;
}

/* Info pills */

.ff-single__pills {
	list-style: none;
	margin: var(--ff-space-3) 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	border-top: 1px solid var(--ff-border);
	padding-top: var(--ff-space-5);
}

.ff-single__pill {
	display: grid;
	grid-template-columns: 22px 1fr;
	gap: 12px;
	align-items: flex-start;
	color: var(--ff-foreground);
	font-size: 0.875rem;
	line-height: 1.5;
}

.ff-single__pill-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ff-accent);
	margin-top: 1px;
}

.ff-single__pill-icon svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Product meta (SKU, categories, tags) — quietly at the bottom */

.ff-single__meta {
	margin-top: var(--ff-space-4);
	padding-top: var(--ff-space-4);
	border-top: 1px solid var(--ff-border);
	font-size: 0.8125rem;
	color: var(--ff-muted-fg);
}

.ff-single__meta .product_meta > span {
	display: block;
	margin-bottom: 6px;
}

.ff-single__meta a {
	color: var(--ff-foreground);
	font-weight: var(--ff-weight-semibold);
	text-decoration: none;
}

.ff-single__meta a:hover {
	color: var(--ff-accent);
}

/* About this dessert */

.ff-single__about {
	margin-top: clamp(48px, 6vw, 80px);
	padding-top: clamp(40px, 5vw, 56px);
	border-top: 1px solid var(--ff-border);
	max-width: 760px;
}

body.flanfudge .ff-single__about-title {
	font-size: clamp(1.5rem, 1.4vw + 0.6rem, 2rem);
	font-weight: var(--ff-weight-medium);
	letter-spacing: -0.015em;
	margin: 0 0 var(--ff-space-4);
}

.ff-single__about-body {
	color: var(--ff-foreground);
	font-size: 1.0625rem;
	line-height: 1.7;
}

.ff-single__about-body p {
	margin: 0 0 var(--ff-space-4);
}

.ff-single__about-body p:last-child {
	margin-bottom: 0;
}

/* Related products — "You might also love"
 *
 * The heading and column count come from inc/woocommerce.php
 * (flanfudge_related_products_heading + flanfudge_related_products_args).
 * Here we just dress the section with editorial spacing and force a 4-up
 * grid on desktop using high-specificity selectors so WooCommerce's
 * default `.products.columns-N` widths (22.05%) don't override it.
 */

body.flanfudge-shop .related.products,
body.flanfudge .related.products {
	margin-top: clamp(48px, 6vw, 80px);
	padding-top: clamp(40px, 5vw, 56px);
	border-top: 1px solid var(--ff-border);
}

body.flanfudge-shop .related.products > h2,
body.flanfudge .related.products > h2 {
	font-size: clamp(1.625rem, 1.4vw + 0.8rem, 2.25rem);
	font-weight: var(--ff-weight-medium);
	letter-spacing: -0.015em;
	margin: 0 0 var(--ff-space-6);
	color: var(--ff-foreground);
}

/* The related-row markup is whatever `woocommerce_product_loop_start`
   returns; we replace it with `<div class="ff-products">` (see
   inc/woocommerce.php → flanfudge_loop_start). The selector targets
   BOTH the original `ul.products` (defensive, in case a plugin
   re-overrides the filter) and our `.ff-products` wrapper so the
   4-up grid renders regardless. */
body.flanfudge .related.products ul.products,
body.flanfudge .related.products .ff-products,
body.flanfudge-shop .related.products ul.products,
body.flanfudge-shop .related.products .ff-products {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--ff-space-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

body.flanfudge .related.products ul.products li.product,
body.flanfudge .related.products .ff-products > .ff-product,
body.flanfudge-shop .related.products ul.products li.product,
body.flanfudge-shop .related.products .ff-products > .ff-product {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	float: none;
	list-style: none;
}

@media (min-width: 640px) {
	body.flanfudge .related.products ul.products,
	body.flanfudge .related.products .ff-products,
	body.flanfudge-shop .related.products ul.products,
	body.flanfudge-shop .related.products .ff-products {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--ff-space-6);
	}
}

@media (min-width: 1024px) {
	body.flanfudge .related.products ul.products,
	body.flanfudge .related.products .ff-products,
	body.flanfudge-shop .related.products ul.products,
	body.flanfudge-shop .related.products .ff-products {
		grid-template-columns: repeat(4, 1fr);
		gap: var(--ff-space-6);
	}
}

/* Sticky mobile add bar */

.ff-single__sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 80;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	background: var(--ff-bg);
	border-top: 1px solid var(--ff-border);
	box-shadow: 0 -10px 30px rgb(31 42 36 / 0.10);
	transform: translateY(110%);
	transition: transform var(--ff-dur-base) var(--ff-ease-out);
}

.ff-single__sticky.is-visible {
	transform: translateY(0);
}

.ff-single__sticky-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ff-single__sticky-label {
	font-size: 0.75rem;
	font-weight: var(--ff-weight-semibold);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ff-muted-fg);
}

.ff-single__sticky-total {
	font-size: 1.125rem;
	font-weight: var(--ff-weight-bold);
	color: var(--ff-foreground);
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
}

.ff-single__sticky-add {
	min-height: 44px;
	padding: 0 22px;
	font-size: 0.9375rem;
	flex-shrink: 0;
}

/* Hide the sticky bar permanently on >=960px (right-column form is
   always in view at desktop widths). */
@media (min-width: 960px) {
	.ff-single__sticky {
		display: none;
	}
}

/* Add-on tag in the cart line items. */
.ff-cart-addon-tag {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 8px;
	background: var(--ff-cream-soft);
	color: var(--ff-foreground);
	font-size: 10px;
	font-weight: var(--ff-weight-bold);
	letter-spacing: var(--ff-tracking-widest);
	text-transform: uppercase;
	border-radius: var(--ff-radius-pill);
	border: 1px solid var(--ff-border);
	vertical-align: middle;
}
