/* Phase 1 editor. All public and editorial styles remain namespaced. */
.bfrwm-admin-toolbar[hidden],.bfrwm [hidden]{display:none!important}
.bfrwm-admin-toolbar{position:relative;z-index:2;display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:12px;margin-bottom:18px;border:1px solid #216ba4;border-radius:10px;background:#07162b}
.bfrwm-admin-toolbar span{font-size:12px;color:#9fbcdd}.bfrwm-admin-toggle{background:#102d50!important;color:#c7e5ff!important;border:1px solid #2d7bb4!important;border-radius:7px!important;padding:10px 15px!important;font-size:13px!important;font-weight:800!important}.bfrwm-admin-toggle[aria-pressed=true]{border-color:#39efc2!important;color:#79ffd9!important}
.bfrwm-full-overlay{position:fixed;inset:0;z-index:1000100;display:flex;align-items:center;justify-content:center;padding:20px;background:#020714ed;backdrop-filter:blur(6px)}
.bfrwm-full-dialog{position:relative;background:#08162b;border:1px solid #3aafff;border-radius:16px;box-shadow:0 0 35px #087bff55;width:min(1120px,100%);max-height:94vh;overflow:auto;color:#e6f3ff;padding:26px;font-size:14px;line-height:1.5}
.bfrwm-full-dialog h3{color:#fff!important;font-size:25px!important;padding-right:45px;margin:0 0 8px!important}.bfrwm-full-dialog p{color:#bed1ea;font-size:13px}.bfrwm-full-dialog button{font:inherit;cursor:pointer;color:#e5f5ff!important;background:#113352!important;border:1px solid #317aaa!important;border-radius:7px!important;padding:9px 13px!important;line-height:1.3!important;box-shadow:none!important;text-transform:none!important;letter-spacing:0!important}.bfrwm-full-dialog button:disabled{opacity:.5;cursor:wait}.bfrwm-full-dialog button:focus-visible,.bfrwm-full-dialog input:focus-visible,.bfrwm-full-dialog select:focus-visible,.bfrwm-full-dialog textarea:focus-visible{outline:2px solid #50e8ff!important;outline-offset:3px}
.bfrwm-full-dialog .bfrwm-full-close{position:absolute;right:14px;top:14px;z-index:4;min-width:44px;min-height:44px;font-size:28px!important;padding:0!important;background:#193652!important}
.bfrwm-editor-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.bfrwm-full-dialog [role=tab][aria-selected=true]{background:#075b83!important;border-color:#40dfff!important;color:white!important}.bfrwm-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}.bfrwm-field{display:flex!important;flex-direction:column;gap:6px;color:#d3e8ff!important;font-size:13px;font-weight:600;margin:0!important}.bfrwm-field input:not([type=hidden]),.bfrwm-field textarea,.bfrwm-field select{display:block!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;background:#0e2541!important;border:1px solid #395d80!important;border-radius:6px!important;padding:10px!important;color:white!important;font:inherit!important;line-height:1.4!important;box-shadow:none!important}.bfrwm-field input[type=hidden]{display:none!important}.bfrwm-field:has(input[type=hidden]){display:none!important}.bfrwm-field textarea{resize:vertical;min-height:100px}.bfrwm-check{display:flex!important;align-items:center;gap:8px;color:#cbe6ff!important;font-size:13px;font-weight:600;padding:10px 0;margin:0!important}.bfrwm-check input{appearance:auto!important;position:static!important;opacity:1!important;width:18px!important;height:18px!important;min-width:18px;margin:0!important;accent-color:#13bfee}.bfrwm-media-field{display:flex;gap:10px;flex-direction:column}.bfrwm-logo-preview,.bfrwm-product-preview{width:100px!important;height:70px!important;object-fit:contain;background:#061323;border-radius:7px;padding:6px}
.bfrwm-rank-editor-row{display:grid;grid-template-columns:minmax(140px,1fr) minmax(120px,1fr) 110px 100px;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #24425f}.bfrwm-product-editor{position:relative;margin:0 0 20px!important;border:1px solid #315879!important;border-radius:10px;padding:18px!important;min-width:0!important}.bfrwm-product-editor legend{color:#7ee8ff!important;font-weight:bold;padding:0 8px!important;width:auto!important;font-size:16px!important}.bfrwm-product-tools{display:flex;justify-content:flex-end;gap:8px;margin-bottom:15px;flex-wrap:wrap}.bfrwm-full-dialog [data-delete]{border-color:#b94d73!important;color:#ffb9d1!important}.bfrwm-editor-footer{position:sticky;bottom:-26px;display:flex;justify-content:flex-end;align-items:center;gap:12px;flex-wrap:wrap;margin-top:25px;padding:16px 0;background:#08162bf5;border-top:1px solid #285071;z-index:3}.bfrwm-editor-feedback{flex:1;min-width:140px;color:#8fe8ff}.bfrwm-full-dialog .bfrwm-save-full{background:#066f96!important;color:white!important;font-weight:bold}.bfrwm-full-dialog [aria-busy=true]{opacity:.8}
.bfrwm-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}.bfrwm-product{display:flex;flex-direction:column;gap:8px;position:relative;padding:14px;background:linear-gradient(150deg,#102948,#040c1b);border:1px solid #265a90;border-radius:10px;min-width:0;color:#ecf7ff}.bfrwm-product img{width:100%;height:125px;object-fit:contain;background:#fff;border-radius:6px}.bfrwm-product h5{color:#f1f8ff!important;font-size:15px!important;line-height:1.3!important;margin:3px 0!important;overflow-wrap:anywhere}.bfrwm-product p{font-size:12px!important;margin:0!important;color:#c1d7ed!important}.bfrwm-product strong{font-size:18px;color:#8eefff}.bfrwm-product small{font-size:10px;color:#a0bdd8}.bfrwm-product del{font-size:12px;color:#a9b8cb}.bfrwm-product a{margin-top:auto;background:#123a67;border:1px solid #258eda;color:white!important;padding:8px;border-radius:7px;text-align:center;text-decoration:none!important;font-size:12px}.bfrwm-discount{align-self:flex-start;background:#ba164a;color:white;border-radius:5px;padding:2px 7px;font-size:12px}.bfrwm-products-title{color:#fff!important;font-size:20px!important;margin:24px 0 8px!important}.bfrwm-description,.bfrwm-summary{white-space:pre-line;color:#c5d9ef!important}.bfrwm-date-status,.bfrwm-rank-label{display:inline-block;padding:4px 9px;border:1px solid #2c9bd7;background:#0a2645;color:#a2e8ff;border-radius:5px;font-size:12px}.bfrwm-preview-card{display:flex;flex-direction:column;gap:12px;border:1px solid #55bfff;border-radius:12px;padding:20px;margin:15px 0;width:210px;background:#061226}.bfrwm-preview-card img{height:65px;object-fit:contain}.bfrwm-preview-content{max-width:850px;margin:auto}.bfrwm-portal .bfrwm-close{top:10px;right:10px}.bfrwm-detail>.bfrwm-quick-edit{margin-bottom:15px}.bfrwm-dialog{padding-top:62px!important}.bfrwm-portal .bfrwm-close{z-index:10;pointer-events:auto!important}
@media(max-width:700px){.bfrwm-full-overlay{padding:6px}.bfrwm-full-dialog{max-height:98vh;padding:16px}.bfrwm-form-grid{grid-template-columns:1fr}.bfrwm-rank-editor-row{grid-template-columns:1fr 1fr;gap:8px}.bfrwm-editor-tabs{display:grid;grid-template-columns:1fr 1fr}.bfrwm-editor-tabs button{font-size:11px!important;padding:8px!important}.bfrwm-editor-footer{bottom:-16px}.bfrwm-products{grid-template-columns:repeat(2,minmax(0,1fr))}.bfrwm-product{padding:9px}.bfrwm-product img{height:100px}}
@media(prefers-reduced-motion:reduce){.bfrwm-full-overlay *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

body.bfrwm-edit-open .media-modal{z-index:1000200!important}body.bfrwm-edit-open .media-modal-backdrop{z-index:1000199!important}
/* 4.2.4: local catalog import */
.wm-import{border:1px solid #44748d;border-radius:8px;padding:12px;margin:15px 0;background:#071c30;color:#d9ecff}.wm-import summary{cursor:pointer;font-weight:700}.wm-import label{display:block;margin:8px 0;font-size:12px}.wm-import input:not([type=checkbox]),.wm-import textarea{display:block;width:100%;max-width:100%;background:#06172d;color:#fff;border:1px solid #44748d;padding:8px}.wm-import canvas{display:block;max-width:100%;height:auto;border:1px solid #39bfff;touch-action:none;cursor:crosshair}.wm-import canvas[hidden]{display:none}.wm-import fieldset{border:1px solid #446784;padding:10px;margin:10px 0}.wm-import fieldset img{max-width:140px;max-height:100px;object-fit:contain}.wm-import button{margin:5px;padding:8px;border:1px solid #b8758a;background:#800020;color:#fff;border-radius:5px;cursor:pointer}.wm-import button:disabled{opacity:.45;cursor:default}.wm-import [data-ocr-status]{font-size:12px;line-height:1.5}
/* 4.2.6: local drag/drop and clipboard capture, no clipboard permission request. */
.wm-import-image-actions{display:grid;grid-template-columns:minmax(160px,.8fr) minmax(0,1.2fr);gap:12px;align-items:stretch;margin:12px 0}.wm-ocr-drop{display:flex;flex-direction:column;justify-content:center;gap:7px;padding:15px;border:2px dashed #39bfff;border-radius:9px;background:#08253c;color:#e5f5ff;cursor:pointer;text-align:center;min-height:110px}.wm-ocr-drop strong{font-size:14px;line-height:1.5}.wm-ocr-drop span,.wm-ocr-drop small{font-size:11px;line-height:1.5;color:#c2d9eb}.wm-ocr-drop:focus-visible{outline:3px solid #fff;outline-offset:3px}.wm-ocr-drop.is-dragging{background:#104867;border-color:#a0f5ff}.wm-ocr-drop[aria-disabled=true]{opacity:.55;cursor:default}@media(max-width:650px){.wm-import-image-actions{grid-template-columns:1fr}}
