/* Scoped to the standalone document. No underlying storefront is rendered. */
html.fwr-reader-document,html.fwr-reader-document body.fwr-reader-page{margin:0!important;padding:0!important;width:100%;height:100%;overflow:hidden;overscroll-behavior:none;background:#fff}
body.fbp.fwr-reader-page .fwr-page-frame{display:flex;flex-direction:column;height:100vh;height:var(--fwr-viewport-height,100dvh);width:100%;box-sizing:border-box;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);overflow:hidden}
body.fbp.fwr-reader-page .fwr-page-content{flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior:contain;margin:0;padding:0;width:100%;max-width:none}
body.fbp.fwr-reader-page .fbp-epub-reader{height:100%;min-height:0;margin:0;padding:0}
body.fbp.fwr-reader-page .fbp-reader-launcher{display:none!important}
body.fbp.fwr-reader-page .fwr-page-reader{display:block;position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;height:100%!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden}
body.fbp.fwr-reader-page .fwr-page-reader .fbp-reader-modal{height:100%!important;max-height:100%!important;min-height:0;overflow:hidden}
body.fbp.fwr-reader-page .fbp-reader-layout,body.fbp.fwr-reader-page .fbp-reader-main{min-height:0;max-height:100%;overflow:hidden}
body.fbp.fwr-reader-page .fbp-reader-viewport{min-height:0;overscroll-behavior:contain}
body.fbp.fwr-reader-page .fbp-reader-cover-screen{max-height:100%;overflow:auto;overscroll-behavior:contain}
body.fbp.fwr-reader-page [data-reader-library-view],body.fbp.fwr-reader-page [data-reader-settings],body.fbp.fwr-reader-page [data-reader-contents]{overscroll-behavior:contain}
body.fbp.fwr-reader-page [data-reader-fullscreen],body.fbp.fwr-reader-page [data-reader-close],body.fbp.fwr-reader-page .fwi-app-nav,body.fbp.fwr-reader-page [data-fwi-container],body.fbp.fwr-reader-page [data-fwi-install],body.fbp.fwr-reader-page #wpadminbar{display:none!important}
body.fbp.fwr-reader-page .fwr-page-content>.fbp-library-notice,body.fbp.fwr-reader-page .fwr-page-content>p{margin:24px}

body.fbp.fwr-reader-page .fbp-mobile-shell,body.fbp.fwr-reader-page .fbp-floating-cart{display:none!important}

body.fbp.fwr-reader-page .fwr-page-heading{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.fbp.fwr-reader-page [data-reader-focus-exit]:not([hidden]){position:absolute;left:8px;top:8px;z-index:30;transform:translateY(-200%)}
body.fbp.fwr-reader-page [data-reader-focus-exit]:focus{transform:none;opacity:1}
body.fbp.fwr-reader-page .fbp-reader-reading .fbp-reader-topbar{padding:6px 10px!important;gap:4px!important}
body.fbp.fwr-reader-page .fbp-reader-reading .fbp-reader-brand h2{font-size:14px!important;line-height:1.3!important}
/* The hub is the same Reader app in its own document, with one compact title. */
body.fbp.fwr-reader-page .fbp-reader-library-open .fbp-reader-modal{display:flex!important;flex-direction:column!important;min-height:0;overflow:hidden}
body.fbp.fwr-reader-page .fbp-reader-library-open .fbp-reader-topbar{flex:0 0 auto;min-height:0!important;padding:8px 12px!important;gap:8px!important}
body.fbp.fwr-reader-page .fbp-reader-library-open .fbp-reader-brand h2{font:600 18px/1.3 Arial,sans-serif!important}
body.fbp.fwr-reader-page .fbp-reader-library-open .fbp-reader-brand p{display:none!important}
body.fbp.fwr-reader-page .fbp-reader-library-open .fbp-reader-library-logo img{width:32px!important;height:32px!important}
body.fbp.fwr-reader-page .fbp-reader-library-open .fbp-reader-app-nav{flex:0 0 auto;display:flex;flex-wrap:nowrap!important;overflow-x:auto;overscroll-behavior-x:contain;gap:4px!important;padding:6px 8px!important;margin:0!important;min-height:48px;scrollbar-width:thin}
body.fbp.fwr-reader-page .fbp-reader-library-open .fbp-reader-app-nav>button{flex:0 0 auto;min-height:44px!important;padding:8px 10px!important;font:600 14px/1.3 Arial,sans-serif!important;white-space:nowrap}
body.fbp.fwr-reader-page [data-reader-library-view]:not([hidden]){flex:1 1 0!important;height:0!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:12px!important}
body.fbp.fwr-reader-page [data-reader-library-content]>.fbp-reader-library-heading{margin:0 0 12px!important;padding:0!important}
body.fbp.fwr-reader-page [data-reader-library-content]>.fbp-reader-library-heading h2{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;margin:-1px!important;padding:0!important}
body.fbp.fwr-reader-page [data-reader-library-content]>.fbp-reader-library-heading p{font:14px/1.45 Arial,sans-serif!important;margin:0!important}
body.fbp.fwr-reader-page .fw-library-top{margin-top:8px!important}

/* Introductory subtitles are removed; hidden duplicate headings consume no space. */
body.fbp.fwr-reader-page [data-reader-library-content]>.fbp-reader-library-heading{margin:0!important;padding:0!important;height:0!important;min-height:0!important}

/* One hub exit: the existing top-right X now leaves this standalone document. */
body.fbp.fwr-reader-page.fwr-reader-hub-page [data-reader-close]:not([hidden]),
body.fbp.fwr-reader-page .fbp-reader-library-open [data-reader-close]:not([hidden]){display:inline-flex!important;min-width:44px!important;min-height:44px!important}
body.fbp.fwr-reader-page .fwr-page-exit{display:flex;justify-content:flex-end;flex:0 0 auto;padding:4px 12px}
body.fbp.fwr-reader-page .fwr-page-exit a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;font:28px/1 Arial,sans-serif;text-decoration:none;color:inherit}
