/* v2.3.6: consistent sizing across theme and plugin store pages */
body.esm-header-layout .esm-search-page .esm-search-form{display:grid;grid-template-columns:minmax(180px,2fr) repeat(2,minmax(95px,1fr)) auto;gap:12px;align-items:end;margin:0 0 22px}
body.esm-header-layout .esm-search-form label{display:grid;gap:5px;margin:0;font-size:12px;color:#41516d}
body.esm-header-layout .esm-search-form input{width:100%;min-width:0;box-sizing:border-box;margin:0}
body.esm-header-layout .esm-search-form button{min-height:40px;padding:9px 18px;background:#263b77;color:#fff;border:0}
body.esm-header-layout .esm-community-grid.esm-search-results,body.esm-header-layout .esm-wishlist-page .esm-community-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr))!important;gap:16px!important;align-items:stretch}
body.esm-header-layout .esm-community-grid .esm-compact-book{display:flex;flex-direction:column;min-width:0;padding:12px!important;background:white;border:1px solid #e3e8f1;border-radius:12px;box-shadow:0 4px 16px #172c5410}
body.esm-header-layout .esm-community-grid .esm-compact-cover{display:flex!important;width:100%;height:170px!important;align-items:center;justify-content:center;background:#f5f7fc;border-radius:9px;overflow:hidden}
body.esm-header-layout .esm-community-grid .esm-compact-cover img{width:auto!important;max-width:100%!important;height:auto!important;max-height:158px!important;object-fit:contain!important}
body.esm-header-layout .esm-community-grid .esm-compact-book h3{font-size:13px!important;line-height:1.45!important;margin:10px 0 6px!important;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:55px}
body.esm-header-layout .esm-community-grid .esm-compact-book h3 a{text-decoration:none;color:#1a2b50}
body.esm-header-layout .esm-community-grid .esm-compact-price{margin-top:auto!important;font-size:16px;font-weight:750}
body.esm-header-layout .esm-community-grid .esm-purchase-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%}
body.esm-header-layout .esm-community-grid .esm-purchase-actions .esm-action-buy{grid-column:1/-1}
body.esm-header-layout .esm-community-grid .esm-purchase-actions form{margin:0;min-width:0}
body.esm-header-layout .esm-community-grid .esm-purchase-actions button,body.esm-header-layout .esm-community-grid .esm-purchase-actions a{width:100%;box-sizing:border-box;text-align:center;white-space:normal;display:flex;align-items:center;justify-content:center}
body.esm-header-layout .esm-cart-page .esm-cart-items{display:grid;gap:12px}
body.esm-header-layout .esm-cart-page .esm-cart-item{display:flex!important;align-items:center;gap:15px;background:#fff;border:1px solid #e3e8f1;border-radius:12px;padding:13px}
body.esm-header-layout .esm-cart-page .esm-cart-cover{display:flex;flex:0 0 75px;width:75px;height:88px;align-items:center;justify-content:center;background:#f5f7fc;border-radius:8px}
body.esm-header-layout .esm-cart-page .esm-cart-cover img{max-width:100%;max-height:84px;object-fit:contain}
body.esm-header-layout .esm-cart-page .esm-cart-info{flex:1;min-width:0}
body.esm-header-layout .esm-cart-page .esm-cart-info h3{margin:0 0 7px!important;font-size:14px!important;overflow-wrap:anywhere}
body.esm-header-layout .esm-cart-page .esm-cart-remove form{margin:0}
body.esm-header-layout .esm-cart-page .esm-cart-remove button{padding:8px 10px;background:#fff;color:#b42337;border:1px solid #f0ccd3}
body.esm-header-layout .esm-cart-page .esm-cart-summary{padding:20px;background:#f7f9fe;border:1px solid #e3e8f1;border-radius:12px;margin-top:18px}
body.esm-header-layout .esm-cart-page .esm-cart-summary form{max-width:500px}
body.esm-header-layout .esm-cart-page .esm-cart-summary input{max-width:100%;box-sizing:border-box}
@media(max-width:700px){body.esm-header-layout .esm-search-page .esm-search-form{grid-template-columns:repeat(2,minmax(0,1fr))}body.esm-header-layout .esm-search-form label:first-child{grid-column:1/-1}body.esm-header-layout .esm-search-form button{grid-column:1/-1}body.esm-header-layout .esm-community-grid.esm-search-results,body.esm-header-layout .esm-wishlist-page .esm-community-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}body.esm-header-layout .esm-cart-page .esm-cart-item{flex-wrap:wrap}body.esm-header-layout .esm-cart-page .esm-cart-remove{width:100%}}
