#shop-dialog{width:min(1100px,96vw);max-height:93dvh;overflow:auto;padding:25px 28px 155px;background:#f5f1e8;color:#243541;border:1px solid #b8a274;border-radius:18px}#shop-dialog [hidden]{display:none!important}#shop-dialog h2{font:32px Stam,serif}#shop-dialog label{display:grid;gap:6px;margin:10px 0}#shop-dialog input,#shop-dialog select{font:inherit;padding:10px;border:1px solid #b8b4a7;border-radius:8px;background:#fffdf8;color:#243541}#shop-dialog textarea{box-sizing:border-box;font:inherit;background:#fffdf8;border:1px solid #b8b4a7;border-radius:8px;padding:10px;color:#243541;width:100%}#shop-dialog select{font:inherit;padding:10px;border:1px solid #b8b4a7;border-radius:8px;background:#fffdf8;color:#243541}#shop-dialog textarea{min-height:85px}#shop-dialog input[type=checkbox]{width:auto}#shop-books,#shop-orders{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:16px;margin:20px 0}#shop-books article,#shop-orders article{background:#fffdf8;border:1px solid #d5c9af;border-radius:12px;padding:18px;overflow-wrap:anywhere}#shop-books img{display:block;max-height:210px;max-width:100%;margin:auto;object-fit:contain}#shop-books p,#shop-orders p{white-space:pre-wrap}#shop-admin{border-top:1px solid #c4b796;padding-top:20px;margin-top:30px}#shop-book-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#shop-cart button{margin-inline-start:15px}#shop-paypal-setup{background:#e9e2d2;border-radius:10px;padding:16px;margin:20px 0}#shop-status{white-space:pre-wrap;min-height:1.5em;color:#75501c}@media(max-width:600px){#shop-dialog{padding:18px 15px 145px}#shop-book-form{grid-template-columns:1fr}}

/* Public storefront and explicit administrator workspace. */
.shop-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
#shop-books{grid-template-columns:repeat(auto-fit,minmax(min(420px,100%),1fr))}
#shop-books .shop-book-card{display:flex;align-items:center;gap:28px;padding:26px}
#shop-books img{width:clamp(110px,20vw,185px);max-height:270px;flex:none;margin:0;filter:drop-shadow(0 9px 8px #24354122)}
.shop-book-details{flex:1;min-width:0}#shop-books h3{font:28px/1.4 Stam,serif;margin:0 0 12px}
#shop-books .shop-book-price{display:block;font-size:30px;color:#164f43;margin:20px 0 6px;white-space:nowrap}
#shop-books .shop-purchase{font-size:17px;padding:11px 24px;margin-top:8px;background:#173c35;color:#fff8e8;border-color:#173c35}
#shop-basket{padding:20px;border:1px solid #c9b78e;background:#fffdf8;border-radius:12px;margin-top:24px}
#shop-admin-books{display:grid;gap:10px;margin:16px 0}#shop-admin-books article{padding:14px 18px;border:1px solid #d5c9af;border-radius:10px;background:#fffdf8}#shop-admin-books h4{margin:0;font-size:18px}#shop-admin-books p{margin:7px 0}
@media(max-width:500px){#shop-books .shop-book-card{gap:18px;padding:18px}#shop-books img{width:105px;max-height:200px}#shop-books h3{font-size:24px}#shop-books .shop-book-price{font-size:26px}#shop-books .shop-purchase{padding:10px 15px;font-size:16px}}

#shop-books .shop-book-metadata{font-size:14px;line-height:1.6;color:#586b68;margin:6px 0 12px}

#shop-paypal-buttons{display:flex;flex-direction:column;gap:12px;max-width:420px;margin:20px auto}#shop-paypal-buttons[hidden]{display:none}#shop-paypal-buttons paypal-button,#shop-paypal-buttons paypal-basic-card-container{display:block;min-height:45px}#shop-cart>p{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
