/* Phone cart + checkout (screens up to 640 px wide; desktop and tablets are not affected).
   Bigger tap targets (44 px+), stacked billing / fee choices, one-line totals, 16 px inputs (no iPhone zoom),
   and a bottom bar that takes the customer to the order summary. Markup is unchanged; this only restyles it. */
@media (max-width: 640px) {
  #cart-section { padding-bottom: 96px; }
  #cart-section .text-4xl { font-size: 1.75rem; line-height: 2.1rem; margin-bottom: 1.25rem; }
  /* item cards: name on top, then one row of  [-] qty [+]   price   Remove */
  #cart-items { margin-bottom: 2rem; }
  #cart-items > div:not(.gov-fet-row):not(.tf-row) { padding: 14px; gap: 10px; }
  #cart-items > div > div:last-child { width: 100%; justify-content: space-between; gap: 10px; }
  #cart-items > div > div:last-child > div:first-child { gap: 6px; }
  #cart-items button[onclick^="changeQty"] { width: 44px; height: 44px; font-size: 1.35rem; border-radius: 8px; }
  #cart-items button[onclick^="removeFromCart"] { min-height: 44px; padding: 0 12px; border: 1px solid #dc2626; border-radius: 8px; font-weight: 600; }
  #cart-items .text-right.w-28 { width: auto; flex: 1; }
  #cart-items .text-2xl { font-size: 1.3rem; }
  #cart-items .gov-fet-row, #cart-items .tf-row { padding: 10px 14px; gap: 12px; font-size: .9rem; }
  #cart-items .gov-fet-row > span:last-child, #cart-items .tf-row > span:last-child { white-space: nowrap; font-weight: 700; font-size: 1.05rem; }
  /* order summary */
  #cart-section .black-box { padding: 20px 16px; border-radius: 16px; }
  #cart-section .black-box .text-3xl { font-size: 1.5rem; line-height: 2rem; }
  #cart-section .black-box > .text-3xl { margin-bottom: 1rem; }
  #cart-items-summary { margin-bottom: 1.5rem; }
  #cart-items-summary > div { gap: 12px; font-size: .85rem; }
  #cart-items-summary > div > span:last-child { white-space: nowrap; }
  #cart-total { white-space: nowrap; }
  #cart-section .black-box > .flex.justify-between { align-items: baseline; gap: 12px; padding-top: 1.25rem; }
  #po-number { font-size: 16px; padding: 12px 14px; }
  /* billing type + Illinois tire fee choice: full-width option tiles */
  #billing-options { flex-direction: column; gap: 10px; }
  #billing-options label, #tf-box [role="radiogroup"] label {
    width: 100%; min-height: 52px; padding: 10px 14px; gap: 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; font-size: 1rem; line-height: 1.3; }
  #billing-options label:has(input:checked), #tf-box [role="radiogroup"] label:has(input:checked) { border-color: #fff; background: rgba(255,255,255,.14); }
  #billing-options input[type="radio"], #tf-box input[type="radio"] { width: 22px; height: 22px; flex: none; }
  #tf-box [role="radiogroup"] { gap: 10px; }
  #cart-section .black-box > .mb-10, #tf-box.mb-10 { margin-bottom: 1.5rem; }
  #cart-section button[onclick="checkout()"] { margin-top: 1.25rem; min-height: 60px; font-size: 1.15rem; font-weight: 700; border-radius: 12px; }
  #cart-section button[onclick="clearCart()"] { margin-top: 1.5rem; min-height: 44px; border-radius: 10px; }
  /* Government / Wholesale switch: two equal 44 px buttons */
  #main-app > #gov-bar [role="group"] { flex: 1; }
  #main-app > #gov-bar button { min-height: 44px; flex: 1; }
  /* bottom bar (cart-phone.js) */
  #cp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #111; color: #fff; border-top: 1px solid #000; box-shadow: 0 -4px 16px rgba(0,0,0,.25); }
  #cp-bar.cp-hide { display: none; }
  #cp-bar .cp-total { font-size: 1.15rem; font-weight: 700; white-space: nowrap; }
  #cp-bar .cp-total small { display: block; font-size: .7rem; font-weight: 500; opacity: .7; }
  #cp-bar button { min-height: 48px; padding: 0 18px; background: #fff; color: #000; font-weight: 700; border-radius: 10px; white-space: nowrap; }
}
@media (min-width: 641px) { #cp-bar { display: none !important; } }
