/* v2.3.5 compact storefront: scoped to eBook Store components */
body.esm-header-layout .esm-topbar-inner{min-height:60px;padding-block:7px}
body.esm-header-layout .esm-topbrand{font-size:16px}
body.esm-header-layout .esm-topbrand-icon{width:34px;height:34px;font-size:19px}
body.esm-header-layout .esm-top-links a{font-size:12px;padding:8px 9px}
body.esm-header-layout :is(.esm-home,.esm-community,.esm-market,.esm-checkout,.esm-seller-app){font-size:14px;line-height:1.5}
body.esm-header-layout :is(.esm-community,.esm-market,.esm-checkout){max-width:1080px}
body.esm-header-layout .esm-community{padding:clamp(15px,2.5vw,24px);margin-block:16px;border-radius:14px}
body.esm-header-layout .esm-community h2{font-size:clamp(20px,2.4vw,26px);line-height:1.25;margin:0 0 16px}
body.esm-header-layout .esm-community h3{font-size:14px;line-height:1.4}
body.esm-header-layout :is(.esm-home .esm-grid,.esm-market-grid,.esm-community-grid){gap:14px!important}
body.esm-header-layout .esm-home .esm-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,205px),1fr))!important}
body.esm-header-layout :is(.esm-home .esm-card,.esm-market-card,.esm-community-grid article){border-radius:12px!important;box-shadow:0 3px 14px #1d315010!important;min-width:0;overflow:hidden}
body.esm-header-layout .esm-home .esm-grid .esm-card .esm-cover{height:190px!important;max-height:190px!important;padding:10px!important}
body.esm-header-layout .esm-home .esm-card .esm-card-body{padding:12px!important}
body.esm-header-layout :is(.esm-home .esm-card h3,.esm-market-card h3,.esm-community-grid article h3){font-size:13px!important;line-height:1.4!important;overflow-wrap:anywhere;margin:8px 0!important}
body.esm-header-layout .esm-purchase-actions{gap:6px;margin:9px 0 2px}
body.esm-header-layout .esm-purchase-actions :is(a,button){min-height:34px!important;padding:7px 5px!important;border-radius:7px!important;font-size:11px!important;line-height:1.25!important}
body.esm-header-layout .esm-community-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,185px),1fr))!important}
body.esm-header-layout .esm-community-grid article{padding:11px!important;background:#fff}
body.esm-header-layout .esm-community-grid article img{height:150px!important;object-fit:contain;width:100%}
body.esm-header-layout .esm-community :is(input:not([type=checkbox]),select,textarea){font-size:13px;padding:9px 11px;border-radius:8px}
body.esm-header-layout .esm-community :is(button,input[type=submit]){font-size:12px;border-radius:8px}
.esm-compact-cover{display:flex;justify-content:center;align-items:center;height:160px;background:#f6f8fc;border-radius:9px;overflow:hidden}
.esm-compact-cover img{max-width:100%;max-height:155px;object-fit:contain}
.esm-compact-price{font-weight:750;color:#233d70;margin:6px 0}
.esm-cart-items{display:grid;gap:10px}
.esm-cart-item{display:flex;align-items:center;gap:14px;border:1px solid #e4e9f1;border-radius:12px;padding:12px;background:#fff}
.esm-cart-cover{width:66px;min-width:66px;height:78px;display:flex;align-items:center;justify-content:center;background:#f6f8fc;border-radius:8px}
.esm-cart-cover img{max-width:100%;max-height:74px;object-fit:contain}
.esm-cart-info{flex:1;min-width:0}.esm-cart-info h3{margin:0 0 5px!important}.esm-cart-info a{color:#172c54;text-decoration:none}
.esm-cart-remove form{margin:0}.esm-cart-remove button{background:#fff;border:1px solid #d7deeb;color:#263a5c;padding:8px 11px}
.esm-cart-summary{margin-top:15px;padding:16px;border:1px solid #e4e9f1;border-radius:12px;background:#f9fbff}
.esm-cart-summary form{max-width:480px}.esm-cart-summary form label{display:block;margin:12px 0}
.esm-empty-state{padding:24px 12px;background:#f6f8fc;border-radius:10px;text-align:center}
@media(max-width:720px){body.esm-header-layout .esm-home .esm-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.esm-header-layout .esm-home .esm-grid .esm-card .esm-cover{height:155px!important;max-height:155px!important}body.esm-header-layout .esm-community-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.esm-header-layout .esm-community{padding:14px;margin:12px auto}body.esm-header-layout .esm-purchase-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:430px){body.esm-header-layout .esm-home .esm-grid{gap:9px!important}body.esm-header-layout .esm-home .esm-card .esm-card-body{padding:9px!important}body.esm-header-layout .esm-purchase-actions :is(a,button){font-size:10px!important;padding:6px 3px!important}body.esm-header-layout .esm-community-grid{gap:9px!important}body.esm-header-layout .esm-community-grid article{padding:8px!important}.esm-cart-item{gap:9px;padding:9px}.esm-cart-cover{width:50px;min-width:50px;height:65px}.esm-cart-remove button{font-size:10px;padding:6px}}
