/* Scoped styles avoid changing theme navigation, SEO content, checkout and other forms. */
.bhpc-intro{margin:18px 0 20px;padding:20px 22px;border:1px solid #e8dcca;border-radius:16px;background:#fffdf9;color:#352820;box-shadow:0 3px 14px rgba(53,40,32,.04)}
.bhpc-eyebrow{font:700 10px/1.3 system-ui,sans-serif;letter-spacing:.16em;color:#966a55}
.bhpc-intro h3{font:600 clamp(21px,2vw,27px)/1.2 Georgia,serif;margin:7px 0 14px;color:#352820}
.bhpc-intro p{font:13px/1.55 system-ui,sans-serif;color:#756255;margin:14px 0 0}
.bhpc-step-row{display:flex;gap:6px;flex-wrap:wrap}
.bhpc-step-row span{display:flex;align-items:center;gap:7px;font:600 12px/1.4 system-ui,sans-serif;color:#4b3b31;padding:7px 9px;background:#f7f2e9;border-radius:8px;flex:1 1 auto}
.bhpc-step-row b{display:inline-grid;place-items:center;width:21px;height:21px;flex-shrink:0;border-radius:50%;background:#594333;color:white;font:700 11px system-ui,sans-serif}
.bhpc-enhanced-form{min-width:0}
.bhpc-enhanced-form input[type=file],.bhpc-enhanced-form textarea,.bhpc-enhanced-form input[type=text]{max-width:100%;box-sizing:border-box}
.bhpc-enhanced-form .bhpc-section-heading{display:block;margin-top:14px;font-size:clamp(16px,1.8vw,20px);line-height:1.35}
.bhpc-priority-panel{outline:0}
.bhpc-trigger-block{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:18px 0;padding:16px;border:1px solid #e7d8c2;border-radius:14px;background:linear-gradient(135deg,#fffaf3,#f7f2e9);color:#352820;clear:both}
.bhpc-trigger-block>div{flex:1;min-width:0}
.bhpc-trigger-block strong{display:block;font:600 17px Georgia,serif}
.bhpc-trigger-block small{display:block;margin-top:5px;font:12px/1.5 system-ui,sans-serif;color:#725e51}
.bhpc-enhanced-form .bhpc-open,.bhpc-done{background:#594333!important;color:#fff!important;border:0!important;border-radius:9px!important;padding:13px 17px!important;font:700 13px/1.35 system-ui,sans-serif!important;cursor:pointer!important;min-height:44px;white-space:normal}
.bhpc-enhanced-form .bhpc-open:hover,.bhpc-done:hover{background:#352820!important}
body.bhpc-modal-open{overflow:hidden}
.bhpc-overlay[hidden]{display:none!important}
.bhpc-overlay{position:fixed;inset:0;z-index:999999;background:rgba(21,18,16,.76);display:flex;align-items:center;justify-content:center;padding:16px;overscroll-behavior:contain}
.bhpc-dialog{box-sizing:border-box;background:#fffaf5;border-radius:16px;max-width:1050px;width:100%;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;box-shadow:0 18px 65px rgba(0,0,0,.3);padding:clamp(14px,2vw,25px);color:#352820;outline:none}
.bhpc-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.bhpc-modal-head h2{font:600 clamp(21px,3vw,30px)/1.2 Georgia,serif;margin:5px 0 9px;color:#352820}
.bhpc-close{border:1px solid #d8c9b9!important;background:white!important;color:#352820!important;width:44px;height:44px;flex:0 0 44px;border-radius:50%!important;font:30px/1 system-ui,sans-serif!important;cursor:pointer}
.bhpc-sync-message{font:13px/1.5 system-ui,sans-serif;color:#655044;background:#f3ebe0;border-radius:8px;padding:10px 12px;margin:10px 0 16px}
.bhpc-dialog .bhfp{margin:0!important;max-width:100%!important;padding:12px!important;box-shadow:none!important}
.bhpc-dialog .bhfp-heading{display:none!important}
.bhpc-dialog .bhfp-stage{overflow:hidden}
.bhpc-dialog .bhfp-canvas{display:block;max-width:100%;height:auto}
.bhpc-modal-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:13px;margin-top:13px;border-top:1px solid #e7d8c2}
.bhpc-modal-foot span{font:12px/1.5 system-ui,sans-serif;color:#725e51;max-width:600px}
.bhpc-unavailable{padding:28px;border:1px dashed #c5ae93;border-radius:10px}
@media(max-width:767px){
 .bhpc-intro{padding:14px;margin:12px 0}.bhpc-intro h3{font-size:22px}
 .bhpc-step-row{flex-direction:column}.bhpc-step-row span{width:100%;box-sizing:border-box}
 .bhpc-trigger-block{flex-direction:column;align-items:stretch;padding:14px}
 .bhpc-enhanced-form .bhpc-open{width:100%}
 .bhpc-overlay{padding:0;align-items:stretch}
 .bhpc-dialog{border-radius:0;max-height:100dvh;height:100dvh;padding:15px 12px 24px}
 .bhpc-dialog .bhfp{padding:0!important}
 .bhpc-modal-foot{flex-direction:column;align-items:stretch}
 .bhpc-done{width:100%}
}
@media(prefers-reduced-motion:reduce){.bhpc-overlay *{scroll-behavior:auto!important}}

.bhpc-gallery-controls{margin:12px 0 8px;padding:12px;border:1px solid #e7d8c2;border-radius:12px;background:#fffaf4;color:#352820}
.bhpc-gallery-heading{display:flex;flex-direction:column;gap:4px;margin-bottom:10px}
.bhpc-gallery-heading strong{font:600 16px/1.25 Georgia,serif}
.bhpc-gallery-heading small{font:12px/1.4 system-ui,sans-serif;color:#735e50}
.bhpc-gallery-actions{display:flex;gap:8px;flex-wrap:wrap}
.bhpc-gallery-toggle,.bhpc-gallery-preview{min-height:44px;border-radius:8px!important;padding:10px 14px!important;cursor:pointer;font:600 13px/1.35 system-ui,sans-serif!important}
.bhpc-gallery-toggle{background:#f7f2e9!important;border:1px solid #d8c7b2!important;color:#352820!important}
.bhpc-gallery-preview{background:#594333!important;border:1px solid #594333!important;color:#fff!important}
.bhpc-gallery-preview:disabled{opacity:.5;cursor:not-allowed}
.bhpc-mobile-cart{display:none}
@media(max-width:767px){
 body.single-product{padding-bottom:0}
 .bhpc-mobile-cart.bhpc-cart-visible{display:flex}
 .bhpc-mobile-cart{position:fixed;bottom:0;left:0;right:0;z-index:99990;align-items:center;justify-content:space-between;gap:10px;padding:10px max(12px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:#fffaf4;box-shadow:0 -4px 18px rgba(53,40,32,.14);border-top:1px solid #e7d8c2;color:#352820}
 .bhpc-mobile-cart-label{display:grid;gap:2px;min-width:0}
 .bhpc-mobile-cart-label strong{font:600 13px/1.2 Georgia,serif}
 .bhpc-mobile-cart-label small{font:11px/1.25 system-ui,sans-serif;color:#735e50}
 .bhpc-mobile-cart-action{flex-shrink:0;min-height:44px;padding:10px 13px!important;background:#594333!important;color:white!important;border:0!important;border-radius:9px!important;font:700 12px system-ui,sans-serif!important}
 body.single-product:has(.bhpc-cart-visible){padding-bottom:75px}
 .bhpc-gallery-actions>button{flex:1 1 145px}
 body.bhpc-modal-open .bhpc-mobile-cart{display:none!important}
}

/* Keep native monogram tiles and gallery geometry; hide only selected gallery container. */
.bhpc-monogram-grid[hidden], .bhpc-removed-proof[hidden]{display:none!important}
.bhpc-gallery-controls{display:block!important;width:100%;box-sizing:border-box;clear:both}

/* v1.4: Two unobtrusive placements, with no change to photo or monogram rendering. */
.bhpc-trigger-photo,.bhpc-trigger-monogram{width:100%;box-sizing:border-box;margin:12px 0 18px;position:relative;z-index:1}
.bhpc-trigger-monogram .bhpc-open:disabled{opacity:.6;cursor:not-allowed}

/* Single optional preview and accessible native design choices. */
.bhpc-enhanced-form .bwh-design{color:#352820;font-size:17px;line-height:1.5}
.bhpc-enhanced-form .bwh-design h3,.bhpc-cart-title{font-size:23px!important;line-height:1.3!important;color:#352820!important;margin:16px 0!important}
.bhpc-enhanced-form .bwh-design p,.bhpc-enhanced-form .bwh-design small,.bhpc-gallery-heading small,.bhpc-sync-message,.bhpc-modal-foot span,.bhpc-dialog .bhfp p,.bhpc-dialog .bhfp label{font-size:16px!important;line-height:1.5!important;color:#594333}
.bhpc-enhanced-form .bwh-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
.bhpc-enhanced-form .bwh-tab{display:flex!important;align-items:flex-start!important;gap:8px!important;min-height:116px!important;padding:14px!important;border:2px solid #E7D8C2!important;background:#F7F2E9!important;color:#352820!important;border-radius:12px!important;cursor:pointer!important;margin:0!important;box-sizing:border-box}
.bhpc-enhanced-form .bwh-tab-copy{min-width:0}
.bhpc-enhanced-form .bwh-tab strong{font-size:18px!important;line-height:1.3!important;display:block}
.bhpc-enhanced-form .bwh-tab small{display:block;margin-top:7px}
.bhpc-enhanced-form .bwh-tab-icon{display:none!important}
.bhpc-enhanced-form .bwh-tab input[type=radio]{appearance:auto!important;opacity:1!important;position:static!important;width:21px!important;height:21px!important;margin:2px 0 0!important;flex-shrink:0;accent-color:#594333}
.bhpc-enhanced-form .bwh-tab:has(input:checked){border-color:#594333!important;box-shadow:0 0 0 1px #594333!important;background:#E7D8C2!important}
.bhpc-enhanced-form .bwh-design [hidden],.bhpc-overlay [hidden],.bhpc-enhanced-form .bhpc-single-preview[hidden],.bwh-monogram-gallery[hidden]{display:none!important}
.bhpc-enhanced-form .bwh-mono-choice{cursor:pointer;border:3px solid transparent!important;border-radius:8px!important;padding:5px!important}
.bhpc-enhanced-form .bwh-mono-choice.bhpc-selected{border-color:#594333!important;background:#E7D8C2!important}
.bhpc-enhanced-form .bwh-mono-choice img{max-width:100%;height:auto}
.bhpc-enhanced-form textarea,.bhpc-enhanced-form select,.bhpc-enhanced-form input[type=file]{font-size:17px!important;line-height:1.5!important;max-width:100%;min-height:48px}
.bhpc-enhanced-form input[type=file]::file-selector-button{min-height:48px;padding:10px 14px;margin-right:10px;font-size:17px;cursor:pointer}
.bhpc-enhanced-form .bhpc-open,.bhpc-done,.bhpc-enhanced-form .bhpc-gallery-toggle,.bhpc-enhanced-form .bwh-ai button{font-size:17px!important;min-height:48px!important;padding:13px 18px!important;white-space:normal!important}
.bhpc-enhanced-form .bhpc-open:disabled{opacity:.6;cursor:not-allowed!important}
.bhpc-single-preview{display:block!important;padding:16px!important}
.bhpc-single-preview h3{font-size:21px!important;margin-top:0!important}
.bhpc-single-preview h3 span{font-size:16px;font-weight:400;display:block}
.bhpc-single-preview .bhpc-open{width:100%}
.bhpc-upload-status{overflow-wrap:anywhere;font-weight:600;padding:8px 0}
.bhpc-enhanced-form .single_add_to_cart_button{font-size:20px!important;min-height:54px!important;padding:15px 24px!important;border-radius:9px!important;background:#594333!important;color:#fff!important}
.bhpc-enhanced-form .quantity input{font-size:18px!important;min-height:48px}
.bhpc-enhanced-form :is(button,input,textarea,select,label):focus-visible,.bhpc-dialog :is(button,input,summary):focus-visible{outline:3px solid #352820!important;outline-offset:4px!important}
.bhpc-dialog .bhfp-checkbox{min-height:48px;display:flex;align-items:center;gap:10px;cursor:pointer}
.bhpc-dialog .bhfp-checkbox input{width:22px;height:22px;accent-color:#594333;flex-shrink:0}
.bhpc-adjustments summary{font-size:17px;font-weight:600;cursor:pointer;padding:14px 8px;min-height:48px;box-sizing:border-box;background:#F7F2E9;border-radius:8px;margin:12px 0}
.bhpc-bg-fallback{border-left:3px solid #927458;padding-left:10px}
@media(max-width:1000px){.bhpc-enhanced-form .bwh-tabs{grid-template-columns:1fr!important}.bhpc-enhanced-form .bwh-tab{min-height:76px!important}.bhpc-enhanced-form .bwh-tab small{margin-top:3px}}
@media(max-width:767px){.bhpc-enhanced-form .bwh-design{padding:14px!important}.bhpc-dialog .bhfp-layout{grid-template-columns:1fr!important}.bhpc-gallery-heading small{font-size:16px!important}}

.bhpc-enhanced-form .bwh-tabs{grid-template-columns:1fr!important}
.bhpc-enhanced-form .bwh-tab{flex-direction:row!important;align-items:center!important;min-height:82px!important}
.bhpc-enhanced-form .bwh-tab-copy{flex:1!important}
.bhpc-enhanced-form .bwh-tab strong,.bhpc-enhanced-form .bwh-tab small{color:#352820!important;word-break:normal!important;overflow-wrap:normal!important}

.bhpc-enhanced-form .single_add_to_cart_button{height:auto!important;line-height:1.3!important;box-sizing:border-box!important}

.bhpc-bg-tools{margin:14px 0;border:1px solid #E7D8C2;border-radius:10px;padding:12px;background:#fffaf4;color:#352820}
.bhpc-bg-tools summary{font-size:17px;font-weight:600;line-height:1.4;cursor:pointer;min-height:48px;display:list-item}
.bhpc-bg-tools ol{margin:12px 0 12px 22px;padding:0;font-size:16px;line-height:1.5}
.bhpc-free-links{display:grid;gap:8px;margin:12px 0}
.bhpc-free-links a,.bhpc-load-cutout,.bhpc-keep-photo{display:block;box-sizing:border-box;min-height:48px;padding:12px!important;border:1px solid #927458!important;border-radius:8px!important;background:#F7F2E9!important;color:#352820!important;font-size:17px!important;line-height:1.4!important;cursor:pointer;text-align:center;white-space:normal!important}
.bhpc-load-cutout{width:100%;background:#594333!important;color:white!important}
.bhpc-keep-photo{width:100%;margin:12px 0}
