.direct-cart-link {font-weight:700}
.direct-buy {background:#1a2227;border:1px solid #53626c;border-radius:8px;padding:1.15rem;margin:1rem 0 1.4rem;max-width:720px}
.direct-buy h2 {font-size:1.25rem;margin:0 0 .55rem}
.direct-stock {font-size:.95rem;margin:.4rem 0 1rem}
.direct-warning {border-left:3px solid #c0a269;padding-left:.7rem;margin:.7rem 0;color:#eee}
.direct-buy-form {display:grid;gap:.9rem}
.direct-field {display:flex;flex-direction:column;gap:.35rem}
.direct-field label {font-weight:600;font-size:.95rem}
.direct-field select,.direct-field input,.direct-field textarea {width:100%;min-height:42px;border:1px solid #697981;border-radius:4px;padding:.6rem;background:#11191d;color:#f5f3ef;font:inherit}
.direct-field textarea {min-height:80px}
.direct-actions {display:flex;gap:1rem;align-items:center;flex-wrap:wrap}
.direct-cart-cta {text-decoration:underline}
.direct-status {margin:0;color:#c2dfeb;min-height:1.4em}
.direct-buy button:disabled {opacity:.5;cursor:not-allowed}

/* Desktop mini cart. The existing nav cart link stays available on small screens. */
.ice-mini-cart{position:fixed;right:18px;top:max(16px,calc(clamp(130px,17vh,175px) - var(--ice-mini-cart-scroll,0px)));bottom:auto;z-index:65;width:min(310px,calc(100vw - 36px));box-sizing:border-box;color:#f4f3ef;background:#192228;border:1px solid #586a74;border-radius:9px;box-shadow:0 10px 34px rgba(0,0,0,.45);font:inherit;font-size:13px;overflow:hidden}
.ice-mini-cart[hidden]{display:none!important}
.ice-mini-cart .ice-mini-toggle{width:100%;display:flex;gap:12px;align-items:center;justify-content:space-between;text-align:left;background:#263640;color:#e8f5fc;border:0;padding:12px 16px;font:inherit;font-weight:700;cursor:pointer}
.ice-mini-cart .ice-mini-arrow{font-size:19px;line-height:1}
.ice-mini-cart[data-open="yes"] .ice-mini-arrow{transform:rotate(180deg)}
.ice-mini-cart .ice-mini-body{padding:14px 16px 16px;max-height:min(65vh,540px);overflow:auto}
.ice-mini-cart[data-open="no"] .ice-mini-body{display:none}
.ice-mini-cart .ice-mini-body h2{font-size:17px;margin:0 0 10px;font-weight:700}
.ice-mini-cart .ice-mini-lines{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:8px}
.ice-mini-cart .ice-mini-line{display:flex;justify-content:space-between;gap:10px;line-height:1.4}
.ice-mini-cart .ice-mini-product{min-width:0;flex:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ice-mini-cart .ice-mini-qty{white-space:nowrap;color:#bad8e5;font-weight:700}
.ice-mini-cart .ice-mini-more{font-size:12px;color:#bed1da}
.ice-mini-cart .ice-mini-totals{display:grid;grid-template-columns:1fr auto;gap:9px 12px;margin:0;padding:12px 0;border-top:1px solid #42545e;border-bottom:1px solid #42545e}
.ice-mini-cart .ice-mini-totals dt,.ice-mini-cart .ice-mini-totals dd{margin:0;min-width:0}
.ice-mini-cart .ice-mini-totals dd{text-align:right;font-weight:700;max-width:175px}
.ice-mini-cart .ice-mini-totals dt:last-of-type,.ice-mini-cart .ice-mini-totals dd:last-of-type{font-size:14px;color:#e4f4ff}
.ice-mini-cart .ice-mini-note{font-size:11px;line-height:1.5;color:#c2d0d9;margin:10px 0}
.ice-mini-cart .ice-mini-checkout{display:block;text-align:center;padding:11px;background:#c4e3f0;border-radius:4px;color:#14252f;text-decoration:none;font-weight:700}
.ice-mini-cart .ice-mini-checkout:hover,.ice-mini-cart .ice-mini-checkout:focus-visible{background:#e1f4fc;color:#10242f}
@media(max-width:1039px){.ice-mini-cart{display:none!important}}
@media(min-width:1040px) and (max-width:1499px){.ice-mini-cart[data-open="yes"]{max-height:75vh}}

/* Structured Etsy descriptions preserve original text while improving scanning. */
.product-description .etsy-description-heading{font-size:1.05rem;line-height:1.4;margin:1.35rem 0 .45rem;font-weight:700;letter-spacing:.025em}
.product-description p{margin:.45rem 0 1rem;line-height:1.65}

/* Header cart is visible outside the collapsed mobile navigation. */
.ice-mobile-cart-link{display:none}
@media(max-width:800px){
 .ice-mobile-cart-link{display:inline-flex;align-items:center;justify-content:center;gap:5px;margin-left:auto;min-width:52px;min-height:44px;padding:5px 7px;border:1px solid #526b79;border-radius:5px;color:#eff8fc;font-size:14px;font-weight:700}
 .ice-mobile-cart-count{min-width:18px;text-align:center}
 .ice-mobile-cart-symbol{font-size:18px;line-height:1}
}

/* Stable direct-purchase loading state. The early same-origin script adds this
   class before first paint; without JS the original Etsy fallback stays usable. */
html.ice-direct-preparing .detailcopy > a.button[href*="etsy"],
html.ice-direct-preparing .detailcopy > .etsy-variant-options,
html.ice-direct-preparing .detailcopy > .inventory-message{display:none!important}
html.ice-direct-preparing .detailcopy > .price,
html.ice-direct-preparing .detailcopy > .availability{visibility:hidden}
html.ice-direct-preparing .detailcopy > h1::after{content:"Loading purchase options…";display:block;font-size:.85rem;line-height:1.5;font-weight:400;color:#c2d0d9;margin-top:.8rem;min-height:1.4em}
.direct-selected-price{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;padding:.8rem .9rem;border-top:1px solid #53626c;border-bottom:1px solid #53626c}
.direct-selected-price strong{font-size:1.45rem;white-space:nowrap;color:#f5f3ef}
.direct-etsy-secondary{color:#bdced8;font-size:.9rem;justify-self:start;text-underline-offset:3px}

/* Subsequent Etsy catalog refreshes must not expose a transient Etsy-first CTA. */
html.ice-direct-ready .detailcopy > a.button[href*="etsy"],
html.ice-direct-ready .detailcopy > .etsy-variant-options{display:none!important}

/* No Etsy-first flash: initial HTML is a neutral loading state, and the
   live Etsy catalog can never expose a purchase CTA until the direct-cart
   service has conclusively reported that direct purchase is unavailable. */
.detailcopy > a.button[href*="etsy"],
.detailcopy > .etsy-variant-options{display:none!important}
html.ice-direct-unavailable .detailcopy > a.button[href*="etsy"]{display:inline-flex!important}
.detailcopy > .direct-purchase-loading{min-height:1.4em;margin:1rem 0 1.3rem;color:#c2d0d9;font-size:.9rem;line-height:1.5}
html.ice-direct-preparing .detailcopy:has(> .direct-purchase-loading) > h1::after{display:none!important}
html.ice-direct-ready .detailcopy > .direct-purchase-loading,
html.ice-direct-unavailable .detailcopy > .direct-purchase-loading{display:none!important}

/* Transient direct-checkout errors should offer a visible retry, not present
   Etsy pricing/variation controls as if direct purchase were unsupported. */
html.ice-direct-retry .detailcopy > .price,
html.ice-direct-retry .detailcopy > .availability{display:none!important}
html.ice-direct-retry .detailcopy > a.button[href*="etsy"],
html.ice-direct-retry .detailcopy > .etsy-variant-options{display:none!important}
.direct-purchase-retry-actions{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;margin:1rem 0 1.3rem}
.direct-purchase-retry-actions .button{min-height:44px;cursor:pointer}
.direct-purchase-retry-actions .button:disabled{cursor:wait;opacity:.7}

/* Only verified server-side purchase previews may appear before session setup. */
html.ice-direct-preparing .detailcopy > .ice-ssr-verified{visibility:visible}
html.ice-direct-preparing .detailcopy:has(> [data-ssr-preview]) > h1::after{display:none!important}
