/* fix6182 — "USD" after every visible price (Designer spec Nov 12).
   Load AFTER the latest companion CSS in layout/base.html
   (after fix6181.css on the 6.14.18 tree; after fix6220.css on the
   current unpublished Theme Dev draft).

   Approach: a real <span class="price-currency">USD</span> sibling
   after each amount (see components/products/price-currency.html).
   JS that does .html(formatted) on the amount node leaves the sibling
   in place. Do not use a CSS ::after "USD" safety net: a :has() guard
   can be dropped by a CSS pipeline or fail in Page Builder, which
   painted a second USD on server-rendered category cards
   ("$499.98 USD USD"). JS injectors already emit the span.

   "USD" is 0.75em / 500 weight / slightly tracked, same colour as the
   amount (not colour-only meaning). price+USD do not wrap. */

html body.dtc-c .price-usd:not(#a){
  white-space:nowrap!important;
  display:inline!important;
}
html body.dtc-c .price-currency:not(#a){
  display:inline-block!important;
  font-size:.75em!important;
  font-weight:500!important;
  letter-spacing:.06em!important;
  margin-left:.28em!important;
  color:inherit!important;
  -webkit-text-fill-color:currentColor!important;
  text-decoration:none!important;
  font-style:normal!important;
  white-space:nowrap!important;
  line-height:1!important;
  vertical-align:baseline;
}

/* Keep the amount + USD on one line at 390 and 1440 */
html body.dtc-c .price-section:not(#a),
html body.dtc-c .card-price:not(#a),
html body.dtc-c .listItem-price:not(#a),
html body.dtc-c .cart-item-value:not(#a),
html body.dtc-c .cart-total-value:not(#a),
html body.dtc-c .total-cart-price:not(#a),
html body.dtc-c .previewCartItem-price:not(#a),
html body.dtc-c .previewCartCheckout-price:not(#a),
html body.dtc-c .pdp-sticky-atc-price:not(#a),
html body.dtc-c .h5lc-price:not(#a),
html body.dtc-c .cbd-pr:not(#a),
html body.dtc-c .dtc-xs-price:not(#a),
html body.dtc-c .cart1-prod-price:not(#a),
html body.dtc-c .account-product-price:not(#a),
html body.dtc-c .account-orderTotal-value:not(#a),
html body.dtc-c .gift-certificate-balance-amount:not(#a),
html body.dtc-c .shipping-mess:not(#a),
html body.dtc-c .cbd-tot:not(#a),
html body.dtc-c .pdp-zip-l:not(#a),
html body.dtc-c .cart-totals-value:not(#a),
html body.dtc-c .pdp-sticky-cart-total:not(#a){
  white-space:nowrap;
}

/* Keep empty rrp / was-price USD labels hidden if the section's
   inline display:none is overridden (Page Builder / !important). */
html body.dtc-c .price-section[style*="display: none"],
html body.dtc-c .price-section[style*="display:none"]{
  display:none!important;
}
html body.dtc-c .price--rrp:empty + .price-currency,
html body.dtc-c .price--non-sale:empty + .price-currency,
html body.dtc-c [data-product-rrp-with-tax]:empty + .price-currency,
html body.dtc-c [data-product-rrp-price-with-tax]:empty + .price-currency,
html body.dtc-c [data-product-rrp-price-without-tax]:empty + .price-currency,
html body.dtc-c [data-product-non-sale-price-with-tax]:empty + .price-currency,
html body.dtc-c [data-product-non-sale-price-without-tax]:empty + .price-currency,
html body.dtc-c [data-product-price-saved]:empty + .price-currency{
  display:none!important;
}

/* Phone PDP sticky bar: fit "$192.98 USD" (and longer amounts) at
   360 / 390 / 430 without overlapping the quantity stepper. Stack
   the USD under the amount; keep Add to Cart at least 44px tall. */
@media (max-width:800px){
  html body.dtc-c .pdp-sticky-atc:not(#a){
    gap:6px;
    padding-left:10px;
    padding-right:10px;
  }
  html body.dtc-c .pdp-sticky-atc .c5-sq:not(#a){
    margin-right:0;
    flex:0 0 auto;
  }
  html body.dtc-c .pdp-sticky-atc-info:not(#a){
    flex:1 1 auto;
    min-width:0;
  }
  html body.dtc-c .pdp-sticky-atc-price:not(#a),
  html body.dtc-c .pdp-sticky-atc-price .price-usd:not(#a){
    display:flex!important;
    flex-direction:column;
    align-items:flex-start;
    white-space:nowrap!important;
    line-height:1.15;
    font-size:clamp(13px,4.1vw,16px);
  }
  html body.dtc-c .pdp-sticky-atc-price .price-currency:not(#a){
    margin-left:0!important;
    margin-top:1px;
    font-size:.7em!important;
    line-height:1.2!important;
  }
  html body.dtc-c .pdp-sticky-atc-btn:not(#a){
    min-height:44px;
    height:auto;
    padding:10px 12px;
    flex:0 0 auto;
  }
}
