.fpc-products,
.fpc-cart,
.fpc-mini {
	--fpc-accent: #111;
	--fpc-accent-text: #fff;
	--fpc-border: #e2e2e2;
	--fpc-bg: #fff;
	--fpc-radius: 10px;
	--fpc-sale: #eb6631;        /* sale price and discount badge */
	--fpc-ink: #221f1b;         /* card text */
	--fpc-card-radius: 24px;
	box-sizing: border-box;
}
.fpc-products *,
.fpc-cart * { box-sizing: border-box; }

.fpc-products {
	display: grid;
	grid-template-columns: repeat(var(--fpc-cols, 3), minmax(0, 1fr));
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (max-width: 991px) {
	.fpc-products { grid-template-columns: repeat(min(var(--fpc-cols, 3), 2), minmax(0, 1fr)); }
}
@media (max-width: 575px) {
	.fpc-products { grid-template-columns: minmax(0, 1fr); }
}

.fpc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(0, 0, 0, .06);
	border-radius: var(--fpc-card-radius);
	background: var(--fpc-bg);
	color: var(--fpc-ink);
	overflow: hidden;
}
.fpc-card .wp-block-image { margin: 0; }
.fpc-card .wp-block-image img { display: block; width: 100%; }
.fpc-card .wp-block-image a { display: block; line-height: 0; }
.fpc-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fpc-card__body > * { margin: 0; }
.fpc-card__body .fpc-btn { margin-top: auto; align-self: flex-start; }

.fpc-btn { margin-top: auto; }

.fpc-btn {
	appearance: none;
	border: 1px solid var(--fpc-accent);
	background: var(--fpc-accent);
	color: var(--fpc-accent-text);
	border-radius: 999px;
	padding: 10px 20px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-transform: none;
	text-decoration: none;
}
.fpc-btn:disabled { opacity: .4; cursor: not-allowed; }
.fpc-btn:focus-visible,
.fpc-launcher:focus-visible,
.fpc-close:focus-visible,
.fpc-item__remove:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Cart panel */
.fpc-panel {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	background: var(--fpc-bg);
	color: #111;
	border: 1px solid var(--fpc-border);
	border-radius: var(--fpc-radius);
}
.fpc-panel[hidden],
.fpc-empty[hidden],
.fpc-total[hidden],
.fpc-badge[hidden] { display: none; }
.fpc-panel__head { display: flex; align-items: center; justify-content: space-between; }
/* The panel fits the screen; only the item list scrolls, so the title, total and Checkout stay in view. */
.fpc-panel > * { flex: 0 0 auto; }
.fpc-cart--floating .fpc-panel { max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); }
.fpc-cart--inline .fpc-panel { max-height: min(80vh, 640px); }
.fpc-panel > .fpc-items-wrap { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.fpc-items-wrap > .fpc-items { flex: 1 1 auto; min-height: 0; }
.fpc-items {
	list-style: none;
	margin: 0;
	padding: 0 6px 0 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: #b5b5b5 transparent;
	/* Soft fades at the top and bottom edge show that there is more to scroll to */
	background:
		linear-gradient(var(--fpc-bg), rgba(255, 255, 255, 0)) top / 100% 22px no-repeat local,
		linear-gradient(rgba(255, 255, 255, 0), var(--fpc-bg)) bottom / 100% 22px no-repeat local,
		radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, .16), rgba(0, 0, 0, 0)) top / 100% 8px no-repeat scroll,
		radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, .16), rgba(0, 0, 0, 0)) bottom / 100% 8px no-repeat scroll;
}
.fpc-items::-webkit-scrollbar { width: 6px; }
.fpc-items::-webkit-scrollbar-thumb { background: #b5b5b5; border-radius: 3px; }
.fpc-items::-webkit-scrollbar-track { background: transparent; }
.fpc-item { display: flex; align-items: center; gap: 10px; }
.fpc-item__img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.fpc-item__info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.fpc-item__title { font-weight: 600; font-size: .95rem; }
.fpc-item__price { font-size: .85rem; opacity: .7; }
.fpc-item__remove,
.fpc-close { background: none; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; color: inherit; padding: 4px 8px; }
.fpc-empty { margin: 0; opacity: .7; }
.fpc-items:empty { display: none; }
.fpc-items-wrap:has(.fpc-items:empty) { display: none; }
.fpc-total { font-weight: 700; }
.fpc-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Floating */
.fpc-cart--floating {
	position: fixed;
	z-index: 9990;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: calc(100vw - 32px);
}
.fpc-cart--floating .fpc-panel { width: min(340px, calc(100vw - 32px));box-shadow: 0 10px 40px rgba(0, 0, 0, .2); }
.fpc-pos-bottom-right { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); align-items: flex-end; flex-direction: column-reverse; }
.fpc-pos-bottom-left { left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); align-items: flex-start; flex-direction: column-reverse; }
.fpc-pos-top-right { right: max(16px, env(safe-area-inset-right)); top: 16px; align-items: flex-end; }
.fpc-pos-top-left { left: max(16px, env(safe-area-inset-left)); top: 16px; align-items: flex-start; }
.fpc-cart.fpc-cart--floating.fpc-pos-bottom-bar {
	left: 0; right: 0; bottom: 0;
	/* Beat the constrained-layout rules (content width + auto margins) of the page wrapper. */
	max-width: none !important;
	margin: 0 !important;
	align-items: stretch;
	flex-direction: column-reverse;
	padding-bottom: env(safe-area-inset-bottom);
}
.fpc-pos-bottom-bar .fpc-launcher { border-radius: 0; justify-content: center; width: 100%; }
.fpc-cart--floating.fpc-pos-bottom-bar .fpc-panel { width: 100%; border-radius: 0; }

