.sample-frame{position:relative!important}.sample-frame iframe{display:block;width:100%;height:430px;border:0;background:white}.sample-prev,.sample-next{position:absolute;top:50%;z-index:4;border:0;border-radius:50%;background:#111;color:#fff;width:34px;height:34px;cursor:pointer}.sample-prev{left:4px}.sample-next{right:4px}.sample-prev:disabled,.sample-next:disabled{opacity:.3}.sample-label{display:block;text-align:center;font-size:12px;color:inherit}.edition-gifts{padding:12px 0}.edition-gifts a{display:flex;gap:8px;align-items:center;margin:8px 0;color:inherit}.edition-gifts img{width:42px;height:58px;object-fit:contain}.edition-gifts b{color:#17994d}.coupon-dialog{background:#fff;color:#17201c;max-width:420px;width:90%;padding:28px;border:0;border-radius:14px}.coupon-dialog::backdrop{background:#0009}.coupon-dialog input{display:block;width:100%;padding:12px;margin:10px 0}.coupon-dialog button{padding:12px;border:0;cursor:pointer}.coupon-pay{background:#176f41;color:#fff}.coupon-error{color:#b32121}#extra-editions fieldset,#extra-bundle,#extra-coupons{margin:20px 0;padding:16px;border:1px solid #46546b}#extra-editions label,#extra-bundle label{display:block;margin:10px 0}#extra-editions input:not([type=checkbox]),#extra-editions textarea,#extra-bundle input:not([type=checkbox]),#extra-coupons textarea{display:block;width:100%;padding:10px}#extra-editions textarea,#extra-coupons textarea{min-height:100px}
/* Mobile storefront and edition controls */
html{ -webkit-text-size-adjust:100%;text-size-adjust:100% }
body{overflow-wrap:break-word}
img,iframe{max-width:100%}
.language-picker{max-width:100%;flex-wrap:wrap;justify-content:center;border-radius:16px;box-sizing:border-box}
.language-picker button{min-height:44px;white-space:normal}
.sample-prev,.sample-next{width:44px;height:44px;font-size:20px;touch-action:manipulation}
.sample-frame.is-reading{height:auto!important;overflow:visible!important;transform:none!important;aspect-ratio:auto!important}
.sample-frame.is-reading iframe{height:520px}
.sample-open{display:block;font-size:14px;line-height:1.5;text-align:center;padding:10px;min-height:44px;box-sizing:border-box;color:inherit}
.coupon-dialog{box-sizing:border-box;width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow-y:auto}
.coupon-dialog input{box-sizing:border-box;font-size:16px}
.coupon-dialog button{min-height:44px;border-radius:8px}
.edition-gifts span{min-width:0;overflow-wrap:anywhere}
:where(button,a,input,textarea,select):focus-visible{outline:3px solid #22ba80;outline-offset:3px}
@media(max-width:760px){
 .books-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .book-card,.book-info,.product-info,.bundle-card{min-width:0}
 .book-info h3{font-size:17px!important;line-height:1.35!important}
 .book-info p{font-size:14px!important;line-height:1.5!important}
 .book-info .language-picker{display:flex;width:100%;padding:4px;gap:3px}
 .book-info .language-picker button{padding:8px;font-size:13px;flex:1 1 auto}
 .product-panel{grid-template-columns:minmax(0,1fr)!important;gap:24px!important}
 .product-cover{position:static!important;margin:0 auto;width:100%;max-width:360px!important}
 .product-info .subtitle,.product-desc,.benefit-list,.language-note{font-size:16px;line-height:1.65}
 #episode-language-chapter-list{grid-template-columns:minmax(0,1fr)!important;font-size:16px}
 .card-action,.bundle-cta,.btn-gold{min-height:46px;font-size:15px!important;white-space:normal}

 .sample-frame.is-reading iframe{height:440px}
 .edition-gifts a{font-size:14px;line-height:1.45;min-height:48px}
 
 body{padding-bottom:86px}
 .coupon-dialog{padding:22px}
 #extra-editions input:not([type=checkbox]),#extra-editions textarea,#extra-bundle input:not([type=checkbox]),#extra-coupons textarea{box-sizing:border-box;font-size:16px}
}
@media(max-width:480px){
 .books-grid{grid-template-columns:minmax(0,1fr)!important;gap:20px!important}
 .book-card .cover-wrap{height:auto!important;min-height:260px;display:block!important;padding:14px 12px 8px!important;box-sizing:border-box}
 .book-card .cover-wrap>img{display:block;width:auto!important;max-width:100%!important;height:280px!important;object-fit:contain!important;margin:auto}
 .book-info{padding:16px!important}
 .book-info h3{font-size:19px!important}
 .book-info .price{font-size:24px!important}
 .sample-frame.is-reading iframe{height:460px}
 .sample-label{padding:6px 0;font-size:14px}
 .hero h1{font-size:clamp(28px,8vw,38px)!important;line-height:1.15!important}
 .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .cat strong{font-size:13px!important}.cat small{font-size:11px!important}
 .bundle-modal-dialog{width:100%;box-sizing:border-box}
 .coupon-dialog .coupon-pay{width:100%;margin-top:10px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation:none!important;transition:none!important}}
/* Compact storefront language selector and separate admin edition tabs */
.language-picker,.book-info .language-picker{display:inline-flex!important;flex-wrap:nowrap!important;align-items:center;gap:3px!important;width:auto!important;max-width:100%;padding:3px!important;border-radius:9px!important}
.language-picker button,.book-info .language-picker button{flex:0 1 auto!important;min-height:32px!important;padding:6px 10px!important;font-size:12px!important;line-height:1.2;white-space:nowrap!important;border-radius:6px!important}
.admin-edition-tabs{display:flex;gap:6px;margin:20px 0 0;padding:6px;background:#101c2c;border:1px solid #33445c;border-radius:12px}
.admin-edition-tabs button{flex:1;border:0;border-radius:8px;padding:12px;background:transparent;color:#aebfd3;font-weight:600;font-size:14px;cursor:pointer}
.admin-edition-tabs button.active{background:#287054;color:white}.admin-edition-panel{padding:20px;margin-bottom:22px;background:#142032;border:1px solid #33445c;border-radius:12px}.admin-edition-panel[hidden]{display:none!important}
.edition-upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}.extra-lang-fields{border:0!important;margin:0!important;padding:0!important;min-width:0}.extra-lang-fields legend{font-size:16px;margin-bottom:16px}.extra-lang-fields label{display:block;margin:14px 0}.extra-lang-fields input:not([type=checkbox]),.extra-lang-fields textarea{display:block;box-sizing:border-box;width:100%;padding:12px}.extra-lang-fields textarea{min-height:120px}
.bundle-free-toggle{display:flex!important;align-items:center;gap:10px;padding:15px;margin:20px 0 0!important;border:1px solid #33445c;border-radius:10px;font-weight:600}#extra-free-bundle[hidden]{display:none!important}#extra-free-bundle{max-height:400px;overflow-y:auto;padding:16px;margin-top:12px}#extra-free-bundle label{display:flex;gap:10px;padding:8px 0}
@media(max-width:600px){.admin-edition-panel{padding:14px}.edition-upload-grid{grid-template-columns:minmax(0,1fr)}.admin-edition-tabs button{padding:10px 6px;font-size:13px}.language-picker button,.book-info .language-picker button{padding:6px 8px!important;font-size:11px!important}}
#shared-bundle-offer{margin:22px 0;padding:20px;border:1px solid #33445c;border-radius:12px;background:#142032}
.bundle-language-extra label{display:block;margin:12px 0}.bundle-language-extra input,.bundle-language-extra textarea{display:block;box-sizing:border-box;width:100%;padding:12px}.bundle-language-extra textarea{min-height:100px}
#extra-bundle{border:0;margin:0;padding:0;min-width:0}#extra-bundle input:not([type=checkbox]){box-sizing:border-box}
/* Keep all three edition choices inside the available width. */
.language-picker,.book-info .language-picker{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:min(100%,240px)!important;max-width:100%!important;min-width:0!important;gap:2px!important;padding:3px!important;box-sizing:border-box!important}
.language-picker button,.book-info .language-picker button{width:100%!important;max-width:100%!important;min-width:0!important;padding:7px 2px!important;margin:0!important;box-sizing:border-box!important;font-size:11px!important;line-height:1.25!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;letter-spacing:0!important}
.language-picker.single{grid-template-columns:minmax(0,1fr)!important;width:auto!important}
.admin-edition-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;box-sizing:border-box;width:100%;max-width:100%;min-width:0;gap:4px;padding:4px}
.admin-edition-tabs button{min-width:0!important;width:100%;box-sizing:border-box;padding:10px 2px!important;white-space:nowrap;font-size:12px!important}
.product-buy,.book-info,.bundle-info,.bundle-copy,.admin-edition-panel,.editor{min-width:0;box-sizing:border-box}
@media(max-width:360px){.language-picker button,.book-info .language-picker button{font-size:10px!important;padding:7px 1px!important}}
/* Two ebooks per row on phones. */
@media(max-width:760px){
 .books-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 .book-card .cover-wrap{min-height:0!important;height:210px!important;padding:8px 5px!important;box-sizing:border-box}
 .book-card .cover-wrap>img{width:100%!important;height:100%!important;max-width:100%!important;object-fit:contain!important;margin:0!important}
 .book-info{padding:10px!important}
 .book-info h3{font-size:14px!important;line-height:1.35!important}
 .book-info p{font-size:12px!important;line-height:1.45!important}
 .book-info .price{font-size:20px!important;flex-wrap:wrap}
 .book-info .price del{font-size:12px!important}
 .book-info .card-action{font-size:12px!important;padding:9px 4px!important;min-height:42px}

 .book-info .language-picker{width:100%!important;margin-bottom:8px}
 .book-info .language-picker button{font-size:10px!important;padding:7px 1px!important;min-height:30px!important}
}
@media(max-width:360px){.book-card .cover-wrap{height:185px!important}.book-info h3{font-size:13px!important}.book-info .language-picker button{font-size:9px!important}}

/* Compact free ebook controls, isolated from full-width form inputs. */
#shared-free-options{margin-top:18px}
#shared-free-options .bundle-free-toggle{display:flex!important;align-items:center;gap:12px;padding:16px!important;margin:0!important;background:#0c1828;border:1px solid #33445c;cursor:pointer}
#shared-free-options input[type=checkbox]{appearance:auto!important;display:block!important;width:18px!important;height:18px!important;min-width:18px!important;flex:0 0 18px!important;padding:0!important;margin:0!important;accent-color:#40c890;cursor:pointer}
.bundle-free-toggle span{min-width:0}.bundle-free-toggle strong{display:block;font-size:14px;color:#f6f0e7}.bundle-free-toggle small{display:block;margin-top:5px;font-size:12px;line-height:1.5;font-weight:400;color:#9ba8ba}
#shared-free-options #extra-free-bundle{border:1px solid #33445c;border-radius:12px;padding:14px;margin:14px 0 0;max-height:420px;background:#0c1828}
#extra-free-bundle legend{padding:0 8px;font-size:13px;font-weight:600;color:#dbe3ef}
.free-picker-help{margin:0 0 12px!important;font-size:12px!important;color:#9ba8ba;line-height:1.5}
#shared-free-options #extra-free-bundle label{display:flex!important;align-items:center;gap:12px;margin:0 0 8px!important;padding:12px!important;border:1px solid #283b52;border-radius:9px;background:#101f32;cursor:pointer}
#shared-free-options #extra-free-bundle label:last-child{margin-bottom:0!important}
#extra-free-bundle .free-book-title{min-width:0;font-size:13px;line-height:1.5;font-weight:500;overflow-wrap:anywhere}
#shared-free-options label:has(input:checked){border-color:#40c890!important;background:#122c2a!important}

.bundle-bonus-cover{cursor:pointer}.bundle-bonus-count small{font-size:10px!important;line-height:1.3;display:block}.bundle-bonus-cover:focus-visible{outline:3px solid #40c890;outline-offset:5px;border-radius:12px}

.bundle-view-free{display:block;margin:8px 0 14px;padding:10px 14px;border:1px solid #40c890;border-radius:9px;background:#122c2a;color:#a9f5d0;font:inherit;font-size:13px;cursor:pointer}.bundle-view-books{display:block}

/* Keep bonus label fully inside its circle on every screen. */
.has-offer-image .bundle-bonus-count{width:68px!important;height:68px!important;min-width:68px;box-sizing:border-box;padding:6px!important;gap:2px!important;text-align:center;line-height:1!important;overflow:hidden}
.bundle-bonus-count b{display:block;font-size:22px;line-height:1}
.bundle-bonus-count small{display:block!important;width:100%;font-size:8px!important;letter-spacing:.3px!important;line-height:1.15!important;margin:0!important;white-space:normal}
.bundle-view-free{display:block!important;margin-top:8px!important}

/* Two complete language labels, including narrow ebook cards. */
.language-picker,.book-info .language-picker{grid-template-columns:minmax(0,1fr) minmax(0,1.6fr)!important;width:min(100%,280px)!important}
.language-picker button,.book-info .language-picker button{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;min-height:40px!important;padding:8px 6px!important;font-size:12px!important}
.has-free-count .bundle-bonus-count{width:clamp(80px,9vw,112px);height:clamp(80px,9vw,112px);font-size:36px;cursor:pointer;line-height:1.1;box-shadow:0 0 24px rgba(25,226,140,.18)}
.has-free-count .bundle-bonus-count small{font-size:10px;line-height:1.3;text-align:center;letter-spacing:.4px}
.has-free-count .bundle-offer-plus{padding-bottom:0}
.has-free-count .bundle-bonus-cover{padding:8px 0;cursor:pointer}
.has-free-count .bundle-bonus-cover:focus-visible{outline:3px solid #fff;outline-offset:5px;border-radius:50%}
