.otpv,.otpv *{box-sizing:border-box}.otpv{--otpv-height:720px;--otpv-accent:#0057b8;display:flex;flex-direction:column;width:100%;max-width:100%;min-width:0;overflow:hidden;margin:20px 0;border:1px solid #d7dfe9;border-radius:12px;background:#fff;color:#0f172a;font:14px/1.45 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:0 4px 16px rgba(15,23,42,.07)}
.otpv-toolbar{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding:10px 12px;background:#0f172a;color:#fff}.otpv-group{display:flex;align-items:center;gap:6px;flex:0 0 auto}.otpv button{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;margin:0;padding:0 8px;background:#26354d;color:#fff;border:1px solid #43516a;border-radius:6px;font:600 17px/1 system-ui,sans-serif;cursor:pointer;box-shadow:none;text-transform:none;letter-spacing:normal}.otpv button.otpv-fit{font-size:12px;min-width:52px}.otpv button:hover:not(:disabled){background:var(--otpv-accent);border-color:var(--otpv-accent)}.otpv button:disabled,.otpv input:disabled{opacity:.45;cursor:default}.otpv button:focus-visible,.otpv input:focus-visible,.otpv-stage:focus-visible{outline:2px solid #69aaff;outline-offset:-2px}.otpv-page-label{margin:0}.otpv input[data-page]{width:50px;height:38px;padding:3px;margin:0;text-align:center;background:#fff;color:#0f172a;border:1px solid #aeb9cb;border-radius:6px;font:600 14px/1 system-ui,sans-serif;appearance:textfield;-moz-appearance:textfield}.otpv input::-webkit-inner-spin-button,.otpv input::-webkit-outer-spin-button{appearance:none;margin:0}.otpv-count{white-space:nowrap;font-size:13px;color:#e2e8f0}.otpv-stage{position:relative;height:var(--otpv-height);max-height:85vh;min-height:240px;overflow:auto;background:#e8edf3;overscroll-behavior:contain;overflow-anchor:none}.otpv-paper{display:flex;min-width:100%;width:max-content;min-height:100%;padding:12px;flex-direction:column;align-items:center;justify-content:flex-start;gap:14px}.otpv canvas{display:block;max-width:none!important;max-height:none!important;flex:none;background:white;box-shadow:0 2px 10px rgba(15,23,42,.15);user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.otpv canvas[hidden],.otpv-status[hidden]{display:none!important}.otpv-status{position:absolute;top:18px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);padding:12px 18px;border:1px solid #d7dfe9;border-radius:8px;background:white;color:#334155;text-align:center;box-shadow:0 2px 12px rgba(15,23,42,.1)}.otpv-status.is-error{color:#922323}.otpv-footer{display:flex;justify-content:space-between;gap:8px;padding:8px 12px;color:#526175;font-size:12px;background:#fff;border-top:1px solid #d7dfe9}.otpv-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.otpv-error{padding:10px;color:#922323}.otpv:fullscreen,.otpv.is-expanded{width:100%;height:100%;max-width:none;margin:0;border-radius:0;border:0}.otpv.is-expanded{position:fixed;inset:0;z-index:2147483000;height:100dvh}.otpv:fullscreen .otpv-stage,.otpv.is-expanded .otpv-stage{flex:1;min-height:0;height:auto;max-height:none}.otpv:fullscreen .otpv-toolbar,.otpv.is-expanded .otpv-toolbar{flex:none}body.otpv-lock{overflow:hidden!important}
@media(max-width:600px){.otpv{margin:12px 0;border-radius:9px}.otpv-toolbar{gap:8px;padding:8px;justify-content:center}.otpv-group{gap:4px}.otpv button{height:40px;min-width:34px;padding:0 6px}.otpv button.otpv-fit{min-width:45px}.otpv input[data-page]{height:40px;width:43px}.otpv-stage{height:min(var(--otpv-height),68vh);min-height:220px}.otpv-paper{padding:8px}.otpv-footer{padding:7px 8px}}
@media(max-width:360px){.otpv-toolbar{gap:6px}.otpv-group{gap:3px}.otpv button{min-width:31px}.otpv button.otpv-fit{min-width:40px}}
@media print{.otpv{display:none!important}}

.otpv-page{position:relative;display:flex;align-items:center;justify-content:center;flex:none;background:#fff;box-shadow:0 2px 10px rgba(15,23,42,.15)}.otpv-page canvas{box-shadow:none}.otpv-placeholder{padding:10px;text-align:center;color:#526175;font-size:13px}.otpv-placeholder[hidden]{display:none!important}

/* Isolate scrolling and sheet geometry from global WordPress theme styles. */
.otpv .otpv-stage{scroll-behavior:auto!important;scrollbar-gutter:stable;flex:none;min-width:0}
.otpv:fullscreen .otpv-stage,.otpv.is-expanded .otpv-stage{flex:1}
.otpv .otpv-paper{position:relative;box-sizing:border-box;flex:none;margin:0!important;border:0;scroll-behavior:auto!important}
.otpv .otpv-paper>.otpv-page{position:relative;display:flex;flex-direction:column;flex:0 0 auto;box-sizing:border-box;min-width:0;min-height:0;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0;overflow:hidden;gap:8px}
.otpv .otpv-page>canvas{position:absolute;inset:0;display:block!important;width:100%;height:100%;margin:0!important;padding:0!important;border:0}
.otpv .otpv-page>.otpv-placeholder{display:block;color:#526175!important;background:#fff;font:500 13px/1.5 system-ui,sans-serif;text-align:center;white-space:normal;padding:10px;max-width:100%}
.otpv .otpv-page>.otpv-placeholder[hidden],.otpv .otpv-retry[hidden]{display:none!important}
.otpv .otpv-retry{height:auto;min-height:36px;padding:8px 12px;background:#0057b8;font-size:12px}

/* Keep a visible progress label near the top of each not-yet-rendered page. */
.otpv .otpv-paper>.otpv-page{justify-content:flex-start}
.otpv .otpv-page>.otpv-placeholder{position:sticky;top:12px;margin:12px 0 0;z-index:1;flex:none;border:1px solid #d7dfe9;border-radius:6px;box-shadow:0 2px 8px rgba(15,23,42,.08)}
.otpv .otpv-retry:not([hidden]){position:sticky;top:64px;z-index:1;flex:none}
