/* [pdf_viewer] – prohlížeč PDF (PDF.js). Viz shortcodes/pdf_viewer.php */
.mbpdf { position: relative; display: flex; flex-direction: column; height: var(--mbpdf-h, 85vh); min-height: 320px; background: #525659; border-radius: 12px; overflow: hidden; font-family: inherit; color: #fff; }
.mbpdf.is-full { position: fixed; inset: 0; z-index: 999999; height: 100% !important; border-radius: 0; }
html.mbpdf-lock, html.mbpdf-lock body { overflow: hidden !important; }

.mbpdf-bar { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #323639; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); z-index: 2; flex-wrap: wrap; }
.mbpdf .mbpdf-btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 8px; cursor: pointer; color: #fff; font-size: 14px; line-height: 1; text-decoration: none; background: rgba(255, 255, 255, .08); transition: background .15s; -webkit-tap-highlight-color: transparent; }
.mbpdf .mbpdf-btn:hover { background: rgba(255, 255, 255, .2); }
.mbpdf .mbpdf-btn:focus-visible { outline: 2px solid #e6b04a; outline-offset: 2px; }
.mbpdf .mbpdf-btn[disabled] { opacity: .4; cursor: default; }
.mbpdf-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mbpdf-pg { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; white-space: nowrap; }
.mbpdf .mbpdf-in { all: unset; box-sizing: border-box; width: 64px; height: 38px; padding: 0 6px; text-align: center; border-radius: 8px; background: #fff; color: #222; font-size: 14px; -moz-appearance: textfield; }
.mbpdf .mbpdf-in:focus-visible { outline: 2px solid #e6b04a; }
.mbpdf-sp { flex: 1 1 auto; }
.mbpdf-lbl { font-size: 13px; }
.mbpdf-zoom { min-width: 44px; text-align: center; font-size: 13px; opacity: .85; }

.mbpdf-scroll { position: relative; flex: 1 1 auto; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; padding: 12px 0 24px; }
.mbpdf-pages { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: min-content; }
.mbpdf-page { position: relative; flex: 0 0 auto; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.mbpdf-page canvas { display: block; width: 100%; height: 100%; }
.mbpdf-page::after { content: attr(data-n); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #c9c9c9; pointer-events: none; z-index: 0; }
.mbpdf-page.has-canvas::after { display: none; }

.mbpdf-status { position: absolute; left: 0; right: 0; top: 64px; margin: 0 auto; width: max-content; max-width: 90%; padding: 10px 16px; border-radius: 999px; background: rgba(0, 0, 0, .7); font-size: 14px; z-index: 3; text-align: center; }
.mbpdf-status a { color: #ffd98a; }
.mbpdf-status[hidden] { display: none; }

@media (max-width: 575.98px) {
    .mbpdf { border-radius: 0; }
    .mbpdf-bar { gap: 4px; padding: 6px; }
    .mbpdf .mbpdf-btn { min-width: 36px; height: 36px; padding: 0 8px; }
    .mbpdf-lbl { display: none; }
    .mbpdf-zoom { display: none; }
}
