.bgs-taste,.bgs-sustainability{color:#281f16}
.bgs-taste h3,.bgs-sustainability h3{font-size:13px;font-weight:700;letter-spacing:.01em;text-transform:uppercase;margin:0 0 16px}
.bgs-taste__notes,.bgs-badges{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}
.bgs-taste__notes span,.bgs-badge{border:1px solid #6d6358;border-radius:999px;padding:6px 12px;font-size:12px;font-weight:700;line-height:1.2;text-transform:uppercase}
/* Supplied Smak icons sit beside the existing labels and wrap with the chips. */
.bgs-taste__notes>.bgs-taste__note{display:inline-flex;align-items:center;justify-content:center;gap:9px;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
.bgs-taste__notes>.bgs-taste__note>.bgs-taste__icon{display:block;flex:0 0 36px;width:36px;height:36px;object-fit:contain}
/* Larger flavor icons and roomier labels; flex-wrap remains available on narrow cards. */
body .bgs-product-template .bgs-taste__notes>span{gap:9px!important;min-height:52px;padding:7px 16px!important}
body .bgs-product-template .bgs-taste__notes>span>img{flex:0 0 36px;width:36px!important;height:36px!important;object-fit:contain}
.bgs-badge--accent{background:#f6c8ba;border-color:#9d756b}
.bgs-taste__row{display:grid;grid-template-columns:55px minmax(0,1fr) 48px;align-items:center;gap:12px;margin:0 0 26px;font-size:14px}
.bgs-taste__row:last-child{margin-bottom:0}
.bgs-taste__row+.bgs-taste__tea-type{margin-top:22px}
.bgs-taste__tea-text{margin:0;font-size:14px;line-height:1.5;white-space:pre-line;overflow-wrap:anywhere}
.bgs-taste__row>span:last-child{text-align:right}
.bgs-taste__track{display:block;height:5px;background:var(--e-global-color-bgswhite, #fff);overflow:hidden}
.bgs-taste__fill{display:block;width:var(--bgs-level);height:100%;background:#2d2118;transform:scaleX(0);transform-origin:left;transition:transform 900ms cubic-bezier(.2,.7,.2,1)}
.bgs-taste.is-visible .bgs-taste__fill{transform:scaleX(1)}
.bgs-product-metrics{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px;font-weight:700;text-transform:uppercase}
.bgs-product-weight{white-space:nowrap;font-size:20px}
.bgs-product-facts,.bgs-sustainability__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0}
.bgs-data-row{min-width:0}
.bgs-data-row dt{font-size:12px;font-weight:700;text-transform:uppercase;margin-bottom:12px}
.bgs-data-row dd{font-size:17px;margin:0;overflow-wrap:anywhere}
.bgs-product-details details{border-top:1px solid #7b7064}
.bgs-product-details details:last-child{border-bottom:1px solid #7b7064}
.bgs-product-details summary{position:relative;cursor:pointer;list-style:none;padding:16px 28px 16px 0;font-size:16px}
.bgs-product-details summary::-webkit-details-marker{display:none}
.bgs-product-details summary::after{content:'+';position:absolute;right:3px;top:12px;font-size:24px;line-height:1}
.bgs-product-details details[open] summary::after{content:'−'}
.bgs-product-details__body{padding:0 0 22px;font-size:15px;line-height:1.5}
.bgs-product-details__body strong{display:block;margin:16px 0 4px;font-size:12px;text-transform:uppercase}
.bgs-product-details__body p{margin:0 0 10px;white-space:normal}
.bgs-product-resource-links{display:flex;flex-wrap:wrap;gap:16px;margin-top:16px;font-size:13px}.bgs-product-resource-links a{color:#2d2118;text-underline-offset:3px}
.bgs-sustainability__grid{margin-bottom:22px}
.bgs-sustainability>p{font-size:14px;line-height:1.5;margin:12px 0}
.bgs-sustainability__files{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:24px}
.bgs-sustainability__files a{border:1px solid #7b7064;border-radius:10px;min-height:60px;display:grid;place-items:center;text-align:center;color:inherit;text-decoration:none;font-size:12px;font-weight:700}
@media(max-width:767px){.bgs-taste__row{grid-template-columns:44px minmax(0,1fr) 42px;gap:8px;font-size:12px}.bgs-product-facts,.bgs-sustainability__grid{grid-template-columns:1fr 1fr}.bgs-sustainability__files{grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:reduce){.bgs-taste__fill{transform:scaleX(1);transition:none}}

/* The gallery's separate zoom image must not acquire the featured image's white padding. */
body .bgs-product-template .bgs-product-gallery .woocommerce-product-gallery img.zoomImg{display:none!important}

/* Product facts belong to the taste card and collapse to only the available values. */
body .bgs-product-template .bgs-taste__metrics{display:grid;grid-template-columns:repeat(var(--bgs-metric-count),minmax(0,1fr));align-items:center;gap:8px;min-height:64px;margin:-25px -25px 27px;padding:15px 18px;border:1px solid #6e6251;border-radius:999px;background:#e0dccb;color:#231b13}
body .bgs-product-template .bgs-taste__metric{display:flex;align-items:center;justify-content:center;gap:.3em;min-width:0;text-align:center;font-size:14px;font-weight:700;line-height:1.25;text-transform:uppercase;white-space:nowrap}
body .bgs-product-template .bgs-taste__metric strong{font:inherit}
body .bgs-product-template .bgs-product-taste-card:has(.bgs-taste__metrics,.bgs-native-taste-metrics){border-radius:32px!important}

/* Keep the chevron aligned to the summary text at every font size. */
body .bgs-product-template .bgs-product-details summary::after{top:50%!important;right:3px!important;margin-right:0!important;transform:translateY(-50%) rotate(45deg)!important}
body .bgs-product-template .bgs-product-details details[open] summary::after{transform:translateY(-50%) rotate(225deg)!important}

@media(max-width:767px){body .bgs-product-template .bgs-product-taste-card:has(.bgs-taste__metrics,.bgs-native-taste-metrics){border-radius:26px!important}body .bgs-product-template .bgs-taste__metrics{gap:4px;min-height:52px;margin:-21px -17px 22px;padding:12px 8px}body .bgs-product-template .bgs-taste__metric{font-size:clamp(9px,2.7vw,12px)}}

/* Keep native PhotoSwipe above the sticky header and retain its own controls. */
body .pswp{z-index:10000}
body .pswp .pswp__button{padding:0;border:0;border-radius:0;box-shadow:none;background-color:transparent}
body .pswp .pswp__button:focus-visible{outline:2px solid var(--e-global-color-bgswhite, #fff);outline-offset:2px}

/* Hide empty Elementor shells, while retaining any populated product data. */
body.single-product:not(.elementor-editor-active) .bgs-product-template .bgs-product-taste-card:not(:has(.bgs-taste,.bgs-native-taste)){display:none!important}

/* Coffee form and bean type use the existing product-card pill vocabulary. */
body .bgs-product-template .bgs-product-choice-row{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:10px 8px;width:100%;margin:19px 0 0}
body .bgs-product-template .bgs-product-choice-group,
body .bgs-product-template .bgs-product-bean-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
body .bgs-product-template .bgs-product-bean-row{margin:12px 0 0}
body .bgs-product-template .bgs-product-choice-chip{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:7px 14px;border:1px solid #654e46;border-radius:999px;background:transparent;color:#231b13;font-family:inherit;font-size:12px;font-weight:600;line-height:1.2;text-transform:uppercase;white-space:nowrap}
body .bgs-product-template .bgs-product-choice-chip svg{flex:none;width:22px;height:22px}
body .bgs-product-template .bgs-product-choice-chip svg.bgs-coffee-form-icon{width:40px;height:40px}
body .bgs-product-template .bgs-product-choice-chip svg.bgs-coffee-form-icon--beans{width:36px;height:36px}
body .bgs-product-template .bgs-product-choice-row .bgs-proto-brew{justify-content:flex-start;margin:0!important}
@media(max-width:767px){body .bgs-product-template .bgs-product-choice-row{align-items:flex-start;gap:10px;margin-top:17px}body .bgs-product-template .bgs-product-choice-row .bgs-proto-brew{justify-content:flex-start}body .bgs-product-template .bgs-product-choice-chip{min-height:34px;padding:6px 12px;font-size:11px}}

/* Keep the final section margin inside the product background. */
body.single-product .bgs-product-template.elementor-location-single{display:flow-root}

/* Keep only the custom stock status above the purchase area. */
body.single-product .bgs-product-template .bgs-purchase .stock{display:none!important}
body.single-product .bgs-product-template .bgs-purchase:has(>.elementor-add-to-cart>.stock:only-child){display:none}

/* Supplied Bryggmetod icons retain the existing wrapping product-card pills. */
body .bgs-product-template .bgs-product-choice-row .bgs-proto-brew{min-width:0;max-width:100%}
body .bgs-product-template .bgs-proto-brew-chip{max-width:100%;overflow-wrap:anywhere}
body .bgs-product-template .bgs-proto-brew-chip>img{display:block;flex:0 0 22px;width:22px!important;height:22px!important;object-fit:contain}
