.commerce-html, .commerce-html body { height: auto; min-height: 100%; overflow-x: hidden; overflow-y: auto; }
.commerce-page { min-height: 100svh; color: var(--ink); }
.commerce-page [hidden] { display: none !important; }
.commerce-page .ambient-background { position: fixed; inset: 0; z-index: -1; }
.commerce-page .site-header { position: relative; }
.commerce-page .art-button[aria-current]::before { border-color: var(--ink); }
.commerce-main { max-width: 1440px; margin: 0 auto; padding: 0 var(--side) 70px; }
.commerce-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 18px 0 24px; border-bottom: 1px solid #62516b40; }
.commerce-heading h1 { margin: 0; font-size: 36px; line-height: 1.15; font-weight: 550; }
.eyebrow { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.text-link, .history-link a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.demo-banner { margin: 22px 0; padding: 12px 16px; background: #fff9fcb8; border-left: 3px solid #7d456b; font-size: 13px; line-height: 1.5; }
.commerce-steps { display: flex; gap: 28px; padding: 0 0 20px; margin: 0; list-style: none; border-bottom: 1px solid #62516b40; color: #62516b; font-size: 13px; }
.commerce-steps li { display: flex; align-items: center; gap: 8px; }
.commerce-steps li span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid #62516b80; border-radius: 50%; font-size: 10px; }
.commerce-steps .is-current { color: var(--ink); font-weight: 600; }
.commerce-steps .is-current span { background: var(--ink); border-color: var(--ink); color: white; }
.commerce-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 360px); gap: 48px; padding-top: 30px; }
.section-heading { display: flex; justify-content: space-between; gap: 15px; align-items: baseline; border-bottom: 1px solid #62516b40; padding-bottom: 14px; }
.section-heading h2, .summary h2 { margin: 0; font-size: 21px; font-weight: 550; }
.section-heading span { font-size: 13px; }
.cart-item { display: grid; grid-template-columns: 104px minmax(0,1fr) auto; gap: 20px; padding: 22px 0; border-bottom: 1px solid #62516b40; }
.cart-cover { width: 104px; aspect-ratio: 1; object-fit: cover; background: #fff9fca6; }
.cart-info { min-width: 0; }
.cart-info h3 { margin: 0 0 5px; font-size: 17px; font-weight: 550; overflow-wrap: anywhere; }
.cart-info p { margin: 0 0 6px; color: #514258; font-size: 13px; line-height: 1.4; }
.cart-origin { display: inline-block; margin-top: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.cart-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.quantity-control { display: inline-flex; align-items: center; border: 1px solid #62516b80; background: #fff9fc80; }
.quantity-control button { border: 0; background: transparent; width: 36px; height: 36px; color: inherit; font: inherit; cursor: pointer; }
.quantity-control output { min-width: 28px; text-align: center; font-size: 13px; }
.cart-price { font-weight: 600; font-size: 15px; white-space: nowrap; }
.text-button { border: 0; padding: 3px 0; background: none; color: inherit; font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.summary { align-self: start; background: #fff9fca6; padding: 25px; }
.summary h2 { margin-bottom: 22px; }
.summary h3 { font-size: 16px; font-weight: 600; margin: 25px 0 8px; }
.total-row { display: flex; justify-content: space-between; gap: 12px; margin: 13px 0; font-size: 14px; }
.total-row.total { border-top: 1px solid #62516b55; padding-top: 16px; font-size: 17px; font-weight: 600; }
.fine-print { color: #514258; font-size: 12px; line-height: 1.5; }
#checkout-form { display: grid; gap: 12px; margin-top: 16px; }
#checkout-form label { display: grid; gap: 5px; font-size: 12px; font-weight: 500; }
#checkout-form input { min-width: 0; width: 100%; height: 42px; border: 1px solid #62516b80; border-radius: 2px; background: #fffdfdcc; color: var(--ink); padding: 0 10px; font: inherit; font-size: 15px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 46px; padding: 12px 16px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; }
.secondary-button { background: transparent; color: var(--ink); margin-top: 10px; }
.wide { width: 100%; }
.new-cart { margin-top: 17px; }
.empty-state { padding: 60px 10px; text-align: center; }
.empty-state svg { width: 32px; height: 32px; }
.empty-state h3 { font-size: 20px; font-weight: 550; }
.empty-state p { font-size: 14px; margin-bottom: 22px; }
.commerce-notice { margin-top: 20px; padding: 14px 16px; background: #fff9fce8; border-left: 3px solid #7d456b; line-height: 1.5; font-size: 14px; }
.commerce-loading { padding: 60px 0; }
.history-link { margin-top: 32px; font-size: 13px; }
.commerce-page :focus-visible { outline: 3px solid #3b2c45; outline-offset: 3px; }
.commerce-page button:disabled { opacity: .55; cursor: not-allowed; }
/* Dark, softly fading surfaces; keep foreground content fully opaque. */
.commerce-page .summary,
.commerce-page .quantity-control,
.commerce-page .commerce-notice,
.commerce-page .primary-button,
.commerce-page .secondary-button,
.commerce-page #checkout-form label { position: relative; isolation: isolate; }
.commerce-page .summary,
.commerce-page .quantity-control,
.commerce-page .commerce-notice,
.commerce-page .primary-button,
.commerce-page .secondary-button,
.commerce-page .primary-button:hover,
.commerce-page .secondary-button:hover,
.commerce-page #checkout-form input { background: transparent; border-color: transparent; box-shadow: none; }
.commerce-page .summary::before,
.commerce-page .quantity-control::before,
.commerce-page .commerce-notice::before,
.commerce-page .primary-button::before,
.commerce-page .secondary-button::before,
.commerce-page #checkout-form label::before {
 content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
 background: rgb(0 0 0 / 80%);
 -webkit-mask-image: linear-gradient(to right, transparent, #000 6px, #000 calc(100% - 6px), transparent), linear-gradient(to bottom, transparent, #000 6px, #000 calc(100% - 6px), transparent);
 -webkit-mask-composite: source-in;
 mask-image: linear-gradient(to right, transparent, #000 6px, #000 calc(100% - 6px), transparent), linear-gradient(to bottom, transparent, #000 6px, #000 calc(100% - 6px), transparent);
 mask-composite: intersect;
}
.commerce-page #checkout-form label::before { top: auto; height: 42px; }
.commerce-page .primary-button:hover::before,
.commerce-page .secondary-button:hover::before { background: rgb(0 0 0 / 90%); }
.commerce-page :focus-visible { outline-color: #f5eedc; }
@media (max-width: 760px) {
 .commerce-main { padding-bottom: 45px; }
 .commerce-heading h1 { font-size: 30px; }
 .commerce-layout { grid-template-columns: minmax(0,1fr); gap: 28px; }
 .commerce-steps { gap: 12px; justify-content: space-between; font-size: 11px; }
 .commerce-steps li { gap: 5px; }
 .commerce-steps li span { width: 24px; height: 24px; flex: 0 0 24px; }
 .cart-item { grid-template-columns: 78px minmax(0,1fr); gap: 14px; }
 .cart-cover { width: 78px; }
 .cart-price { grid-column: 2; }
 .summary { padding: 20px; }
}
