/* POURR commerce surfaces; Kaching colours from the existing receipts brand. */
[hidden] { display: none !important; }
.commerce-cart-link { display: inline-flex; align-items: center; gap: .7rem; }
[data-cart-count] { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; border: 1px solid currentColor; border-radius: 50%; font-size: .7rem; }
.commerce-message { padding: 1rem 1.25rem; margin-bottom: 1.5rem; border-left: 3px solid var(--copper); background: #f3e8dc; max-width: 60rem; }
.commerce-empty { padding: 3rem 0 6rem; }
.commerce-empty p { margin: 1rem 0 2rem; color: var(--muted); }
.commerce-cart-lines { margin-bottom: 1.5rem; }
.commerce-cart-item { display: grid; grid-template-columns: 9rem minmax(0,1fr) auto; align-items: start; gap: 1.5rem; padding: 1.5rem 0; border-block-end: 1px solid rgb(23 23 23 / 14%); }
.commerce-cart-item > img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--warm-white); }
.commerce-cart-item h2 { margin: .2rem 0 .35rem; font-size: 1.6rem; }
.commerce-cart-item__details > p:not(.eyebrow) { max-width: 20rem; color: var(--muted); font-size: .85rem; }
.commerce-line-price { white-space: nowrap; padding-top: .6rem; font-size: 1rem; }
.commerce-quantity { display: inline-flex; margin-top: 1rem; height: 2.8rem; border: 1px solid rgb(23 23 23 / 25%); }
.commerce-quantity button { width: 2.7rem; background: transparent; border: 0; cursor: pointer; font-size: 1.2rem; }
.commerce-quantity input { width: 3rem; text-align: center; border: 0; background: transparent; font: inherit; appearance: textfield; }
.commerce-quantity input::-webkit-inner-spin-button { appearance: none; }
.commerce-remove { display: block; margin-top: .75rem; padding: .15rem 0; background: transparent; border: 0; border-bottom: 1px solid; color: var(--muted); cursor: pointer; font: inherit; font-size: .75rem; }
.commerce-checkout-link { margin-top: 1rem; }
.commerce-payment-caption { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 1rem; font-size: .75rem; color: var(--muted); }
.commerce-payment-caption img { border-radius: .25rem; }
/* The summary and its actions must move together within the cart section. */
.commerce-cart-summary { align-self: start; }
.commerce-cart-summary .checkout-summary { position: static; }
@media(min-width: 64rem) {
  .commerce-cart-summary { position: sticky; top: 8rem; }
}
.commerce-product-quantity { width: 7rem; margin-bottom: 1rem; }
.checkout-fields .form-field { min-width: 0; }
.checkout-fields input, .checkout-fields select, .checkout-fields textarea { width: 100%; }
.checkout-fields + .field-help { margin-top: 1rem; }
.kaching-payment-card { padding: clamp(1.25rem,3vw,2rem); color: #e8ecf5; background: #0a101e; border: 1px solid #263047; }
.kaching-lockup { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.75rem; }
.kaching-lockup img { flex: 0 0 auto; border-radius: .5rem; }
.kaching-lockup > div { display: grid; gap: .15rem; }
.kaching-lockup strong { font-size: 1.55rem; line-height: 1; letter-spacing: -.025em; }
.kaching-lockup div span { font-size: .6rem; letter-spacing: .25em; color: #d4a843; }
.kaching-secure { margin-left: auto; font-size: .56rem; letter-spacing: .12em; color: #94a3b8; text-align: right; }
.kaching-payment-card h2 { color: #e8ecf5; font-size: clamp(1.7rem,3vw,2.4rem); margin-bottom: .6rem; }
.kaching-payment-card > p { color: #b3bdcd; font-size: .86rem; line-height: 1.75; margin-bottom: 1.4rem; }
.kaching-payment-card .consent-row { margin-top: .9rem; font-size: .8rem; }
.kaching-payment-card .consent-row a { color: #f0d478; text-decoration: underline; text-underline-offset: .2rem; }
.kaching-payment-card .consent-row--optional { color: #b3bdcd; border-color: #293146; margin-bottom: 1.5rem; }
.kaching-pay-button { color: #0a101e; background: #d4a843; border-color: #d4a843; }
.kaching-pay-button:hover { background: #f0d478; }
.kaching-payment-card > .kaching-payment-note { margin: .9rem 0 0; color: #94a3b8; font-size: .7rem; text-align: center; }
[data-confirmation-details] { width: 100%; max-width: 35rem; margin-bottom: 2rem; }
.main-page__content h2 { margin-top: 2rem; }
.main-page__content p { margin-block: 1rem; }
@media(max-width: 40rem) {
  .commerce-cart-item { grid-template-columns: 5rem minmax(0,1fr); gap: 1rem; }
  .commerce-line-price { grid-column: 2; padding: 0; }
  .commerce-cart-item h2 { font-size: 1.4rem; }
  .checkout-page__heading h1 { font-size: 3.2rem; }
  .kaching-secure { max-width: 4.5rem; line-height: 1.6; }
}

@media(max-width: 63.99rem) {
  [data-commerce-page="checkout"] .checkout-summary { grid-row: 1; }
  [data-commerce-page="checkout"] .checkout-form-column { grid-row: 2; }
}

.header-nav__actions > .commerce-cart-link { display: inline-flex; padding: .65rem; gap: .35rem; }
@media(max-width: 24rem) {
  .header-nav { grid-template-columns: 2.75rem minmax(0,1fr) auto; }
  .header-nav__actions > .commerce-cart-link { font-size: .6rem; }
}
