:root {
	--jcb-gift-yellow: #f9b104;
	--jcb-gift-ink: #171717;
	--jcb-gift-line: #d9d9d9;
}

@font-face {
 font-family: "JCB Gift Rough";
 src: url("zuume-rough-bold.woff2") format("woff2");
 font-weight: 700;
 font-style: normal;
 font-display: swap;
}

.jcb-free-gift-offer {
 position: relative;
 isolation: isolate;
 container: jcb-gift-offer / inline-size;
 display: block;
 box-sizing: border-box;
 flex: 1 0 100%;
 width: 100%;
 min-width: 0;
 margin: 8px 0 12px;
 padding: 0;
 overflow: hidden;
 border: 1px solid #000;
 border-radius: 8px;
 background: #fff;
 color: #000;
 box-shadow: none;
 font-family: "JCB Euro Roman", Arial, sans-serif;
}

/* Original Figma paint, at its natural size and rotation; clipped by the card. */
.jcb-free-gift-offer::before {
 content: "";
 position: absolute;
 z-index: -1;
 pointer-events: none;
 width: 631.345px;
 height: 257.911px;
 left: 139.43px;
 top: -110.086px;
 transform: translate(-50%, -50%) rotate(-74.12deg);
 background: url("gift-offer-texture.svg") center no-repeat;
}

.jcb-free-gift-offer__layout {
 display: grid;
 box-sizing: border-box;
 grid-template-columns: 88px minmax(0, 1fr);
 gap: 16px;
 align-items: center;
 min-height: 120px;
 padding: 16px;
}

.jcb-free-gift-offer__visual {
 display: grid;
 place-items: center;
 width: 88px;
 height: 88px;
 padding: 0;
 background: transparent;
}

.jcb-free-gift-offer__visual img {
 display: block;
 width: 69px;
 height: 69px;
 max-width: 100%;
 object-fit: contain;
 mix-blend-mode: multiply;
}

.jcb-free-gift-offer__content {
 display: grid;
 min-width: 0;
 gap: 4px;
}

.jcb-free-gift-offer__eyebrow {
 display: block;
 margin: 0;
 color: #000;
 font-family: "JCB Gift Rough", Impact, sans-serif;
 font-size: 36px;
 font-weight: 700;
 line-height: 1.1;
 letter-spacing: 0;
 text-transform: uppercase;
}

.jcb-free-gift-offer__title {
 display: block;
 color: #000 !important;
 font-family: "JCB Euro Bold", Arial, sans-serif;
 font-size: 14px;
 font-weight: 700;
 line-height: 1.2;
 text-transform: none;
 text-decoration: underline !important;
 overflow-wrap: anywhere;
}

