.rewards-panel { margin: 16px 0; padding: 4px 0; }
#reward-entry { max-width: 520px; padding: 4px 0 12px; }
#reward-entry .field { margin: 8px 0; }
#reward-cancel { margin-top: 8px; }
.rewards-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rewards-actions .button { padding: 12px; border-radius: 6px; }
#quantity-price { display: flex; flex-direction: column; gap: 10px; padding-block: 14px; }
#quantity-price:empty, #quantity-savings:empty { display: none; }
.price-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 20px; }
.price-tax { color: #706358; font-size: 16px; font-weight: 400; }
.quantity-amounts { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 12px; font-variant-numeric: tabular-nums; }
.quantity-amounts s { color: #766b60; font-size: 20px; font-weight: 400; text-decoration-thickness: 1px; }
.quantity-amounts strong { color: #30251d; font-size: 32px; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; }
.price-saving { padding: 6px 10px; border-radius: 5px; background: #f0dfcd; color: #733b22; font-size: 16px; font-weight: 600; line-height: 1.25; white-space: nowrap; }
#summary-subtotal .quantity-amounts { justify-content: flex-end; gap: 10px; }
#summary-subtotal .quantity-amounts strong { font-size: 24px; }
#summary-subtotal .quantity-amounts s { font-size: 18px; }
#rewards-start { max-width: 640px; }
.code-entry { display: grid; grid-template-columns: minmax(0,1fr) 128px; gap: 12px; }
.code-entry input { width: 100%; padding: 12px; min-height: 52px; border: 1px solid #bcad99; background: #fffdf7; color: #302820; border-radius: 6px; }
.code-entry button { padding: 12px; }
.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 20px; }
.payment-options button { min-height: 54px; font-size: 18px; padding: 12px; }
.payment-options button:last-child { grid-column: auto; }
.payment-options button[aria-pressed="true"] { outline: 2px solid #9c613b; outline-offset: 3px; }
.payment-options button:disabled { opacity: .5; cursor: not-allowed; }
#direct-reward-note { font-size: 16px; margin: 12px 0 20px; }
.reward-account-actions { display: flex; flex-wrap: wrap; gap: 18px; }
#use-credit-row { display: flex; gap: 10px; align-items: center; margin: 18px 0; font-size: 18px; }
#use-credit-row[hidden] { display: none; }
#use-credit { width: 24px; height: 24px; }
#rewards-message:empty, #reward-pending:empty { display: none; }
.rewards-panel p { margin: 12px 0; font-size: 18px; }
.rewards-panel .field { margin: 18px 0; }
.rewards-panel input { font-size: 18px; min-width: 0; }
.rewards-panel button { min-height: 48px; font-size: 18px; }
.reward-verify { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.reward-verify .field { flex: 1 1 170px; margin: 12px 0; }
.reward-verify button { margin-bottom: 12px; }
#use-credit-row { display: flex; gap: 12px; align-items: center; min-height: 48px; font-size: 18px; }
#use-credit { width: 24px; height: 24px; min-height: 24px; }
.checkout-price { display: grid; margin-block: 12px; }
.checkout-price .quantity-total { grid-area: 1 / 1; min-height: 148px; margin: 0; display: grid; align-content: center; }
.checkout-price:has(#rewards-message[data-state]) .quantity-total { visibility: hidden; }
#rewards-message { grid-area: 2 / 1; overflow-wrap: anywhere; font-size: 18px; margin-block: 12px; }
#rewards-message[data-state="applied"], #rewards-message[data-state="checking"] { grid-area: 1 / 1; min-height: 148px; box-sizing: border-box; margin: 0; display: grid; align-content: center; gap: 8px; padding: 16px 18px; border: 2px solid #ad713e; border-radius: 8px; background: #f4e2ce; color: #51331d; }
#rewards-message strong { font-size: 26px; line-height: 1.3; letter-spacing: -.02em; }
#rewards-message span { font-size: 18px; line-height: 1.45; }
.discount-price-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
#rewards-message .discount-tax { white-space: nowrap; }
.quantity-total, #rewards-panel { overflow-anchor: none; }
.empty-total { font-size: 32px; font-weight: 600; line-height: 1.2; }
#reward-apply { min-width: 112px; }
#reward-apply:disabled { opacity: 1; color: #6c4831; background: #f4e2ce; cursor: default; }
#reward-apply[data-valid="true"] { color: #624329; background: transparent; border-color: transparent; font-size: 28px; }
#share-reward { margin-top: 24px; padding-top: 24px; border-top: 1px solid #d9cdbd; }
#share-reward h4 { font-size: 28px; margin: 0 0 18px; }
#share-reward .rewards-actions .button { text-align: center; display: flex; justify-content: center; align-items: center; min-height: 52px; }
#your-referral-code { font-size: 24px; letter-spacing: .06em; overflow-wrap: anywhere; }
#reward-pending:empty, #rewards-message:empty { display: none; }
/* The review summary already includes the price and discount. Keep errors visible. */
body[data-order-step="3"] #reward-entry,
body[data-order-step="3"] .checkout-price:has(#rewards-message:empty),
body[data-order-step="3"] .checkout-price:has(#rewards-message[data-state="applied"]),
body[data-order-step="3"] .checkout-price:has(#rewards-message[data-state="checking"]) { display: none; }
[hidden] { display: none !important; }
@media(max-width: 480px) { .reward-verify button { width: 100%; } .rewards-panel { margin: 18px 0; } }
