main.counter-page { padding: 1.5rem 1rem 2rem; }
.counter-page [hidden] { display: none !important; }
.counter-page .field-error:empty { display: none; }
.counter-thanks { display: grid; gap: 0.875rem; font-size: var(--text-small); overflow-wrap: anywhere; }
.counter-thanks form { margin: 0; }
.counter-payment-amounts { margin: 0; display: grid; gap: 0.375rem; }
.counter-payment-amounts div { display: flex; justify-content: space-between; gap: 1rem; }
.counter-payment-amounts dd { margin: 0; font-weight: 500; }
.counter-reset-note { color: var(--color-slate); }
.counter-handoff { display: grid; gap: 1.25rem; max-width: 560px; margin-inline: auto; }
.counter-next-steps { display: grid; gap: 0.625rem; }
.counter-next-steps h2 { margin: 0; }
.counter-handoff h1, .counter-handoff p { margin: 0; }
.counter-handoff h1 { font-size: 1.75rem; line-height: 1.2857; }
.counter-intro { font-size: var(--text-small); line-height: var(--leading-small); color: var(--color-slate); }
.counter-code-card { display: grid; justify-items: center; gap: 1rem; padding: 1.75rem 1.5rem; border: 1.5px solid var(--link-color); border-radius: 1rem; background: var(--surface-tint); }
.counter-code-label { font-size: 0.8125rem; line-height: 1.125rem; font-weight: 500; color: var(--link-color); }
.counter-handoff .counter-code { font-size: 2.125rem; line-height: 1.2353; font-weight: 500; }
.counter-payment-status { display: flex; align-items: center; gap: 0.625rem; font-size: 0.875rem; line-height: 1.25rem; padding: 0.75rem 0.875rem; border: 1px solid var(--color-border); border-radius: var(--radius-control); }
.counter-order-summary { display: grid; gap: 0.625rem; padding: 1.25rem; border: 1px solid var(--color-border); border-radius: var(--radius-control); }
.counter-order-item { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.counter-order-item p { font-size: 0.875rem; line-height: 1.25rem; overflow-wrap: anywhere; }
.counter-item-preview { width: 48px; height: 48px; flex-shrink: 0; object-fit: contain; border-radius: var(--radius-control); background: var(--surface-tint); }
.counter-preview-missing { display: grid; place-items: center; }
.counter-item-quantity { display: block; color: var(--color-slate); font-size: 0.75rem; line-height: 1rem; }
.counter-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 0.625rem; border-top: 1px solid var(--color-border); font-size: 0.8125rem; }
.counter-total strong { font-size: 1.25rem; line-height: 1.4; }
.counter-back { justify-self: start; }
.counter-payments { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.counter-card { display: flex; align-items: center; justify-content: center; width: 44px; height: 28px; border-radius: 4px; background: white; border: 1px solid var(--color-border); font-family: var(--font-body); font-weight: 700; }
.counter-visa { font-size: 11px; letter-spacing: 0.5px; color: #1a1f71; }
.counter-amex { font-size: 9px; background: #2e77bc; color: white; }
.counter-discover { gap: 1px; font-size: 6.5px; color: #231f20; }
:root[data-theme="dark"] .counter-page img[src$=".svg"] { filter: brightness(0) invert(1); }
:root[data-theme="dark"] .cart-page .counter-payments img[src$=".svg"]:not(:first-child) { filter: none; }

@media (min-width: 64rem) {
  main.counter-page { padding: 3.5rem var(--page-gutter) 4.5rem; }
  .counter-handoff h1 { font-size: 2.5rem; line-height: 1.2; }
  .counter-handoff .counter-code { font-size: 3.5rem; line-height: 1.1429; }
}