.jcb-free-gift-offer__title:hover { text-decoration-thickness: 2px; }
.jcb-free-gift-offer__title:focus-visible { outline: 2px solid #000; outline-offset: 3px; }

.jcb-free-gift-offer__copy {
 display: block;
 margin: 0;
 color: #000;
 font-family: "JCB Euro Roman", Arial, sans-serif;
 font-size: 14px;
 line-height: 1.2;
 overflow-wrap: anywhere;
}

@container jcb-gift-offer (max-width: 360px) {
 .jcb-free-gift-offer__layout { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px; }
 .jcb-free-gift-offer__visual { width: 64px; height: 76px; }
 .jcb-free-gift-offer__visual img { width: 61px; height: 61px; }
 .jcb-free-gift-offer__eyebrow { font-size: 30px; }
}

.jcb-free-gift-chooser {
	box-sizing: border-box;
	flex: 1 0 100%;
	width: 100%;
	min-width: 0;
	margin: 8px 0 12px;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	font-family: "Manrope", sans-serif;
}

.woocommerce-variation-add-to-cart:has(> .jcb-free-gift-chooser),
.woocommerce-variation-add-to-cart:has(> .jcb-free-gift-offer),
form.cart:has(> .jcb-free-gift-chooser),
form.cart:has(> .jcb-free-gift-offer) {
	box-sizing: border-box;
	flex-wrap: wrap !important;
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

.woocommerce-variation-add-to-cart:has(> .jcb-free-gift-chooser) > .quantity,
.woocommerce-variation-add-to-cart:has(> .jcb-free-gift-offer) > .quantity,
form.cart:has(> .jcb-free-gift-chooser) > .quantity,
form.cart:has(> .jcb-free-gift-offer) > .quantity {
	flex: 0 0 110px;
	width: 110px;
	max-width: 110px;
}

.woocommerce-variation-add-to-cart:has(> .jcb-free-gift-chooser) > .single_add_to_cart_button,
.woocommerce-variation-add-to-cart:has(> .jcb-free-gift-offer) > .single_add_to_cart_button,
form.cart:has(> .jcb-free-gift-chooser) > .single_add_to_cart_button,
form.cart:has(> .jcb-free-gift-offer) > .single_add_to_cart_button {
	flex: 1 1 0;
	width: auto !important;
	height: 40px;
	margin-left: 8px;
}

.jcb-free-gift-chooser__heading {
	float: none;
	width: 100%;
	margin: 0 0 7px;
	padding: 0;
	color: var(--jcb-gift-ink);
	font-family: "JCB Euro Bold", "Arial Narrow", sans-serif;
	font-size: 22px;
	font-weight: 400;
	line-height: 1.2;
}

.jcb-free-gift-chooser__intro {
	display: none;
}

.jcb-free-gift-chooser__options {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

.jcb-free-gift-choice {
	position: relative;
	display: grid;
	box-sizing: border-box;
	grid-template-columns: 18px 48px minmax(0, 1fr);
	gap: 8px;
	align-items: center;
	min-height: 76px;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	margin: 0;
	padding: 8px;
	border: 1px solid rgba(0, 0, 0, 0.32);
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.9);
	transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.jcb-free-gift-choice__selector {
	display: contents;
	cursor: pointer;
}

.jcb-free-gift-choice:hover {
	border-color: var(--jcb-gift-ink);
}

.jcb-free-gift-choice:has(input:checked) {
	border-color: var(--jcb-gift-ink);
	background: var(--jcb-gift-ink);
	box-shadow: none;
}

.jcb-free-gift-choice:has(input:focus-visible) {
	outline: 2px solid var(--jcb-gift-ink);
	outline-offset: 2px;
}

.jcb-free-gift-choice input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.jcb-free-gift-choice__control {
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	border: 1px solid #666;
	border-radius: 50%;
	background: #fff;
}

.jcb-free-gift-choice:has(input:checked) .jcb-free-gift-choice__control {
	border: 5px solid var(--jcb-gift-yellow);
	background: var(--jcb-gift-ink);
}

.jcb-free-gift-choice__visual {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 3px;
	background: #fff;
}

.jcb-free-gift-choice__visual img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.jcb-free-gift-choice__content {
	display: grid;
	gap: 2px;
	min-width: 0;
	padding-right: 68px;
}

.jcb-free-gift-choice__content strong {
	color: var(--jcb-gift-ink) !important;
	font-family: "JCB Euro Roman", "Arial Narrow", sans-serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.15;
	text-transform: uppercase;
}

.jcb-free-gift-choice__content small {
	color: #616161;
	font-size: 14px;
	line-height: 1.3;
}

.jcb-free-gift-choice:has(input:checked) .jcb-free-gift-choice__content strong {
	color: #fff !important;
}

.jcb-free-gift-choice:has(input:checked) .jcb-free-gift-choice__content small {
	color: #d8d8d8 !important;
}

.jcb-free-gift-choice__price {
	position: absolute;
	top: 4px;
	right: 4px;
	padding: 2px 4px;
	color: var(--jcb-gift-ink);
	background: var(--jcb-gift-yellow);
	font-family: "JCB Euro Roman", "Arial Narrow", sans-serif;
	font-size: 12px;
	line-height: 1;
}

.jcb-free-gift-choice__link {
	position: absolute;
	right: 6px;
	bottom: 6px;
	color: #171717 !important;
	opacity: 1 !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	text-decoration: underline;
	text-transform: uppercase;
}

.jcb-free-gift-choice:has(input:checked) .jcb-free-gift-choice__link {
	color: var(--jcb-gift-yellow) !important;
}

.jcb-free-gift-choice__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.jcb-free-gift-choice--unavailable {
	border-color: #b9b9b9;
	background: #f1f1f1;
	opacity: 0.72;
}

.jcb-free-gift-choice--unavailable .jcb-free-gift-choice__selector {
	cursor: not-allowed;
}

.jcb-free-gift-choice--unavailable .jcb-free-gift-choice__price {
	color: #fff;
	background: #5d5d5d;
	font-size: 12px;
}

.jcb-free-gift-choice--unavailable .jcb-free-gift-choice__content small {
	font-size: 15px;
}

.jcb-free-gift-unavailable {
	display: flex;
	box-sizing: border-box;
	flex: 1 0 100%;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin: 8px 0 12px;
	padding: 9px 10px;
	border: 1px solid #b9b9b9;
	border-left: 4px solid #5d5d5d;
	border-radius: 4px;
	color: #3d3d3d;
	background: #f5f5f5;
	font-family: "Manrope", sans-serif;
}

.jcb-free-gift-unavailable strong,
.jcb-free-gift-unavailable small {
	display: block;
}

.jcb-free-gift-unavailable strong {
	font-family: "JCB Euro Roman", "Arial Narrow", sans-serif;
	font-size: 13px;
	font-weight: 400;
	text-transform: uppercase;
}

.jcb-free-gift-unavailable small {
	margin-top: 2px;
	font-size: 9px;
}

.jcb-free-gift-unavailable a {
	flex: 0 0 auto;
	color: var(--jcb-gift-ink);
	font-size: 9px;
	font-weight: 700;
	text-decoration: underline;
	text-transform: uppercase;
}

.jcb-badge-free-gift,
.jcb-free-gift-loop-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-width: 88px;
	height: 27px;
	padding: 5px 9px;
	border-radius: 2px;
	color: #111 !important;
	background: var(--jcb-gift-yellow) !important;
	font-family: "JCB Euro Roman", "Arial Narrow", sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
}

.jcb-badge-free-gift > span:first-child,
.jcb-free-gift-loop-badge > span:first-child {
	font-family: "Manrope", sans-serif;
	font-size: 16px;
	font-weight: 800;
}

.woocommerce ul.products li.product .jcb-badge-free-gift {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 4;
}

/* All existing card renderers share the same eligibility class. */
.e-loop-item.jcb-has-free-gift,
.woocommerce ul.products li.product.jcb-has-free-gift,
.jcb-featured-prod-item.jcb-has-free-gift { position:relative; }
.e-loop-item.jcb-has-free-gift::before,
.woocommerce ul.products li.product.jcb-has-free-gift::before,
.jcb-featured-prod-item.jcb-has-free-gift::before {
 position:absolute; top:var(--jcb-gift-top,10px); right:var(--jcb-gift-right,10px); bottom:var(--jcb-gift-bottom,auto); left:var(--jcb-gift-left,auto); z-index:12; display:var(--jcb-gift-overlay-display,none);
 width:clamp(55px,32%,var(--jcb-gift-overlay-width,125px)); aspect-ratio:var(--jcb-gift-card-aspect,351/389); height:auto; padding:0;
 background-image:var(--jcb-gift-card-image,var(--jcb-gift-badge-image,none));
 background-position:var(--jcb-gift-card-position,center);background-size:var(--jcb-gift-card-size,contain);background-repeat:no-repeat;background-blend-mode:var(--jcb-gift-card-blend,normal);
 border:0; border-radius:0; box-shadow:none; pointer-events:none;
 content:'';
}
.jcb-has-free-gift .jcb-campaign-badge{max-width:42%}
.jcb-gallery-gift.jcb-gallery-gift-multiple{aspect-ratio:351/389;background-image:var(--jcb-gift-badge-image);background-size:contain}
.jcb-gallery-gift.jcb-gallery-gift-multiple>span,.jcb-gallery-gift.jcb-gallery-gift-multiple img{display:none}
/* Artwork is decorative; its editable label remains in the document for screen readers. */
.jcb-gift-artwork-active :is(.e-loop-item,.woocommerce ul.products li.product,.jcb-featured-prod-item) .jcb-badge-free-gift { position:absolute!important; width:1px!important; min-width:0!important; height:1px!important; overflow:hidden!important; clip-path:inset(50%); white-space:nowrap; padding:0!important; border:0!important; }
.jcb-gift-overlays-disabled .jcb-badge-free-gift { display:none!important; }

.jcb-free-gift-cart-badge {
	display: inline-flex;
	align-items: center;
	margin: 0 8px 4px 0;
	padding: 4px 7px;
	color: #111;
	background: var(--jcb-gift-yellow);
	font-family: "JCB Euro Roman", "Arial Narrow", sans-serif;
	font-size: 12px;
	line-height: 1;
	vertical-align: middle;
}

.jcb-free-gift-cart-line {
	background: #fffdf3;
}

.jcb-free-gift-cart-line .product-price,
.jcb-free-gift-cart-line .product-subtotal {
	font-weight: 700;
}

.wc-block-components-product-details__free-gift-included,
.wc-block-components-product-details__promotion,
.wc-block-components-product-details__free-gift {
	margin-top: 8px !important;
	padding: 7px 9px !important;
	border-left: 3px solid var(--jcb-gift-yellow);
	background: #fff9df;
}

/* Keep the gift marker available to the block cart without showing metadata copy. */
.wc-block-components-product-details__free-gift {
	display: none !important;
}

.wc-block-components-product-details__free-gift-included .wc-block-components-product-details__name,
.wc-block-components-product-details__promotion .wc-block-components-product-details__name,
.wc-block-components-product-details__free-gift .wc-block-components-product-details__name {
	font-weight: 700 !important;
}

.wc-block-cart-items__row:has(.wc-block-components-product-details__free-gift) > td {
	background: #fffdf3;
}

.wc-block-cart-items__row:has(.wc-block-components-product-details__free-gift) .wc-block-components-product-metadata__description,
.wc-block-cart-items__row:has(.wc-block-components-product-details__free-gift) .wc-block-components-quantity-selector,
.wc-block-cart-items__row:has(.wc-block-components-product-details__free-gift) .wc-block-cart-item__remove-link,
.wc-block-cart-items__row:has(.wc-block-components-product-details__free-gift) .wc-block-components-sale-badge {
	display: none !important;
}

.wc-block-cart-items__row:has(.wc-block-components-product-details__free-gift) .wc-block-components-product-name::before {
	display: inline-flex;
	align-items: center;
	margin: 0 8px 4px 0;
	padding: 4px 7px;
	color: #111;
	background: var(--jcb-gift-yellow);
	content: "FREE GIFT";
	font-family: "JCB Euro Roman", "Arial Narrow", sans-serif;
	font-size: 12px;
	line-height: 1;
	vertical-align: middle;
}

@media (max-width: 767px) {
	.jcb-free-gift-chooser {
		padding: 0;
	}

	.jcb-free-gift-chooser__options {
		grid-template-columns: 1fr;
	}

	.jcb-free-gift-choice {
		min-height: 76px;
	}

	.woocommerce-variation-add-to-cart:has(> .jcb-free-gift-chooser) > .quantity,
	.woocommerce-variation-add-to-cart:has(> .jcb-free-gift-offer) > .quantity,
	form.cart:has(> .jcb-free-gift-chooser) > .quantity,
	form.cart:has(> .jcb-free-gift-offer) > .quantity {
		flex-basis: 92px;
		width: 92px;
		max-width: 92px;
	}
}
