/* JF Leitor Visual 2.0 — somente modal de leitura PDF.
 * Não modifica o catálogo, produtos WooCommerce nem os controles do leitor em texto. */
.jf-lv-dialog {
  --lv-wine:#6b1e3b;
  --lv-mauve:#8b5e6e;
  --lv-paper:#ede6dd;
  --lv-ink:#362832;
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  color:var(--lv-ink);
  background:#fbf9f7;
  overflow:hidden!important;
  z-index:2147483647!important;
  box-sizing:border-box;
}
.jf-lv-dialog:not([open]){display:none!important}
.jf-lv-dialog[open]{display:block!important}
.jf-lv-dialog::backdrop{background:rgba(18,13,19,.82)}
.jf-lv-dialog *{box-sizing:border-box}
.jf-lv-layout{display:flex;flex-direction:column;width:100%;height:100dvh;min-height:0;overflow:hidden;font:400 14px/1.48 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:normal;text-transform:none}
.jf-lv-dialog button,.jf-lv-dialog select,.jf-lv-dialog input{font:inherit;line-height:1.35;letter-spacing:normal;text-transform:none}
.jf-lv-dialog button{cursor:pointer;touch-action:manipulation}
.jf-lv-dialog button:disabled{cursor:not-allowed;opacity:.4}
.jf-lv-dialog :focus-visible{outline:3px solid #bb8397!important;outline-offset:2px}
.jf-lv-header{display:flex;flex:0 0 auto;align-items:center;gap:16px;padding:10px clamp(12px,3vw,28px);background:#fff;border-bottom:1px solid #e7dce1;min-height:66px;color:var(--lv-ink)}
.jf-lv-back{white-space:nowrap;border:1px solid #e6d8dc;border-radius:10px;background:#fff;color:var(--lv-wine);padding:11px 14px;font-weight:650!important}
.jf-lv-title-wrap{min-width:0;flex:1;display:grid;gap:2px;text-align:center}
.jf-lv-kicker{color:var(--lv-mauve);font:700 10px/1.5 system-ui,sans-serif;letter-spacing:.13em}
.jf-lv-title-wrap strong{font:500 clamp(15px,1.9vw,21px)/1.3 Georgia,"Times New Roman",serif;overflow-wrap:break-word;max-height:3em;overflow:hidden}
.jf-lv-focus{border:1px solid #e6d8dc;color:var(--lv-wine);border-radius:10px;background:#fff;font-weight:650!important;padding:10px 14px;white-space:nowrap}
.jf-lv-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;background:#f5f0ed;border-bottom:1px solid #e6dadd;padding:9px clamp(12px,3vw,28px);flex-shrink:0;color:#43313c}
.jf-lv-pages,.jf-lv-display-controls{display:flex;align-items:center;gap:9px;min-height:40px}
.jf-lv-toolbar button{border:1px solid #d9c6ce;min-width:42px;min-height:42px;border-radius:9px;background:#fff;color:var(--lv-wine);padding:8px 10px;font-size:18px;font-weight:650}
.jf-lv-page-label{display:flex;gap:8px;align-items:center;white-space:nowrap;font-size:13px;font-weight:600}
.jf-lv-page-label input{width:58px;height:42px;text-align:center;border:1px solid #d9c6ce;border-radius:9px;background:#fff;color:#281a24;font-weight:600}
.jf-lv-page-label input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.jf-lv-page-label input[type=number]{appearance:textfield;-moz-appearance:textfield}
.jf-lv-display-controls{margin-left:auto}
.jf-lv-scale{min-width:65px;text-align:center;font-size:13px;font-weight:650}
.jf-lv-mode-label,.jf-lv-theme-label{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;white-space:nowrap}
.jf-lv-toolbar select{max-width:170px;border-radius:8px;border:1px solid #d9c6ce;min-height:42px;padding:7px 9px;background:#fff;color:#281a24}
.jf-lv-progress{height:3px;background:#eadde2;flex:0 0 auto}
.jf-lv-progress>span{display:block;height:100%;width:0;background:var(--lv-wine);transition:width .18s linear}
.jf-lv-status{margin:0!important;padding:7px 18px!important;min-height:31px;background:#fbf9f7;border-bottom:1px solid #ede5e4;color:#68575e;font-size:12px!important;line-height:1.4!important;flex:0 0 auto;text-align:center}
.jf-lv-scroll{flex:1;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;display:block;padding:14px;scrollbar-gutter:stable;background:var(--lv-paper);text-align:center}
.jf-lv-dialog[data-paper=sepia]{--lv-paper:#d8cbb7}
.jf-lv-dialog[data-paper=dark]{--lv-paper:#29212c}
.jf-lv-paper{margin:0 auto;box-shadow:0 7px 26px rgba(24,17,24,.19);background:white;min-height:0;max-width:none;display:block;line-height:0;position:relative}
.jf-lv-paper[hidden]{display:none!important}
.jf-lv-paper canvas{display:block;background:#fff;image-rendering:auto;max-width:none!important;max-height:none!important;margin:0!important;border:0!important}
.jf-lv-empty{max-width:560px;margin:clamp(20px,7vh,80px) auto;background:#fff;border:1px solid #e0ced5;padding:clamp(18px,4vw,32px);border-radius:12px;text-align:center}
.jf-lv-empty[hidden]{display:none!important}
.jf-lv-empty a{display:inline-block;margin-top:12px;background:var(--lv-wine);color:#fff!important;text-decoration:none;padding:12px 18px;border-radius:9px;font-weight:650}
.jf-lv-footer{flex:0 0 auto;min-height:53px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px clamp(12px,3vw,28px) max(7px,env(safe-area-inset-bottom));color:#6b5a61;background:#fff;border-top:1px solid #e9dde2;font-size:12px}
.jf-lv-footer>div{display:flex;align-items:center;gap:9px}
.jf-lv-footer a{color:var(--lv-wine)!important;font-weight:650;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.jf-lv-footer button{border:0;border-radius:8px;background:var(--lv-wine);color:#fff;padding:11px 14px;font-weight:650!important;white-space:nowrap}
.jf-lv-dialog[data-focus=true] .jf-lv-toolbar,.jf-lv-dialog[data-focus=true] .jf-lv-footer,.jf-lv-dialog[data-focus=true] .jf-lv-status{display:none!important}
.jf-lv-dialog[data-focus=true] .jf-lv-header{min-height:50px;padding-block:4px}
.jf-lv-dialog[data-focus=true] .jf-lv-title-wrap .jf-lv-kicker{display:none}
.jf-lv-dialog[data-focus=true] .jf-lv-scroll{padding:8px}
@media(max-width:800px){
 .jf-lv-header{gap:8px;min-height:55px;padding:7px 10px}
 .jf-lv-back,.jf-lv-focus{padding:10px 8px;font-size:12px!important}
 .jf-lv-title-wrap strong{font-size:14px;max-height:2.7em}
 .jf-lv-kicker{font-size:9px}
 .jf-lv-toolbar{display:grid;grid-template-columns:1fr;gap:6px;padding:6px 10px}
 .jf-lv-pages{justify-content:center;min-height:38px;gap:11px}
 .jf-lv-toolbar button{min-height:38px;min-width:40px}
 .jf-lv-page-label input{height:38px;width:53px}
 .jf-lv-display-controls{margin:0;justify-content:space-evenly;gap:5px;min-height:36px}
 .jf-lv-mode-label,.jf-lv-theme-label{gap:3px;font-size:0}
 .jf-lv-toolbar select{font-size:11px;min-height:38px;padding:6px 6px;max-width:123px}
 .jf-lv-scale{font-size:11px;min-width:53px}
 .jf-lv-status{padding:5px 8px!important;font-size:11px!important;min-height:25px}
 .jf-lv-scroll{padding:7px;scrollbar-gutter:auto}
 .jf-lv-footer{padding:5px 10px max(6px,env(safe-area-inset-bottom));min-height:45px}
 .jf-lv-footer>span{display:none}
 .jf-lv-footer>div{width:100%;justify-content:space-between}
 .jf-lv-footer button{min-height:38px}
}
@media(max-width:380px){
 .jf-lv-display-controls{flex-wrap:wrap;gap:4px}
 .jf-lv-mode-label select{max-width:115px}
 .jf-lv-theme-label select{max-width:94px}
 .jf-lv-title-wrap strong{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.jf-lv-dialog *{scroll-behavior:auto!important;transition:none!important}}
