/* Ministore additions. The look itself comes from the copied full-storefront files
   (sf/rootThemes.css, sf/style.css, cart-temp.css); only what those do not cover lives here. */
[hidden] { display: none !important; }

/* Banner in the carousel slot: the desktop image, swapped for the mobile one on phones by <picture>.
   Heights are capped like the full storefront's slider (400px desktop, 75dvh phone). */
.sp-banner picture { display: block; width: 100%; max-width: 1400px; }
.sp-banner img { width: 100%; height: auto; max-height: 400px; object-fit: cover; display: block; }
@media (max-width: 500px) { .sp-banner img { max-height: 75dvh; } }

/* Product card extras: no-image filler, out-of-stock dimming, and the add / quantity control */
.sp-noimg { display: flex; align-items: center; justify-content: center; background: #f1f3f5; color: #b6bcc4; }
.sp-noimg .mIcon { font-size: 48px; }
.crdol.sp-out .imgol { opacity: .55; }
.sp-buy { display: flex; justify-content: flex-end; align-items: center; min-height: 40px; padding: 8px 6px 0 6px; }
.sp-buy .acb .mIcon[data-sp-add] { cursor: pointer; }
.sp-note { color: var(--sTx); padding: 10px 0 30px; }

/* Cart bar fixed to the bottom of the index page once something is in the cart */
.sp-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 900; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 560px; margin: 0 auto; padding: 12px 18px; border-radius: 12px; background: var(--pAs); color: #fff; text-decoration: none; font-size: 15px; box-shadow: rgba(0, 0, 0, .35) 0 8px 24px -8px; }
.sp-bar-go { font-weight: 500; display: inline-flex; align-items: center; }

/* Cart rows have no product page to link to */
#upd > div [aria-label="Product Name"] a:not([href]) { cursor: default; }

/* Links styled as the full storefront's buttons */
a.button.buy { display: block; text-align: center; text-decoration: none; box-sizing: border-box; }
.button.buy.wa-checkout-btn:disabled { opacity: .6; cursor: default; }
.button.buy.wa-checkout-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px 18px; border-radius: 4px; font-size: 16px; font-weight: 600; color: #fff; }
a.btn-continue-shopping { text-decoration: none; }
.checkout-buttons .btn-continue-shopping { align-self: center; }
.cart-right .checkout-buttons { margin-top: 12px; }
a.button.buy.sp-off { opacity: .5; pointer-events: none; }

/* Buttons (not links) styled as the full storefront's green checkout button */
.checkout-buttons button.button.buy { display: block; width: 100%; box-sizing: border-box; cursor: pointer; }
.checkout-buttons button.button.buy:disabled { opacity: .6; cursor: default; }
.checkout-buttons .button + .button { margin-top: 10px; }

/* Messages, field errors, payment choice, order-placed text */
.sp-notice { margin: 0 0 14px; padding: 10px 14px; border: 1px solid #edd58a; border-radius: 8px; background: #fff6dd; color: #5c4300; font-size: 14px; }
.sp-notice p { margin: 2px 0; }
.sp-hint { margin: 8px 2px 12px; color: var(--sTx); font-size: 13px; }
.sp-muted { color: var(--sTx); font-size: 13px; }
.fld small[data-sp-error] { color: #bf4800; }
.fld small[data-sp-error]:empty { display: none; }
.fld.sp-invalid input, .fld.sp-invalid textarea { border-color: #bf4800 !important; }
.sp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sp-done p { color: var(--sTx); margin: 0 0 10px; }
.sp-done .sp-done-order { color: var(--pTx); font-size: 18px; font-weight: 500; }

/* Payment page: delivery address and the two ways to order */
.sp-ship, .sp-pay { margin: 0 0 18px; }
.sp-ship-box { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--bdr, #dde3e7); border-radius: 8px; line-height: 1.5; font-size: 14px; }
.sp-ship-box a { white-space: nowrap; font-weight: 500; }
.sp-pay-opt { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 10px; padding: 12px 14px; border: 1px solid var(--bdr, #dde3e7); border-radius: 8px; cursor: pointer; line-height: 1.4; }
.sp-pay-opt input { margin-top: 3px; flex: 0 0 auto; }
.sp-pay-opt small { color: var(--sTx); }
.sp-pay-opt:has(input:checked) { border-color: var(--pAs, #2e7d32); box-shadow: 0 0 0 1px var(--pAs, #2e7d32); }
