.bgf-entry{margin:20px 0}.bgf-entry-price{font-size:1.6rem;font-weight:700;color:#153c5b}.bgf-launch,.bgf-buy{background:#143e60!important;color:#fff!important;border:0!important;border-radius:4px!important;padding:15px 28px!important;cursor:pointer}.bgf-open{overflow:hidden!important}.bgf-modal[hidden]{display:none!important}.bgf-modal{position:fixed;inset:0;z-index:999999;background:#fff;color:#173b57;overflow-y:auto}.bgf-shell{min-height:100%;display:flex;flex-direction:column}.bgf-head{padding:22px clamp(18px,5vw,75px);border-bottom:1px solid #e5e8ed;display:flex;justify-content:space-between;align-items:center;gap:15px}.bgf-head strong{font-size:20px;letter-spacing:.1em}.bgf-head span{font-size:12px;font-weight:400;letter-spacing:.04em}.bgf-close{border:0;background:transparent;font-size:38px;line-height:1;color:#173b57;cursor:pointer}.bgf-body{width:min(790px,calc(100% - 36px));margin:clamp(25px,6vh,70px) auto;padding-bottom:50px;text-align:center}.bgf-progress{font-size:13px;text-transform:uppercase;letter-spacing:.1em;color:#6b7b89;margin-bottom:26px}.bgf-track{height:5px;background:#e9eef1;border-radius:8px;margin-top:12px;overflow:hidden}.bgf-track div{height:100%;background:#143e60;transition:width .2s}.bgf-body h2{font-size:clamp(25px,4vw,38px);color:#143e60;line-height:1.2;margin:0 0 14px}.bgf-sub{color:#657480;margin-bottom:28px}.bgf-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.bgf-option{border:1px solid #d9e1e7;background:#fff;border-radius:9px;min-height:100px;padding:18px;color:#143e60;text-align:center;cursor:pointer;transition:background .15s,border-color .15s}.bgf-option:hover,.bgf-option:focus{border-color:#143e60;background:#f3f7fa}.bgf-option strong,.bgf-option small{display:block}.bgf-option small{font-size:12px;color:#677682;margin-top:7px}.bgf-actions{margin-top:25px;display:flex;gap:18px;justify-content:center}.bgf-back,.bgf-restart{background:transparent;border:0;color:#143e60;text-decoration:underline;cursor:pointer}.bgf-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:25px 0}.bgf-products article{border:1px solid #e0e7eb;border-radius:9px;padding:15px;display:flex;flex-direction:column;align-items:center;gap:10px}.bgf-products img{width:100%;height:160px;object-fit:contain}.bgf-products strong{font-size:14px}.bgf-products small{font-size:11px;color:#77848b}.bgf-gift{padding:15px;background:#f3f7f8;border-radius:6px;margin-bottom:18px}.bgf-price{font-size:32px;font-weight:700;margin:15px 0}.bgf-buy{width:min(420px,100%);font-size:17px}.bgf-error{color:#a42323;margin-top:16px}@media(max-width:580px){.bgf-head{padding:16px}.bgf-head span{display:none}.bgf-options{grid-template-columns:1fr}.bgf-option{min-height:72px}.bgf-products{gap:7px}.bgf-products article{padding:7px}.bgf-products img{height:90px}.bgf-products strong{font-size:11px}.bgf-body{margin-top:25px}}

/* v0.3.1: WooCommerce single-product layout and responsive safeguards */
body.bgf-product-page,body.bgf-product-page #page,body.bgf-product-page main{max-width:100%;overflow-x:clip}
body.bgf-product-page .product,body.bgf-product-page .product .summary,body.bgf-product-page .product .woocommerce-product-gallery{min-width:0;box-sizing:border-box}
body.bgf-product-page .product .summary,body.bgf-product-page .product .summary *,body.bgf-product-page .woocommerce-tabs{overflow-wrap:anywhere;word-break:normal}
body.bgf-product-page .product .summary{max-width:100%;}
body.bgf-product-page .product .summary .product_title{line-height:1.2;margin-bottom:16px}
body.bgf-product-page .bgf-entry{max-width:100%;margin:22px 0 30px;padding:22px;border:1px solid #e3e8ed;border-radius:12px;background:#f8fafb;box-sizing:border-box}
body.bgf-product-page .bgf-entry p{margin:0 0 15px;line-height:1.6}
body.bgf-product-page .bgf-entry-price{font-size:clamp(26px,3vw,36px);line-height:1.2;margin:0 0 18px!important}
body.bgf-product-page .bgf-launch{display:block;width:100%;max-width:480px;white-space:normal;line-height:1.4;text-align:center;font-size:17px}
body.bgf-product-page .woocommerce-product-gallery img{max-width:100%;height:auto}
.bgf-modal,.bgf-modal *{box-sizing:border-box}
.bgf-modal{width:100vw;max-width:100vw;max-height:100dvh;overscroll-behavior:contain}
.bgf-body{max-width:100%;overflow-wrap:anywhere}
.bgf-products{grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr))}
.bgf-products article{min-width:0;overflow-wrap:anywhere}
@media(max-width:767px){
 body.bgf-product-page .product .woocommerce-product-gallery,body.bgf-product-page .product .summary{float:none!important;clear:both;width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
 body.bgf-product-page .product .summary{padding:0 14px!important}
 body.bgf-product-page .bgf-entry{padding:18px 15px;margin:18px 0 26px}
 body.bgf-product-page .bgf-launch{max-width:none;min-height:52px}
 .bgf-head{position:sticky;top:0;background:#fff;z-index:2;padding:12px 16px}
 .bgf-head strong{font-size:16px;letter-spacing:.04em}
 .bgf-body{width:calc(100% - 28px);margin:20px auto;padding-bottom:calc(28px + env(safe-area-inset-bottom))}
 .bgf-body h2{font-size:clamp(23px,7vw,30px)}
 .bgf-options{grid-template-columns:1fr;gap:10px}
 .bgf-option{min-height:58px;padding:14px}
 .bgf-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .bgf-products article{padding:9px}
 .bgf-products img{height:105px}
 .bgf-products strong{font-size:12px}
 .bgf-actions{flex-wrap:wrap}
 .bgf-buy{width:100%;min-height:52px}
}
@media(max-width:360px){.bgf-products{grid-template-columns:1fr}.bgf-products img{height:125px}}

/* v0.3.3: integrate the gift configurator into the native product summary */
body.bgf-product-page .product .summary .bgf-entry{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;margin:22px 0 28px!important;max-width:100%!important}
body.bgf-product-page .product .summary .bgf-entry-price{font-family:inherit;font-size:clamp(30px,3.2vw,42px)!important;font-weight:700!important;line-height:1.2!important;color:#102e4a!important;margin:0 0 22px!important}
body.bgf-product-page .bgf-launch{display:block!important;width:100%!important;max-width:100%!important;min-height:58px;font-size:17px!important;font-weight:700!important;border-radius:7px!important;background:#123450!important;box-shadow:none!important}
body.bgf-product-page .bgf-launch span{margin-left:10px}
body.bgf-product-page .product .summary .woocommerce-product-details__short-description{margin-bottom:14px}
body.bgf-product-page .product .summary .bgf-entry-price .woocommerce-Price-amount{font-size:inherit;color:inherit}

/* v0.3.9: native WooCommerce price and centered configurator CTA */
body.bgf-product-page .product .summary > p.price,
body.bgf-product-page .product .summary > .price{font-family:inherit!important;text-align:inherit!important;margin:16px 0 20px!important;}
body.bgf-product-page .product .summary .bgf-entry{margin:0 0 28px!important;}
body.bgf-product-page .product .summary .bgf-launch{display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;text-align:center!important;margin-left:auto!important;margin-right:auto!important;padding:15px 24px!important;}
body.bgf-product-page .product .summary .bgf-launch span{margin-left:0!important;}
@media(max-width:767px){body.bgf-product-page .product .summary .bgf-launch{width:100%!important;min-height:52px!important;}}

/* v0.3.11: centered overlay dialog, without the former full-width header */
.bgf-modal{display:flex!important;align-items:center;justify-content:center;padding:clamp(14px,3vw,40px);overflow-y:auto;background:rgba(10,25,42,.65)!important;backdrop-filter:blur(3px)}
.bgf-modal[hidden]{display:none!important}
.bgf-modal .bgf-shell{position:relative;display:block;flex:none;width:min(1060px,100%);min-height:0;max-height:calc(100dvh - 40px);overflow-y:auto;margin:auto;padding:clamp(38px,5vw,68px) clamp(18px,5vw,64px) clamp(24px,4vw,48px);border-radius:18px;background:#fff;box-shadow:0 24px 80px rgba(0,0,0,.22)}
.bgf-modal .bgf-close{position:absolute;right:16px;top:12px;z-index:2;padding:6px 12px;font-size:32px;background:transparent;border:0;cursor:pointer}
.bgf-modal .bgf-body{margin:0 auto!important;padding-bottom:0!important;width:min(790px,100%);}
/* Center the final answer only when there are exactly five choices; six stay in standard rows. */
body.bgf-product-page .bgf-modal .bgf-options-five>.bgf-option:last-child{grid-column:1/-1;justify-self:center;width:calc((100% - var(--bgf-quiz-gap,13px))/2)}
@media(max-width:767px){.bgf-modal{padding:10px!important}.bgf-modal .bgf-shell{width:100%;max-height:calc(100dvh - 20px);padding:58px 16px 26px;border-radius:14px}.bgf-modal .bgf-close{top:8px;right:10px}body.bgf-product-page .bgf-modal .bgf-options-five>.bgf-option:last-child{grid-column:auto;justify-self:stretch;width:100%}}
