/* Apptura Qty Stepper (apptura_qty_stepper) — cart page only (loaded by the view checkout/cart/after event).
   Scoped to #shopping-cart; direction-agnostic (logical properties), so RTL needs nothing extra. */

/* Theme steppers (apptura_mlayawkobaya .c-qty--sm is 40px): WCAG 2.2 2.5.8 / owner rule — 44px touch targets on
   touch screens and every width below the desktop layout. */
@media (pointer: coarse), (max-width: 1023.98px) {
  #shopping-cart .c-qty--sm { block-size: 44px; }
  #shopping-cart .c-qty--sm .c-qty__btn { inline-size: 44px; min-block-size: 44px; }
}

/* Fallback steppers (themes without their own): [−] [n] [+] inside the core input-group. */
#shopping-cart .apt-qs__btn {
  min-inline-size: 44px;
  min-block-size: 44px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
}
#shopping-cart .apt-qs input[name="quantity"] { text-align: center; min-inline-size: 3rem; min-block-size: 44px; }
#shopping-cart .apt-qs__btn:disabled { opacity: .45; cursor: not-allowed; }

/* WCAG 2.2 2.4.11: a focus ring that stays visible whatever the theme does to buttons. */
#shopping-cart .apt-qs__btn:focus-visible,
#shopping-cart .c-qty__btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}

/* Busy: numbers fade a little while the server re-renders them (no layout shift); the steppers stay usable. */
#shopping-cart[aria-busy="true"] #checkout-total,
#shopping-cart[aria-busy="true"] .p-checkout-line__total {
  opacity: .6;
  transition: opacity .15s linear;
}
@media (prefers-reduced-motion: reduce) {
  #shopping-cart[aria-busy="true"] #checkout-total,
  #shopping-cart[aria-busy="true"] .p-checkout-line__total { transition: none; }
}

/* Screen-reader-only live region */
.apt-qs-sr {
  position: absolute !important;
  inline-size: 1px; block-size: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}