.fpc-launcher {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 0;
	border-radius: 999px;
	padding: 12px 18px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	background: var(--fpc-accent);
	color: var(--fpc-accent-text);
	box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.fpc-badge {
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 11px;
	background: var(--fpc-accent-text);
	color: var(--fpc-accent);
	font-size: .8rem;
	line-height: 22px;
	text-align: center;
}
@media (max-width: 575px) {
	.fpc-launcher__label { display: none; }
}

/* The theme underlines every link with !important, so card links need it too. */
.fpc-card a { color: inherit; text-decoration: none !important; }
.fpc-card a:hover,
.fpc-card a:focus-visible { text-decoration: underline !important; }
.fpc-launcher__icon { display: inline-flex; align-items: center; }
.fpc-launcher__icon svg,
.fpc-launcher__icon img { width: var(--fpc-icon-size, 20px); height: var(--fpc-icon-size, 20px); object-fit: contain; display: block; }

/* Checkout details popup (field look follows the Foundr checkout page) */
.fpc-modal {
	--fpc-form-accent: #e53935;
	--fpc-form-border: #c0c1ca;
	--fpc-form-text: #494a52;
	width: min(520px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: #fff;
	color: #000;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	overflow: auto;
}
.fpc-modal::backdrop { background: rgba(0, 0, 0, .55); }
.fpc-modal * { box-sizing: border-box; }
.fpc-form { display: flex; flex-direction: column; gap: 20px; padding: 28px; margin: 0; }
.fpc-form__title { margin: 0; font-size: 1.35rem; line-height: 1.2; color: #000; }
.fpc-form__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.fpc-field { display: flex; flex-direction: column; margin: 0; min-width: 0; }
.fpc-field--email,
.fpc-field--phone,
.fpc-field--country_region1,
.fpc-field--address { grid-column: 1 / -1; }
.fpc-field__label { display: block; margin: 0 0 8px; font-size: 16px; font-weight: 500; line-height: 1.2; color: #000; }
.fpc-field__label span { color: var(--fpc-form-accent); }

.fpc-modal .fpc-field input,
.fpc-modal .fpc-field select {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 10px 16.8px;
	border: 1px solid var(--fpc-form-border) !important;
	border-radius: 0 !important;
	background-color: transparent !important;
	box-shadow: none !important;
	color: var(--fpc-form-text);
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
}
.fpc-modal .fpc-field input::placeholder { color: #999; opacity: 1; }
.fpc-modal .fpc-field input:focus,
.fpc-modal .fpc-field select:focus { outline: 0; border-color: #494a52 !important; }
.fpc-modal .fpc-field input:focus-visible,
.fpc-modal .fpc-field select:focus-visible { outline: 2px solid rgba(73, 74, 82, .35); outline-offset: 1px; }
.fpc-modal .fpc-field input:user-invalid,
.fpc-modal .fpc-field select:user-invalid { border-color: var(--fpc-form-accent) !important; }

/* Dropdown: the checkout page's soft grey, rounded select with a chevron */
.fpc-select { position: relative; display: block; }
.fpc-modal .fpc-field select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 44px;
	border: .5px solid #e5e5e5 !important;
	border-radius: 12px !important;
	background-color: rgba(121, 127, 129, .05) !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23494a52' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	cursor: pointer;
}
.fpc-modal .fpc-field select:invalid { color: #494a52; }

.fpc-form__actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.fpc-modal .fpc-form__actions .fpc-btn {
	padding: 14px 24px;
	border: 1px solid var(--fpc-form-accent);
	border-radius: 10px;
	background: var(--fpc-form-accent);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .4px;
	text-transform: uppercase;
	line-height: 1.2;
}
.fpc-modal .fpc-form__actions .fpc-btn--ghost { background: transparent; color: #000; border-color: var(--fpc-form-border); }
@media (max-width: 575px) {
	.fpc-form__fields { grid-template-columns: minmax(0, 1fr); }
	.fpc-form { padding: 20px 16px; }
	.fpc-form__actions .fpc-btn { flex: 1; }
}

/* HubSpot form popup: HubSpot renders plain HTML (hs-* classes), styled here like the built-in form */
.fpc-modal--hs { width: min(560px, calc(100vw - 32px)); }
.fpc-hs__status { margin: 0; font-size: .9rem; color: #494a52; }
.fpc-hs__status[hidden] { display: none; }

.fpc-modal .fpc-hs form.hs-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 16px;
	margin: 0;
	padding: 0;
	max-width: none;
}
.fpc-modal .fpc-hs .hs-form-field,
.fpc-modal .fpc-hs .hs-dependent-field { margin: 0; padding: 0; min-width: 0; float: none; width: auto; }
.fpc-modal .fpc-hs .hs-dependent-field > .hs-form-field { width: 100%; }
/* Full-width rows; first/last name and city/zip share a row */
.fpc-modal .fpc-hs .hs_email,
.fpc-modal .fpc-hs .hs_phone,
.fpc-modal .fpc-hs .hs-dependent-field,
.fpc-modal .fpc-hs .hs_address,
.fpc-modal .fpc-hs .hs_accepted_terms,
.fpc-modal .fpc-hs .hs_submit,
.fpc-modal .fpc-hs .hs-richtext,
.fpc-modal .fpc-hs .hs_error_rollup { grid-column: 1 / -1; }

.fpc-modal .fpc-hs label { display: block; margin: 0 0 8px; padding: 0; font-size: 16px; font-weight: 500; line-height: 1.2; color: #000; float: none; width: auto; }
.fpc-modal .fpc-hs .hs-form-required { margin-left: 2px; color: var(--fpc-form-accent); }
.fpc-modal .fpc-hs .input { margin: 0 !important; }

.fpc-modal .fpc-hs .hs-input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]) {
	display: block;
	width: 100% !important;
	height: 48px;
	margin: 0;
	padding: 10px 16.8px;
	border: 1px solid var(--fpc-form-border) !important;
	border-radius: 0 !important;
	background-color: transparent !important;
	box-shadow: none !important;
	color: var(--fpc-form-text);
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
}
.fpc-modal .fpc-hs .hs-input::placeholder { color: #999; opacity: 1; }
.fpc-modal .fpc-hs .hs-input:focus { outline: 0; border-color: #494a52 !important; }
.fpc-modal .fpc-hs .hs-input:focus-visible { outline: 2px solid rgba(73, 74, 82, .35); outline-offset: 1px; }
.fpc-modal .fpc-hs .hs-input.invalid.error:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]) { border-color: var(--fpc-form-accent) !important; }
.fpc-modal .fpc-hs input[type="checkbox"].invalid { outline: 2px solid var(--fpc-form-accent); outline-offset: 1px; }

.fpc-modal .fpc-hs select.hs-input {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 44px;
	border: .5px solid #e5e5e5 !important;
	border-radius: 12px !important;
	background-color: rgba(121, 127, 129, .05) !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23494a52' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	cursor: pointer;
}

/* Consent checkbox */
.fpc-modal .fpc-hs .inputs-list { list-style: none; margin: 0; padding: 0; }
.fpc-modal .fpc-hs .inputs-list li { margin: 0; padding: 0; }
.fpc-modal .fpc-hs .hs-form-booleancheckbox-display { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 13px; font-weight: 400; line-height: 1.5; color: #494a52; cursor: pointer; }
.fpc-modal .fpc-hs .hs-form-booleancheckbox-display > span { margin: 0; }
.fpc-modal .fpc-hs input[type="checkbox"].hs-input { flex: 0 0 auto; appearance: auto; -webkit-appearance: checkbox; width: 18px !important; height: 18px !important; margin: 2px 0 0; padding: 0; accent-color: var(--fpc-form-accent); }
.fpc-modal .fpc-hs .hs-form-booleancheckbox-display a { color: #000; text-decoration: underline !important; }

/* Submit */
.fpc-modal .fpc-hs .hs_submit { margin: 0; }
.fpc-modal .fpc-hs .hs_submit .actions { margin: 0; padding: 0; }
.fpc-modal .fpc-hs .hs-button {
	display: block;
	width: 100%;
	margin: 0;
	padding: 16px 24px;
	border: 1px solid var(--fpc-form-accent);
	border-radius: 10px;
	background: var(--fpc-form-accent);
	color: #fff;
	font: inherit;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
}
.fpc-modal .fpc-hs .hs-button:hover,
.fpc-modal .fpc-hs .hs-button:focus-visible { filter: brightness(.92); }

/* Validation messages */
.fpc-modal .fpc-hs .hs-error-msgs { list-style: none; margin: 6px 0 0; padding: 0; }
.fpc-modal .fpc-hs .hs-error-msg,
.fpc-modal .fpc-hs .hs-error-msgs label { margin: 0; font-size: 13px; font-weight: 400; color: var(--fpc-form-accent); }
.fpc-modal .fpc-hs .submitted-message { font-size: 16px; color: #000; }

/* The HubSpot popup keeps Cancel as a quiet text link under the form */
.fpc-modal--hs .fpc-form__actions { justify-content: center; margin-top: 0; }
.fpc-modal--hs .fpc-form__actions .fpc-btn--ghost { border-color: transparent; text-transform: none; font-weight: 500; color: #494a52; text-decoration: underline; padding: 6px 12px; }

@media (max-width: 575px) {
	.fpc-modal .fpc-hs form.hs-form { grid-template-columns: minmax(0, 1fr); }
}

/* Floating cart feedback when a product is added or removed */
@keyframes fpc-bounce {
	0%   { transform: translateY(0) scale(1); }
	22%  { transform: translateY(-16px) scale(1.07); }
	42%  { transform: translateY(0) scale(.96); }
	62%  { transform: translateY(-7px) scale(1.03); }
	80%  { transform: translateY(0) scale(.99); }
	100% { transform: translateY(0) scale(1); }
}
@keyframes fpc-pop {
	0%   { transform: scale(1); }
	40%  { transform: scale(1.5); }
	100% { transform: scale(1); }
}
@keyframes fpc-press {
	0%   { transform: scale(1); }
	35%  { transform: scale(.9); }
	100% { transform: scale(1); }
}
.fpc-launcher.is-added { animation: fpc-bounce .7s cubic-bezier(.28, .84, .42, 1); }
.fpc-launcher.is-added .fpc-badge { animation: fpc-pop .5s .12s ease-out; }
.fpc-launcher.is-removed { animation: fpc-press .4s ease-out; }
@media (prefers-reduced-motion: reduce) {
	.fpc-launcher.is-added,
	.fpc-launcher.is-added .fpc-badge,
	.fpc-launcher.is-removed { animation: none; }
}

/* Foundr Video block inside a card: no video for this product means no play button */
.fpc-card .wp-block-foundr-vimeo2[data-vimeovideolink=""] .foundr-vimeo2-play-btn,
.fpc-card .wp-block-foundr-vimeo2:not([data-vimeovideolink]) .foundr-vimeo2-play-btn { display: none; }
.fpc-card .wp-block-foundr-vimeo2 figure { margin: 0; }
/* Inline video keeps the thumbnail's shape (cart.js sets --fpc-media-ratio from the image), not the Video block's fixed 2:1 box */
.fpc-card .wp-block-foundr-vimeo2 .foundr-vimeo2-vimeo-iframe > div { padding: 0 !important; aspect-ratio: var(--fpc-media-ratio, 4 / 3); }

/* Close button: a round icon button, unlike the plain x that removes a product */
.fpc-panel .fpc-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 50%;
	background: #f3f4f6;
	color: #111;
	font-size: 0;
	line-height: 1;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.fpc-close svg { width: 16px; height: 16px; display: block; }
.fpc-panel .fpc-close:hover,
.fpc-panel .fpc-close:focus-visible { background: #111; border-color: #111; color: #fff; transform: rotate(90deg); }

/* Thumbnail used when a product has no image: the logo on a soft tile */
.fpc-item__img { background: #f3f4f6; }
.fpc-item__img.is-fallback { object-fit: contain; padding: 6px; border: 1px solid rgba(0, 0, 0, .06); mix-blend-mode: multiply; }
.fpc-card img[src$="/images/logo.png"] { object-fit: contain !important; padding: 12%; background: #f3f4f6; mix-blend-mode: multiply; }

/* Down arrow shown while the list can scroll further */
.fpc-more {
	position: absolute;
	left: 50%;
	bottom: 6px;
	z-index: 2;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #111;
	color: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
	cursor: pointer;
	animation: fpc-nudge-down 1.6s ease-in-out infinite;
}
.fpc-more[hidden] { display: none; }
.fpc-more svg { width: 18px; height: 18px; display: block; }
.fpc-more:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
@keyframes fpc-nudge-down {
	0%, 100% { transform: translate(-50%, 0); }
	50%      { transform: translate(-50%, 4px); }
}
@media (prefers-reduced-motion: reduce) {
	.fpc-more { animation: none; }
	.fpc-panel .fpc-close { transition: none; }
	.fpc-panel .fpc-close:hover,
	.fpc-panel .fpc-close:focus-visible { transform: none; }
}

/* ---------- Product card design ---------- */
.fpc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Discount badge, laid over the top left of the card image */
.fpc-discount {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 3;
	display: inline-block;
	padding: 6px 12px;
	border-radius: 8px;
	background: var(--fpc-sale);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .02em;
	text-transform: uppercase;
}
.fpc-discount.is-empty { opacity: .45; }

/* Author: avatar and name in capitals */
.fpc-author { display: flex; align-items: center; margin: 0; }
.fpc-author__link,
.fpc-author > .fpc-author__avatar,
.fpc-author > .fpc-author__name { display: inline-flex; align-items: center; gap: 12px; }
.fpc-card .fpc-author__link { color: inherit; text-decoration: none !important; }
.fpc-card .fpc-author__link:hover .fpc-author__name,
.fpc-card .fpc-author__link:focus-visible .fpc-author__name { text-decoration: underline; }
.fpc-author__avatar { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; background: #e2e1dc; display: inline-block; }
.fpc-author__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fpc-author__name {
	font-family: var(--wp--preset--font-family--dm-mono, ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace);
	font-size: 16px;
	letter-spacing: .03em;
	text-transform: uppercase;
	line-height: 1.2;
}
.fpc-author.is-empty { opacity: .45; }

/* Text */
.fpc-card__body h3 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--fpc-ink); }
.fpc-card__desc {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 17px;
	line-height: 1.45;
}

/* Price: the sale price large, the original struck through beside it */
.fpc-card__body > .fpc-price { margin-top: 12px; }
.fpc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0; }
.fpc-price__sale { font-size: 34px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; color: var(--fpc-sale); }
.fpc-price__original { font-size: 18px; font-weight: 500; line-height: 1.2; color: var(--fpc-ink); text-decoration: line-through; }
.fpc-price.has-text-color .fpc-price__sale,
.fpc-price.has-text-color .fpc-price__original { color: inherit; }

/* Add to cart: a pill until the product is in the cart, then "check Added . Remove" */
.fpc-card .fpc-add { align-self: stretch; margin-top: 12px; min-height: 48px; }
.fpc-add { display: inline-flex; align-items: center; justify-content: center; gap: .5em; }
.fpc-add__added { display: none; align-items: center; gap: .5em; }
.fpc-add__check { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.fpc-add__added-label { font-weight: 700; }
.fpc-add__remove { font-weight: 400; }
.fpc-add.is-added .fpc-add__label { display: none; }
.fpc-add.is-added .fpc-add__added { display: inline-flex; }
.fpc-add.is-added {
	background: transparent !important;
	border-color: transparent !important;
	box-shadow: none !important;
	color: var(--fpc-ink) !important;
}
.fpc-add.is-added:hover .fpc-add__remove,
.fpc-add.is-added:focus-visible .fpc-add__remove { text-decoration: underline; }

/* Cart rows: original price beside the price */
.fpc-item__was { margin-left: 6px; opacity: .6; text-decoration: line-through; }

/* ---------- Cart panel design ---------- */
.fpc-cart--floating .fpc-panel { width: min(360px, calc(100vw - 32px)); }
.fpc-panel { gap: 0; padding: 24px; color: var(--fpc-ink); }
.fpc-panel__head { margin-bottom: 8px; }
.fpc-panel__title { font-size: 24px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }

/* Rows: thumbnail, title and author, price over the struck original, remove */
.fpc-items { gap: 0; }
.fpc-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #e3e2dd; }
.fpc-item__img { flex: 0 0 auto; width: 72px; height: 48px; border-radius: 6px; }
.fpc-item__info { flex: 1; min-width: 0; gap: 2px; }
.fpc-item__title { font-size: 16px; font-weight: 700; line-height: 1.25; }
.fpc-item__author { font-size: 14px; line-height: 1.3; }
.fpc-item__prices { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.fpc-item__price { font-size: 16px; font-weight: 800; line-height: 1.25; opacity: 1; }
.fpc-item__was { margin: 0; font-size: 14px; line-height: 1.3; opacity: 1; text-decoration: line-through; }
.fpc-item__remove { flex: 0 0 auto; font-size: 22px; padding: 4px 2px 4px 6px; color: var(--fpc-ink); }

/* Summary: regular price, the saving, then the total */
.fpc-summary { display: flex; flex-direction: column; margin-top: 18px; }
.fpc-summary[hidden],
.fpc-summary__row[hidden] { display: none; }
.fpc-summary__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fpc-summary__row--regular { font-size: 15px; color: #9b9a95; }
.fpc-summary__row--regular .fpc-summary__value { font-weight: 400; text-decoration: line-through; }
.fpc-summary__row--discount { margin-top: 10px; padding-bottom: 16px; border-bottom: 1px solid #e3e2dd; font-size: 16px; font-weight: 700; }
.fpc-summary__row--total { margin-top: 16px; font-size: 18px; }
.fpc-summary__row--total .fpc-summary__value { font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; color: var(--fpc-sale); }

/* Checkout and the note under it */
.fpc-panel .fpc-checkout {
	width: 100%;
	min-height: 52px;
	margin-top: 20px;
	border-color: var(--fpc-sale);
	border-radius: 12px;
	background: var(--fpc-sale);
	color: var(--fpc-ink);
	font-size: 18px;
	font-weight: 700;
}
.fpc-panel .fpc-checkout:not(:disabled):hover,
.fpc-panel .fpc-checkout:not(:disabled):focus-visible { filter: brightness(.95); }
.fpc-note { margin: 12px 0 0; text-align: center; font-size: 14px; line-height: 1.4; }
.fpc-empty { margin: 12px 0 0; }

/* ---------- Product list toolbar: count and list / grid switch ---------- */
.fpc-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 20px; color: var(--fpc-ink); }
.fpc-toolbar__count { font-size: 18px; font-weight: 800; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; }
.fpc-view-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(34, 31, 27, .08); }
.fpc-toolbar .fpc-view-toggle__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: var(--fpc-ink);
	box-shadow: none;
	cursor: pointer;
	transition: background-color .15s;
}
.fpc-toolbar .fpc-view-toggle__btn:not(.is-active):hover { background: rgba(255, 255, 255, .55); }
.fpc-toolbar .fpc-view-toggle__btn.is-active { background: #fff; }
.fpc-toolbar .fpc-view-toggle__btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.fpc-view-toggle__btn svg { display: block; width: 24px; height: 24px; }

/* List view: one product per row, the image beside the text (stacked again on small screens) */
.fpc-list:has(.fpc-toolbar[data-view="list"]) .fpc-products { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 576px) {
	.fpc-list:has(.fpc-toolbar[data-view="list"]) .fpc-card { flex-direction: row; align-items: stretch; }
	.fpc-list:has(.fpc-toolbar[data-view="list"]) .fpc-card > :first-child { flex: 0 0 38%; max-width: 38%; height: auto; }
	.fpc-list:has(.fpc-toolbar[data-view="list"]) .fpc-card > :first-child figure,
	.fpc-list:has(.fpc-toolbar[data-view="list"]) .fpc-card > :first-child .wp-block-image { height: 100%; }
	.fpc-list:has(.fpc-toolbar[data-view="list"]) .fpc-card > :first-child img { height: 100%; aspect-ratio: auto !important; object-fit: cover; }
	.fpc-list:has(.fpc-toolbar[data-view="list"]) .fpc-card__body { flex: 1; min-width: 0; justify-content: center; }
}

/* Cart in drawer mode: a panel that slides in from the right, opened by a Mini Cart block */
.fpc-cart--drawer { display: contents; }
.fpc-cart--drawer .fpc-panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 100001;
	width: min(420px, 100vw);
	max-width: 100vw;
	height: 100vh;
	height: 100dvh;
	border: 0;
	border-radius: 0;
	padding-bottom: max(24px, env(safe-area-inset-bottom));
	box-shadow: -12px 0 40px rgba(0, 0, 0, .2);
	animation: fpc-drawer-in .28s cubic-bezier(.2, .8, .2, 1);
}
.fpc-backdrop {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(20, 18, 16, .5);
}
.fpc-backdrop[hidden] { display: none; }
html.fpc-lock { overflow: hidden; }
@keyframes fpc-drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.fpc-cart--drawer .fpc-panel { animation: none; }
}

/* Mini Cart block: count, total and icon, for a header or any other place */
.fpc-mini {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 6px 8px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	font-weight: 600;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}
.fpc-mini:hover { opacity: .8; }
.fpc-mini:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.fpc-mini__icon { position: relative; display: inline-flex; align-items: center; }
.fpc-mini__svg { display: inline-flex; }
.fpc-mini__svg svg,
.fpc-mini__svg img { width: var(--fpc-icon-size, 22px); height: var(--fpc-icon-size, 22px); object-fit: contain; display: block; }
.fpc-mini__count {
	position: absolute;
	top: -9px;
	right: -10px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--fpc-sale);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}
.fpc-mini__count[hidden] { display: none; }
.fpc-mini.is-added { animation: fpc-bounce .7s cubic-bezier(.28, .84, .42, 1); }
.fpc-mini.is-added .fpc-mini__count { animation: fpc-pop .5s .12s ease-out; }
.fpc-mini.is-removed { animation: fpc-press .4s ease-out; }
@media (prefers-reduced-motion: reduce) {
	.fpc-mini.is-added,
	.fpc-mini.is-added .fpc-mini__count,
	.fpc-mini.is-removed { animation: none; }
}

/* Extra discount for a big enough order: progress bar and summary row */
.fpc-bundle { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #f6f5f1; }
.fpc-bundle[hidden] { display: none; }
.fpc-bundle__bar { display: flex; gap: 4px; margin-bottom: 8px; }
.fpc-bundle__bar i { flex: 1; height: 6px; border-radius: 3px; background: #dcdad3; }
.fpc-bundle__bar i.is-on { background: var(--fpc-sale); }
.fpc-bundle__text { margin: 0; font-size: 14px; line-height: 1.35; }
.fpc-bundle.is-done .fpc-bundle__text { font-weight: 700; }
.fpc-bundle.is-done .fpc-bundle__bar i.is-on { background: #1f9d55; }
.fpc-summary__row--bundle { margin-top: 10px; padding-bottom: 16px; border-bottom: 1px solid #e3e2dd; font-size: 16px; font-weight: 700; color: #1f9d55; }
.fpc-summary__row--discount:has(+ .fpc-summary__row--bundle:not([hidden])) { padding-bottom: 0; border-bottom: 0; }

/* Product image flying into the cart button */
.fpc-fly {
	position: fixed;
	z-index: 100002;
	margin: 0;
	border-radius: 12px;
	object-fit: cover;
	pointer-events: none;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

/* Product Filters: chips, and the group headings of the list */
.fpc-filters { margin: 0 0 20px; }
.fpc-filters__label { margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.fpc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fpc-chip {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 9px 16px;
	border: 1px solid #d8d6d0;
	border-radius: 999px;
	background: #fff;
	color: var(--fpc-ink, #221f1b);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}
.fpc-chip small { font-size: 12px; font-weight: 600; opacity: .6; }
.fpc-chip:hover { border-color: #221f1b; }
.fpc-chip:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.fpc-chip.is-active { background: #221f1b; border-color: #221f1b; color: #fff; }
.fpc-chip.is-active small { opacity: .75; }
.fpc-card[hidden],
.fpc-group[hidden] { display: none !important; }
.fpc-group { grid-column: 1 / -1; list-style: none; margin: 16px 0 0; padding: 0; }
.fpc-group:first-child { margin-top: 0; }
.fpc-group__eyebrow { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.fpc-group__intro { margin: 6px 0 0; max-width: 62ch; font-size: 15px; line-height: 1.45; opacity: .75; }
.fpc-group__title { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--fpc-ink, #221f1b); }

/* Quick View: button and window */
.fpc-qv-open {
	appearance: none;
	margin: 0;
	padding: 6px 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	align-self: flex-start;
}
.fpc-qv-open:hover { opacity: .75; }
.fpc-qv-open:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.fpc-qv {
	/* The card body zeroes the margin of its children; a modal needs auto margins to sit in the middle. */
	margin: auto !important;
	box-sizing: border-box;
	width: min(560px, calc(100vw - 24px));
	max-height: calc(100dvh - 24px);
	padding: 0;
	border: 0;
	border-radius: 24px;
	background: #fff;
	color: var(--fpc-ink, #221f1b);
	overflow: auto;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}
.fpc-qv:not([open]) { display: none; }
.fpc-qv::backdrop { background: rgba(20, 18, 16, .55); }
.fpc-qv * { box-sizing: border-box; }
.fpc-qv__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, .15);
	border-radius: 50%;
	background: #fff;
	color: #221f1b;
	cursor: pointer;
}
.fpc-qv__close svg { width: 16px; height: 16px; }
.fpc-qv__close:hover,
.fpc-qv__close:focus-visible { background: #221f1b; color: #fff; }
.fpc-qv__image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #f2f1ed; }
/* Trailer: a big play button on the cover and a "Watch the trailer first" row; the player replaces the cover on tap */
.fpc-qv__media { position: relative; overflow: hidden; background: #000; }
.fpc-qv__play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: rgb(0 0 0 / .12); cursor: pointer; }
.fpc-qv__big { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--fpc-accent, #ff5d19); color: #000; }
.fpc-qv__big svg { width: 36px; height: 36px; fill: currentColor; }
.fpc-qv__trl { display: flex; align-items: center; gap: 12px; margin: 4px 0 2px; padding: 12px 14px; border: 0; border-radius: 10px; background: rgb(255 93 25 / .08); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.fpc-qv__trl[hidden] { display: none; }
.fpc-qv__ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--fpc-accent, #ff5d19); color: #000; }
.fpc-qv__ico svg { width: 18px; height: 18px; fill: currentColor; }
.fpc-qv__tt { display: grid; gap: 3px; }
.fpc-qv__tt small { font-size: 13px; opacity: .7; }
.fpc-qv__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; opacity: 0; transition: opacity .3s ease; }
.fpc-qv__media.is-ready iframe { opacity: 1; }
.fpc-qv__media.is-playing .fpc-qv__play { display: none; }
.fpc-qv__wait { position: absolute; inset: 0; display: grid; place-items: center; }
.fpc-qv__media.is-ready .fpc-qv__wait { display: none; }
.fpc-qv__wait i { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; border-right-color: transparent; animation: fpc-spin .8s linear infinite; }
@keyframes fpc-spin { to { rotate: 360deg; } }
.fpc-qv__body { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.fpc-qv__body > * { margin: 0; }
.fpc-qv__title { font-size: 26px; font-weight: 800; line-height: 1.15; }
.fpc-qv__stats { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; list-style: none; font-size: 14px; }
.fpc-qv__stats b { font-size: 18px; }
.fpc-qv__text { font-size: 16px; line-height: 1.5; }
.fpc-qv__k { margin-top: 8px; font-size: 15px; font-weight: 800; }
.fpc-qv__mods { margin: 0; padding-left: 22px; font-size: 15px; line-height: 1.5; }
.fpc-qv__mods li { margin: 2px 0; }
.fpc-qv__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 12px; padding-top: 16px; border-top: 1px solid #e3e2dd; }
.fpc-qv__buy .fpc-price { margin: 0; }
.fpc-qv__note { font-size: 13px; opacity: .65; }
.fpc-qv__buy .fpc-add { margin-left: auto; min-width: 160px; }
@media (max-width: 480px) {
	.fpc-qv__body { padding: 18px; }
	.fpc-qv__buy .fpc-add { width: 100%; margin-left: 0; }
}

/* Cart suggestion: "Complete your path" */
.fpc-sugg { margin-top: 14px; padding: 12px 14px; border: 1px solid #e3e2dd; border-radius: 14px; }
.fpc-sugg[hidden] { display: none; }
.fpc-sugg__k { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--fpc-sale); }
.fpc-sugg__row { display: flex; align-items: center; gap: 12px; }
.fpc-sugg__img { width: 64px; height: 36px; border-radius: 6px; object-fit: cover; background: #f2f1ed; flex: none; }
.fpc-sugg__img.is-fallback { object-fit: contain; padding: 4px; }
.fpc-sugg__t { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: 13px; line-height: 1.3; }
.fpc-sugg__t strong { font-size: 14px; }
.fpc-sugg__add {
	appearance: none;
	flex: none;
	padding: 8px 14px;
	border: 1px solid #221f1b;
	border-radius: 999px;
	background: #fff;
	color: #221f1b;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
.fpc-sugg__add:hover,
.fpc-sugg__add:focus-visible { background: #221f1b; color: #fff; }

/* Buy N, get 1 free: the free product's price ("Free" with the struck public price), the waitlist and free rows, the suggestion. */
.fpc-item__free { font-size: 16px; font-weight: 800; line-height: 1.25; color: var(--fpc-sale); }
.fpc-summary__row--waitlist { font-weight: 700; }
.fpc-summary__row--free { margin-top: 0; padding-bottom: 0; border-bottom: 0; }
.fpc-sugg__free { color: var(--fpc-sale); }
.fpc-sugg__was { opacity: .6; }
.fpc-add.is-free .fpc-add__added-label { color: var(--fpc-sale); }
