.bpcl-lock{overflow:hidden}
.bpcl-modal{position:fixed;inset:0;z-index:100000;background:rgba(15,20,40,.55);display:flex;align-items:center;justify-content:center;padding:16px}
.bpcl-modal[hidden]{display:none}
.bpcl-dialog{background:#fff;border-radius:12px;width:min(860px,100%);max-height:calc(100vh - 32px);overflow:auto;box-shadow:0 20px 60px rgba(0,0,0,.3);color:#222}
.bpcl-top{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;background:var(--wd-primary-color,#1f2a4d);color:#fff;border-radius:12px 12px 0 0}
.bpcl-top strong{font-size:18px;color:#fff}
.bpcl-x{background:none!important;border:0;color:#fff!important;font-size:28px;line-height:1;cursor:pointer;padding:0 4px;min-height:0;box-shadow:none}
.bpcl-body{padding:20px;position:relative}
.bpcl-body p{margin:0 0 14px;font-size:14px}
.bpcl-small{font-size:12px!important;color:#777;margin-top:12px!important}
.bpcl-drop{display:flex;flex-direction:column;align-items:center;gap:6px;border:2px dashed #c9cbd3;border-radius:10px;padding:34px 16px;text-align:center;cursor:pointer;background:#fafafb;transition:border-color .15s,background .15s}
.bpcl-drop:hover,.bpcl-drop.is-over{border-color:var(--wd-primary-color,#1f2a4d);background:#f3f4f8}
.bpcl-drop-icon{font-size:30px;line-height:1}
.bpcl-drop span:last-child{font-size:13px;color:#666}
.bpcl-variants{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.bpcl-var{display:flex;flex-direction:column;gap:8px;align-items:stretch;text-align:center;border:2px solid #e3e3e8;border-radius:10px;padding:10px;background:#fff!important;color:#222!important;cursor:pointer;text-transform:none!important;font-weight:400;min-height:0;box-shadow:none}
.bpcl-var.is-on{border-color:#1e9e4a}
.bpcl-var-title{font-weight:700;font-size:14px}
.bpcl-var-img{display:flex;align-items:center;justify-content:center;height:150px;border-radius:6px;padding:12px}
.bpcl-var-img img{max-width:100%;max-height:100%;object-fit:contain}
.bpcl-bg-orig{background:#fff;background-image:linear-gradient(45deg,#eee 25%,transparent 25%,transparent 75%,#eee 75%),linear-gradient(45deg,#eee 25%,transparent 25%,transparent 75%,#eee 75%);background-size:16px 16px;background-position:0 0,8px 8px}
.bpcl-bg-white{background:#3a3f4b}
.bpcl-bg-black{background:#e9eaee}
.bpcl-var-hint{font-size:12px;color:#666;min-height:32px}
.bpcl-var-pick{font-weight:700;font-size:13px;padding:8px;border-radius:6px;background:#f1f2f5}
.bpcl-var.is-on .bpcl-var-pick{background:#1e9e4a;color:#fff}
.bpcl-check{display:flex;align-items:center;gap:8px;margin:14px 0 0;font-size:13px}
.bpcl-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px;flex-wrap:wrap}
.bpcl-actions button{border-radius:8px;padding:12px 18px;font-weight:700;cursor:pointer;text-transform:none!important}
.bpcl-again{background:#fff!important;color:#333!important;border:1px solid #ccc!important}
.bpcl-ok{background:var(--wd-primary-color,#1f2a4d)!important;color:#fff!important;border:0}
.bpcl-busy{position:absolute;inset:0;background:rgba(255,255,255,.85);display:flex;align-items:center;justify-content:center;font-weight:700}
.bpcl-busy[hidden]{display:none}
/* overlay on product images */
.bpcl-layer{position:absolute;inset:0;z-index:2;background:#fff;display:flex;align-items:center;justify-content:center;pointer-events:none;overflow:hidden}
.bpcl-layer[hidden]{display:none}
.bpcl-stage{position:relative;flex:none}
.bpcl-stage img.bpcl-base{display:block;width:100%;height:100%;max-width:none;object-fit:contain}
.bpcl-stage img.bpcl-logo{position:absolute;object-fit:contain;max-width:none}
/* floating pill */
.bpcl-pill{position:fixed;left:16px;bottom:16px;z-index:9990;display:flex;align-items:center;gap:6px;background:#fff;border-radius:30px;box-shadow:0 6px 24px rgba(0,0,0,.18);padding:6px 8px;max-width:calc(100vw - 32px)}
.bpcl-pill button{background:none!important;border:0;color:#1f2a4d!important;font-weight:700;font-size:13px;cursor:pointer;padding:6px 8px;min-height:0;text-transform:none!important;box-shadow:none;white-space:nowrap}
.bpcl-pill-plus{display:inline-flex;width:22px;height:22px;border-radius:50%;background:#1e9e4a;color:#fff;align-items:center;justify-content:center;margin-right:4px}
.bpcl-pill-thumb{display:flex;width:56px;height:34px;border-radius:17px;align-items:center;justify-content:center;padding:4px 8px}
.bpcl-pill-thumb img{max-width:100%;max-height:100%}
@media (max-width:768px){.bpcl-variants{grid-template-columns:1fr}.bpcl-var-img{height:110px}.bpcl-pill{bottom:76px}.bpcl-pill button{font-size:12px}}
.wd-product-thumb .product-labels,.product-element-top .product-labels,.wd-product-thumb .brandora-logo-badge{z-index:4}
@media (max-width:1024px){.bpcl-pill{bottom:76px}}
