/* Cart and checkout share one set of surfaces and spacing. */
body {
    --purchase-border: var(--theme-border, #283541);
    --purchase-edge: color-mix(in srgb, var(--primary-color) 32%, var(--purchase-border));
    --purchase-surface: linear-gradient(145deg, color-mix(in srgb, var(--card-color) 96%, var(--primary-color)), var(--card-color) 65%);
}
.vel-cart-shell .vel-cart-header {
    border: 1px solid var(--purchase-edge);
    border-radius: 18px;
    padding: clamp(20px, 3vw, 38px);
    margin: 16px 0 28px;
    background: radial-gradient(ellipse at 98% 5%, rgba(var(--theme-rgb), .14), transparent 58%), var(--purchase-surface);
}
.vel-cart-header h1 { font: 750 clamp(32px, 4vw, 52px)/1.1 Geist, sans-serif; letter-spacing: -.055em; }
.vel-cart-shell .vel-cart-header .btn { color: var(--text-color); border: 1px solid var(--purchase-border); background: var(--card-color); padding: 10px 15px; }
.vel-cart-layout .vel-cart-item,
.vel-cart-shell .cart-checkout-card,
.cart-page .cart-summary-card,
.deploy-layout .checkout-form,
.vel-cart-shell .vel-cart-empty {
    background: var(--purchase-surface);
    border: 1px solid var(--purchase-border);
    border-radius: 16px;
    padding: clamp(16px, 2vw, 26px);
}
.vel-cart-layout .vel-item-icon, .cart-page .cart-plan-icon {
    background: rgba(var(--theme-rgb), .075);
    color: var(--primary-color);
    border: 1px solid var(--purchase-edge);
    box-shadow: none;
}
.purchase-art { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 6px 5px #0004); }
.vel-cart-shell .vel-item-main h2 { margin: 6px 0; font-size: 1.3rem; }
.vel-cart-shell .vel-item-quantity button { min-height: 38px; min-width: 32px; }
.vel-cart-shell .vel-item-price, .vel-order-summary, .deploy-layout .plan-price { font-variant-numeric: tabular-nums; }
.vel-cart-shell .vel-order-summary, .deploy-layout .checkout-summary, .cart-page .bulk-payment-card {
    background: linear-gradient(150deg, rgba(var(--theme-rgb), .09), transparent 48%), var(--card-color);
    border: 1px solid var(--purchase-edge);
    border-radius: 18px;
    padding: clamp(20px, 2vw, 30px);
    box-shadow: 0 18px 42px #0002;
}
.vel-cart-shell .cart-payment-option { border-radius: 12px; padding: 12px; cursor: pointer; }
.vel-cart-shell .cart-payment-option:has(input:checked) {
    background: rgba(var(--theme-rgb), .09);
    border-color: var(--primary-color);
    box-shadow: inset 3px 0 var(--primary-color);
}
.vel-cart-shell .cart-payment-option:has(input:disabled) { opacity: .58; cursor: not-allowed; }
.vel-cart-shell #cartAccountCreditNote { margin: 4px 0 10px; }
.account-credit-option.is-insufficient { opacity: .58; }
.payment-option:has(input:disabled) { opacity: .58; cursor: not-allowed; }
.vel-order-summary .summary-total, .deploy-layout .plan-price { border-top: 1px solid var(--purchase-edge); padding-top: 16px; }
.checkout-shell.deploy-layout { padding-block: clamp(24px, 5vw, 68px); }
.checkout-shell.deploy-layout .checkout-summary h1 { margin: 10px 0; font-size: clamp(28px, 3vw, 44px); line-height: 1.12; }
.deploy-layout .plan-specs { display: grid; gap: 0; }
.deploy-layout .plan-specs li { padding: 10px 0; border-bottom: 1px solid var(--purchase-border); }
.deploy-layout .checkout-progress { padding: 8px; border-radius: 14px; }
:is(.vel-cart-shell,.deploy-layout,.cart-page) :focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
@media (max-width: 680px) {
    .vel-cart-shell .vel-cart-header { align-items: flex-start; gap: 14px; }
    .vel-cart-shell .vel-order-summary, .checkout-shell.deploy-layout .checkout-summary { position: static; }
    .purchase-art { width: 40px; height: 40px; }
    .vel-cart-shell .vel-item-tags { flex-wrap: wrap; }
}
