/* Optional extras (APF image swatches) styled to the GBB product-page mock-up. */
.gbb-extras-intro { margin: 4px 0 14px; font-size: 17px; line-height: 1.5; color: #4B3A2F; }
.wapf .wapf-field-group { margin: 0; }
.wapf .wapf-field-container { margin-bottom: 18px; }
.wapf .wapf-field-label label, .wapf .wapf-field-label span {
	font-family: "EB Garamond", Georgia, serif; font-size: 20px; font-weight: 400; color: #4B3A2F; line-height: 1.25;
}
.wapf .wapf-field-label { margin-bottom: 10px; }
.wapf .wapf-image-swatch-wrapper { gap: 10px; }
.wapf .wapf-swatch--image .apf-pick-box, .wapf .wapf-swatch--image img {
	background: #fff; border-radius: 4px;
}
.wapf .wapf-swatch--image .apf-pick-box {
	border: 1px solid #E4DACB; padding: 6px; transition: border-color .2s, box-shadow .2s;
}
.wapf .wapf-swatch--image img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.wapf .wapf-swatch--image:hover .apf-pick-box { border-color: #A8B89A; }
.wapf .wapf-swatch--image.wapf-checked .apf-pick-box,
.wapf .wapf-swatch--image input:checked + .apf-pick-box { border-color: #43533B; box-shadow: 0 0 0 2px #43533B; }
.wapf .wapf-swatch-label { font-size: 13.5px; line-height: 1.3; color: #4B3A2F; margin-top: 6px; text-align: center; }
.wapf .wapf-pricing-hint { color: #7A6A5D; font-size: 13px; }
.wapf .wapf-disabled { opacity: .45; }
/* Running totals: Gift / Extras / Total */
.wapf-product-totals { margin: 6px 0 16px; border-top: 1px solid #E4DACB; padding-top: 12px; }
.wapf-product-totals .wapf--inner > div { display: flex; justify-content: space-between; font-size: 17px; font-weight: 400; color: #4B3A2F; padding: 2px 0; }
.wapf-product-totals .wapf--inner > div > * { font-size: inherit !important; font-weight: inherit !important; font-family: inherit; }
.wapf-product-totals .wapf--inner > div:last-child { font-weight: 600; font-size: 20px; border-top: 1px solid #E4DACB; margin-top: 6px; padding-top: 8px; }
/* Clearer selected state + brand colours for totals */
.wapf .wapf-swatch--image.wapf-checked .apf-pick-box,
.wapf .wapf-swatch--image input:checked + .apf-pick-box { border: 2px solid #43533B; padding: 5px; background: #F3F6EF; box-shadow: none; }
.wapf .wapf-swatch--image.wapf-checked .apf-pick-box { position: relative; }
.wapf .wapf-swatch--image.wapf-checked .apf-pick-box::after {
	content: "✓"; position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
	background: #43533B; color: #FAF8F0; font-size: 13px; line-height: 22px; text-align: center;
}
.wapf-product-totals .wapf--inner span, .wapf-product-totals .price, .wapf-product-totals .amount { color: #4B3A2F !important; }
/* Mock-up: each row of extras spans the full width of the purchase column (4 equal tiles). */
.wapf .wapf-image-swatch-wrapper.wapf-swatch-wrapper {
	display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 12px; width: 100%;
}
.wapf .wapf-image-swatch-wrapper .wapf-swatch--image { width: auto !important; max-width: none !important; margin: 0 !important; }
.wapf .wapf-image-swatch-wrapper .wapf-swatch--image label, .wapf .wapf-image-swatch-wrapper .apf-pick-box { width: 100%; display: block; }
@media (max-width: 767px) { .wapf .wapf-image-swatch-wrapper.wapf-swatch-wrapper { gap: 8px; } }
/* Remove APF's 5px field gutter so rows align with the column edges. */
.wapf .wapf-wrapper, .wapf .wapf-field-group { margin-left: 0 !important; margin-right: 0 !important; width: 100% !important; }
.wapf .wapf-field-container { padding-left: 0 !important; padding-right: 0 !important; }
