/* Set --wbr-bottom per theme to clear sticky checkout/navigation controls. */
#wbr-root { --wbr-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); font: 16px/1.5 system-ui, sans-serif; color: #172839; }
#wbr-root [hidden] { display: none !important; }
#wbr-launch { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: var(--wbr-bottom); z-index: 999999; border: 2px solid white; border-radius: 24px; padding: 10px 16px; background: #16466b; color: white; box-shadow: 0 2px 12px #0003; font: inherit; cursor: pointer; min-height: 44px; }
#wbr-dialog { box-sizing: border-box; width: min(720px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow: auto; border: 0; border-radius: 12px; padding: 24px; margin: auto; color: #172839; background: white; box-shadow: 0 12px 48px #0005; }
#wbr-dialog::backdrop { background: #0a182aa6; }
#wbr-dialog h2 { font: 600 24px/1.3 system-ui, sans-serif; margin: 0 0 16px; }
#wbr-dialog p { font: inherit; margin: 12px 0; }
#wbr-dialog label { display: block; font-weight: 600; margin: 12px 0 6px; }
#wbr-dialog textarea { box-sizing: border-box; width: 100%; color: #172839; background: white; border: 1px solid #7a8896; border-radius: 4px; padding: 10px; resize: vertical; font: inherit; }
#wbr-root button:focus-visible, #wbr-root textarea:focus-visible, #wbr-editor-canvas:focus-visible { outline: 3px solid #e99c00; outline-offset: 3px; }
#wbr-root button:disabled { opacity: .65; cursor: wait; }
#wbr-dialog .wbr-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }
#wbr-dialog button { border: 1px solid #16466b; border-radius: 5px; padding: 10px 16px; min-height: 44px; font: inherit; color: #16466b; background: white; cursor: pointer; }
#wbr-dialog #wbr-submit { color: white; background: #16466b; }
#wbr-warning { padding: 8px; background: #fff3ce; }
#wbr-editor { min-width: 0; margin: 16px 0; padding: 12px; border: 1px solid #b5bec7; border-radius: 6px; }
#wbr-editor legend { padding: 0 6px; font-weight: 600; }
#wbr-editor legend span { font-weight: 400; }
#wbr-editor-help { margin-top: 0 !important; font-size: 14px !important; }
.wbr-canvas-wrap { max-height: 46vh; overflow: auto; border: 1px solid #7a8896; background: #eef1f3; line-height: 0; }
#wbr-editor-canvas { display: block; width: 100%; height: auto; cursor: crosshair; touch-action: none; }
.wbr-editor-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.wbr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) { #wbr-launch { font-size: 13px; padding: 8px 12px; } #wbr-dialog { padding: 18px; } }
