/* Clients.AMS 1.0.33 – responsive cart, typography, compact navigation. */
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans+Condensed:wght@400&display=swap');
html,body,body *,button,input,select,textarea,option,table,th,td,h1,h2,h3,h4,h5,h6,strong,b{font-family:"Fira Sans Condensed","Arial Narrow",Arial,sans-serif!important;font-weight:400!important}
body>header{min-height:0!important;height:52px!important;padding-top:2px!important;padding-bottom:2px!important;box-sizing:border-box!important;display:flex;align-items:center}
body>header .h-logo-top,body>header .brand{line-height:1!important}
body>header .h-logo-top img,body>header img{max-height:34px!important;width:auto!important}
body>header nav{align-items:center!important}
:root{--app-header-height:52px}
.hp-global-cart-toggle{top:7px!important;padding:3px 7px!important;min-height:34px!important}
body.book-view .book-toolbar{justify-content:center!important;gap:7px!important}
body.book-view .book-toolbar-pages{justify-content:center!important;margin-left:0!important}
body.book-view .book-toolbar .book-page-jump{margin-left:0!important}
body.book-view .book-toolbar .book-heading{display:none!important}
.client-cart-product{vertical-align:middle}
.client-cart-book{font-size:18px;color:#16364b;display:inline-block;min-width:45px;margin-right:7px}
.client-cart-details{font-size:13px;color:#3a5466}
#hpGlobalCartContent .client-order-scroll{overflow-x:hidden!important}
#hpGlobalCartContent .client-order-table{table-layout:auto;width:100%;min-width:0}
#hpGlobalCartContent .client-order-table td,#hpGlobalCartContent .client-order-table th{min-width:0}
@media(max-width:760px){
 body>header{height:52px!important;padding-top:2px!important;padding-bottom:2px!important}
 body>header .h-logo-top img,body>header img{max-height:30px!important}
 .hp-global-cart-toggle{top:7px!important}
 #hpGlobalCartContent{padding:7px!important}
 .client-order-scroll{overflow-x:hidden!important}
 .client-order-table{display:block!important;width:100%!important;border:0!important}
 .client-order-table thead{display:none!important}
 .client-order-table tbody{display:flex!important;flex-direction:column;gap:6px}
 .client-order-table tbody tr{display:grid!important;grid-template-columns:44px minmax(0,1fr) auto;grid-template-areas:"image product product" "image quantity remove";align-items:center;gap:3px 8px;width:100%;padding:8px 5px!important;box-sizing:border-box;border:1px solid #cbdde8;border-radius:7px;background:#fff}
 .client-order-table tbody tr>td{display:block!important;box-sizing:border-box;border:0!important;padding:2px!important;min-width:0!important;max-width:100%!important;overflow-wrap:anywhere!important}
 .client-order-table tbody tr>td:nth-child(1){display:none!important}
 .client-order-table tbody tr>td:nth-child(2){grid-area:image;align-self:start}
 .client-order-table tbody tr>td:nth-child(3){grid-area:product}
 .client-order-table tbody tr>td:nth-child(4){grid-area:quantity;justify-self:end}
 .client-order-table tbody tr>td:nth-child(5){grid-area:remove;justify-self:end}
 .client-order-table tbody tr>td[colspan]{grid-column:1/-1;display:block!important}
 .client-order-qty-form input[type=number]{width:68px!important;max-width:68px!important}
 .client-order-table tfoot{display:table!important;width:100%}
 .client-order-table tfoot tr{display:table-row!important}
 .client-order-table tfoot td{display:table-cell!important;padding:7px!important}
 .client-order-thumb img{max-width:42px!important;height:auto}
 body.book-view .book-toolbar{justify-content:center!important;gap:2px!important;padding:4px 2px!important}
 body.book-view .book-toolbar-pages{justify-content:center!important;flex:1 1 0!important}
 .book-page-jump input{width:39px!important}
}

/* 1.0.34: fixed heights from first paint, mobile cart and pagination refinements */
:root{--app-header-height:52px;--hp-toolbar-height:52px}
body>header{height:var(--app-header-height)!important;min-height:var(--app-header-height)!important;max-height:var(--app-header-height)!important;overflow:hidden!important}
body>header .h-logo-top{max-height:42px!important;display:flex;align-items:center;min-width:0}
body>header .h-logo-top img{height:auto!important;max-height:34px!important;max-width:170px!important;object-fit:contain!important}
.hp-global-cart-head{height:var(--app-header-height)!important;min-height:var(--app-header-height)!important;max-height:var(--app-header-height)!important;box-sizing:border-box!important;padding:0 12px!important;display:flex;align-items:center!important}
#hpGlobalCartClose{display:inline-flex;align-items:center;justify-content:center;min-width:38px;min-height:38px;color:#111!important}
#hpGlobalCartContent .client-cart-product{line-height:1.28;min-width:0}
#hpGlobalCartContent .client-cart-book{font-size:18px;margin-right:9px}
#hpGlobalCartContent .client-cart-details{display:block;font-size:14px;line-height:1.3;margin-top:5px;overflow-wrap:anywhere}
#hpGlobalCartContent .client-order-thumb img{width:64px;max-width:64px;height:64px;object-fit:contain}
#hpGlobalCartContent .client-order-qty-form input[type=number]{width:84px!important;min-width:75px!important;height:39px!important;font-size:16px!important}
#hpGlobalCartContent .client-order-remove{font-size:22px!important;min-width:38px;min-height:38px}
.client-back-top:has(a){z-index:5!important}
body.hp-cart-locked .client-back-top,body.hp-product-locked .client-back-top{display:none!important}
body.book-view .book-page-jump input{font-size:15px!important}
body.book-view .book-pager-btn{font-size:15px!important}
.book-pager-btn svg,.book-page-jump button svg{display:block;width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:760px){
 body>header .h-logo-top img{max-height:30px!important}
 #hpGlobalCartContent .client-order-table tbody tr{grid-template-columns:66px minmax(0,1fr) auto!important;grid-template-areas:"image product product" "image quantity remove"!important;column-gap:9px!important;row-gap:5px!important;padding:8px!important}
 #hpGlobalCartContent .client-order-thumb img{width:61px!important;max-width:61px!important;height:62px!important}
 #hpGlobalCartContent .client-order-table tbody tr>td:nth-child(4){justify-self:end!important}
 #hpGlobalCartContent .client-order-table tbody tr>td:nth-child(5){justify-self:end!important}
 #hpGlobalCartContent .client-cart-book{font-size:19px}
 #hpGlobalCartContent .client-cart-details{font-size:14px}
 body.book-view .book-pager-btn{min-width:36px!important;width:36px!important;height:36px!important;padding:0!important;font-size:15px!important}
 body.book-view .book-toolbar-pages{gap:3px!important;justify-content:center!important;flex:0 1 auto!important}
 body.book-view .book-page-jump input{height:36px!important;font-size:14px!important}
 body.book-view .book-page-jump button{height:36px!important;min-width:36px!important}
}
