/* Small-screen buying flow and persistent, actionable status messages. */
.pd-cart-feedback { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: #e9efe3; font-size: 15px; line-height: 1.6; }
.pd-cart-feedback a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.product-page #pd-tabs { scroll-margin-top: 150px; }
.cart-item-info > .cart-thumb { display: block; flex-shrink: 0; }
.cart-item-name a:focus-visible, .pd-cart-feedback a:focus-visible { outline: 3px solid #62755b; outline-offset: 4px; }
#receipt-order-no { user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; }
#coupon-retry { margin-top: 8px; min-height: 44px; }
.cart-next-hint { margin: 12px 0 18px; color: #606957; font-size: 15px; line-height: 1.7; }
.checkout-card-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1px solid #e6e7de; }
.checkout-card .checkout-card-heading h2 { padding: 0; margin: 0; border: 0; }
#checkout-items-count { display: inline-block; margin-left: 5px; color: #66745c; font-size: 16px; font-weight: 500; }
.checkout-edit-link { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; color: #344d2e; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.checkout-edit-link:focus-visible { outline: 3px solid #62755b; outline-offset: 3px; }
#checkout-layout [aria-invalid="true"] { border-color: #a73535; outline-color: #efcaca; }
#checkout-layout .error { color: #963030; font-size: 15px; line-height: 1.6; margin-top: 8px; }
.remove-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #8a8e82; text-decoration: none; }
.remove-btn:hover { background: #f1f2ec; color: #a73535; }
.remove-btn:focus-visible { outline: 3px solid #62755b; outline-offset: 2px; }
.checkout-error { padding: 12px 14px; margin-top: 12px; border: 1px solid #e7bcbc; border-radius: 9px; background: #fff4f2; color: #893333; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  /* Every product detail supplies its own inner spacing. */
  .product-page #tab-detail .detail-frame { width: calc(100% + 40px); max-width: none; margin-inline: -20px; border-radius: 0; }
}
@media (max-width: 620px) {
  #cart-root .data-table tr { position: relative; grid-template-areas: "info info" "qty price"; }
  #cart-root .data-table td:nth-child(1) { padding-right: 34px; }
  #cart-root .data-table td:nth-child(4) { position: absolute; top: 12px; right: 8px; }
  #cart-root .qty-stepper button, .product-page .qty-stepper button { min-height: 44px; min-width: 44px; }
  #checkout-items .checkout-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #checkout-items .cart-item-info { align-items: flex-start; gap: 14px; }
  #checkout-items .cart-thumb { width: 68px; height: 80px; }
  #checkout-items .cart-item-info > div:last-child { min-width: 0; }
  #checkout-items .checkout-item-price { padding-left: 82px; text-align: left; }
  #checkout-items .cart-item-name, #cart-root .cart-item-name { overflow-wrap: anywhere; }
  .order-detail-card .summary-row { align-items: flex-start; gap: 12px; }
  .order-detail-card .summary-row > span { flex: 0 0 30%; }
  .order-detail-card .summary-row > strong { min-width: 0; }
  .order-done h1 { font-size: 27px; }
  .order-done .order-no { font-size: 16px; letter-spacing: .01em; }
  .order-done .text-muted { font-size: 16px; line-height: 1.8; }
  .done-actions { flex-direction: column; align-items: stretch; }
  .done-actions .btn { width: 100%; min-height: 48px; }
}
