/* Reader book information only: do not affect the website or EPUB viewport. */
body.fbp [data-reader-dialog].fbp-reader-book-details-open .fbp-reader-modal{display:flex!important;flex-direction:column!important;height:100%!important;max-height:100%!important;min-height:0!important;overflow:hidden!important}
body.fbp [data-reader-dialog].fbp-reader-book-details-open :is(.fbp-reader-topbar,.fbp-reader-app-nav,.fbp-reader-app-notice){flex:0 0 auto!important}
body.fbp [data-reader-dialog].fbp-reader-book-details-open [data-reader-library-view]:not([hidden]){display:block!important;flex:1 1 0!important;height:0!important;min-height:0!important;max-height:100%!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}
body.fbp [data-reader-dialog].fbp-reader-book-details-open [data-reader-library-content]{height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;padding-bottom:24px}
body.fbp [data-reader-dialog] .fbp-reader-book-detail .fbp-reader-detail-hero :is(h2,.fbp-reader-detail-subtitle,.fbp-reader-detail-author,.fbp-reader-detail-series,.fbp-reader-detail-rating,.fbp-reader-detail-meta){color:var(--detail-ink,#fff)!important}
body.fbp [data-reader-dialog] .fbp-reader-book-detail .fbp-reader-detail-hero .fbp-reader-purchase-card>.fbp-library-status-bar{background:#eaf4ff!important;color:#173a59!important;border-color:#cbdff4!important;width:100%!important;flex:0 0 100%!important}
body.fbp [data-reader-dialog] .fbp-reader-book-detail .fbp-reader-detail-hero .fbp-reader-purchase-card>.fbp-library-status-bar *{color:#173a59!important}
body.fbp [data-reader-dialog] .fbp-reader-book-detail .fbp-reader-purchase-card{align-items:flex-start!important;align-content:flex-start!important}
body.fbp [data-reader-dialog] .fbp-reader-book-detail .fbp-reader-purchase-card .fbp-reading-actions{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;flex-wrap:wrap!important;width:auto!important;max-width:100%!important}
body.fbp [data-reader-dialog] .fbp-reader-book-detail .fbp-reader-purchase-card :is(.fbp-reader-btn,.button,[data-reader-wishlist],[data-fbp-read-online],.fbp-library-save){flex:0 1 auto!important;width:auto!important;max-width:100%!important;min-width:0!important;min-height:44px!important;height:auto!important;align-self:flex-start!important;padding:10px 16px!important;white-space:normal!important;line-height:1.4!important;margin:0!important;text-align:center!important}
body.fbp [data-reader-dialog] .fbp-reader-book-detail .fbp-reader-purchase-card [data-reader-wishlist]{background:#f3f6f0!important;color:#24382f!important;border:1px solid #d6ded1!important}
body.fbp [data-reader-dialog] .fbp-reader-book-detail .fbp-reader-purchase-card form{align-self:flex-start!important;min-width:0;max-width:100%}
body.fbp [data-reader-dialog] .fbp-reader-book-detail .fbp-reader-purchase-card form>div{align-items:center!important;grid-template-columns:repeat(2,max-content)!important}
@media(max-width:600px){body.fbp [data-reader-dialog] .fbp-reader-book-detail .fbp-reader-purchase-card form>div{display:flex!important;flex-wrap:wrap!important}body.fbp [data-reader-dialog] .fbp-reader-book-detail .fbp-reader-purchase-card :is(.fbp-reader-btn,.button,[data-reader-wishlist]){padding:10px 12px!important;font-size:13px!important}}

/* Scroll every library screen without changing the EPUB reading viewport. */
body.fbp [data-reader-dialog].fbp-reader-library-scroll-open .fbp-reader-modal{display:flex!important;flex-direction:column!important;height:100%!important;max-height:100%!important;min-height:0!important;overflow:hidden!important}
body.fbp [data-reader-dialog].fbp-reader-library-scroll-open :is(.fbp-reader-topbar,.fbp-reader-app-nav,.fbp-reader-app-notice){flex:0 0 auto!important}
body.fbp [data-reader-dialog].fbp-reader-library-scroll-open [data-reader-library-view]:not([hidden]){display:block!important;flex:1 1 0!important;height:0!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}
body.fbp [data-reader-dialog].fbp-reader-library-scroll-open [data-reader-library-content]{height:auto!important;max-height:none!important;overflow:visible!important;padding-bottom:24px}
