/* Keep checkout readable on touch devices without restricting customer zoom. */
@media screen and (max-width: 800px), screen and (pointer: coarse) {
  #shop .checkout-form :is(input, select, textarea),
  #shop .cart-item-row select,
  #shop .cart-quantity input,
  #shop .promo-controls input {
    font-size: 16px;
  }
}

/* Receipt content must fit its column, including long email and order details. */
@media screen {
  #order-complete .confirmation-hero > *,
  #order-complete .confirmation-grid > * {
    min-width: 0;
  }

  #order-complete :is(h1, p, dd),
  #order-complete .receipt-line > span {
    overflow-wrap: anywhere;
  }

  #order-complete .receipt-line > span {
    min-width: 0;
  }

  #order-complete .receipt-line > strong {
    flex-shrink: 0;
  }
}

@media screen and (max-width: 800px) {
  #order-complete .confirmation-hero,
  #order-complete .confirmation-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #order-complete .receipt-line {
    gap: 12px;
  }

  #order-complete .actions > * {
    max-width: 100%;
  }
}
