/* All styles scoped to Bernard Wrist Auto Scan v4. Theme/Elementor safe. */
.bwp-v3-locked{overflow:hidden!important}
.bwp-v3-trigger-wrap{direction:rtl;margin:14px 0;position:relative;z-index:2}
.bwp-v3-trigger-wrap.bwp-v3-floating{position:fixed;right:18px;bottom:22px;z-index:990000;margin:0}
.bwp-v3-trigger,.bwp-v3 button{font:inherit!important;box-sizing:border-box;cursor:pointer;transition:background .18s ease,border-color .18s ease,transform .18s ease}
.bwp-v3-trigger{width:100%;max-width:420px;min-height:48px;display:flex;align-items:center;justify-content:center;gap:10px;background:#22201f!important;color:#fff!important;border:1px solid #22201f!important;border-radius:10px!important;padding:11px 16px!important;font-size:14px!important;font-weight:650!important;letter-spacing:0!important;box-shadow:none!important}
.bwp-v3-trigger:hover{background:#3b342b!important;color:#fff!important}
.bwp-v3-trigger:focus-visible,.bwp-v3 button:focus-visible{outline:3px solid #c7a676!important;outline-offset:2px}
.bwp-v3-trigger-icon{font-size:23px;line-height:1}
.bwp-v3-trigger-wrap.bwp-v3-floating .bwp-v3-trigger{box-shadow:0 6px 26px rgba(0,0,0,.2)!important;max-width:330px}
.bwp-v3[hidden],.bwp-v3 [hidden]{display:none!important}
.bwp-v3{position:fixed!important;inset:0!important;z-index:2147483000!important;display:flex;align-items:center;justify-content:center;padding:10px;box-sizing:border-box;font-family:Tahoma,Arial,sans-serif!important;line-height:1.75;color:#2b2928!important;text-align:right;font-size:14px!important;direction:rtl!important}
.bwp-v3 *{box-sizing:border-box}
.bwp-v3-backdrop{position:absolute;inset:0;background:rgba(15,14,13,.78);backdrop-filter:blur(3px)}
.bwp-v3-panel{position:relative;z-index:1;width:min(690px,100%);max-height:calc(100dvh - 20px);overflow:auto;overscroll-behavior:contain;background:#fff;box-shadow:0 20px 100px rgba(0,0,0,.36);border:1px solid rgba(180,168,151,.3);border-radius:17px;padding:0;scrollbar-width:thin}
.bwp-v3-header{padding:19px 22px 14px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #ece8e1}
.bwp-v3-eyebrow{display:block;color:#a58c6a;font-size:9px;letter-spacing:2.5px;direction:ltr;text-align:right}
.bwp-v3-header h2{font:700 19px/1.6 Tahoma,Arial,sans-serif!important;color:#23201c!important;margin:5px 0 0!important;padding:0!important}
.bwp-v3-close{width:37px!important;height:37px!important;flex:none;border-radius:9px!important;border:1px solid #ece7df!important;color:#38332c!important;background:#fff!important;padding:0!important;font-size:27px!important;line-height:1!important;display:grid;place-items:center}
.bwp-v3-close:hover{background:#f4efe7!important}
.bwp-v3-body{padding:17px 22px 18px}
.bwp-v3-choice{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.bwp-v3-choice-btn{width:100%;min-height:49px;border-radius:10px!important;background:#f8f6f3!important;border:1px solid #dcd4ca!important;color:#292521!important;font-weight:600!important;font-size:14px!important;padding:9px 10px!important;display:flex;align-items:center;justify-content:center;gap:9px}
.bwp-v3-choice-btn:hover{background:#eee9e3!important}
.bwp-v3-choice-btn span{font-size:25px;color:#9b805e}
.bwp-v3-guide{color:#5f5b56;margin:12px 0 11px;font-size:12px;line-height:1.9;background:#faf9f7;padding:10px 12px;border-radius:8px}
.bwp-v3-stage{background:#e9e6e0;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;max-height:52dvh;min-height:100px;border-radius:12px;border:1px solid #e3ddd6;margin:12px 0}
.bwp-v3-canvas{display:block;max-width:100%;max-height:52dvh;width:auto;height:auto;object-fit:contain;touch-action:manipulation}
.bwp-v3-camera{background:#171717;border-radius:12px;overflow:hidden;margin:12px 0}
.bwp-v3-video{width:100%;height:auto;max-height:45dvh;object-fit:cover;background:#111;display:block}
.bwp-v3-camera-actions{display:flex;gap:9px;padding:10px}
.bwp-v3-camera-actions button{border:1px solid #d2c5b6!important;padding:8px 12px!important;border-radius:9px!important;background:#fff!important;color:#333!important;flex:1}
.bwp-v3-camera-actions .bwp-v3-photo{background:#c3a57a!important;border-color:#c3a57a!important}
.bwp-v3-progress{font-size:12px;line-height:1.9;color:#58524b;text-align:center;padding:8px 4px;min-height:34px;overflow-wrap:anywhere}
.bwp-v3-progress.bwp-v3-error{color:#8e4b32}
.bwp-v3-manual{padding:12px 14px;border:1px solid #eadcca;border-radius:10px;background:#fffaf3;font-size:12px;color:#39342d}
.bwp-v3-manual p{margin:0 0 9px;line-height:1.9}
.bwp-v3-manual-reset{border:1px solid #bbaa96!important;border-radius:7px!important;background:#fff!important;color:#51473a!important;padding:6px 12px!important}
.bwp-v3-actions{display:grid;grid-template-columns:1.4fr 1fr;gap:10px;margin:12px 0 4px}
.bwp-v3-actions button{border-radius:10px!important;padding:12px 14px!important;min-height:47px;font-weight:600!important}
.bwp-v3-download{background:#23211e!important;color:white!important;border:1px solid #23211e!important}
.bwp-v3-retry{background:white!important;color:#38342f!important;border:1px solid #ccc5bc!important}
.bwp-v3-footer{border-top:1px solid #eee9e3;color:#817c76;padding:12px 22px 14px;font-size:11px;line-height:1.9}
@media(max-width:550px){.bwp-v3{padding:0;align-items:flex-end}.bwp-v3-panel{width:100%;max-height:96dvh;border-radius:17px 17px 0 0;border-bottom:0}.bwp-v3-header{padding:15px 16px 12px}.bwp-v3-header h2{font-size:16px!important}.bwp-v3-body{padding:13px 15px}.bwp-v3-footer{padding:10px 15px 14px}.bwp-v3-stage,.bwp-v3-canvas{max-height:48dvh}.bwp-v3-trigger-wrap.bwp-v3-floating{right:12px;left:12px;bottom:12px}.bwp-v3-trigger-wrap.bwp-v3-floating .bwp-v3-trigger{max-width:none}.bwp-v3-choice-btn{font-size:12px!important}}
@media(prefers-reduced-motion:reduce){.bwp-v3 button,.bwp-v3-trigger{transition:none}}

/* Auto-only v4: no marker or manual alignment controls. */
.bwp-v3-actions .bwp-v3-download[hidden]{display:none!important}
.bwp-v3-progress.bwp-v3-error{background:#fff6f2;border:1px solid #efdad0;border-radius:8px;padding:10px;margin-top:10px}
