/* PRATINIUM v513 — alignment of the currency selector only. */
@media (min-width: 768px) {
  #header .header-nav .right-nav #_desktop_currency_selector,
  #header .header-nav .right-nav .currency-selector {
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
  }
  #header .header-nav .right-nav .currency-selector > button,
  #header .header-nav .right-nav .currency-selector > a,
  #header .header-nav .right-nav .currency-selector .expand-more,
  #header .header-nav .right-nav .currency-selector .dropdown,
  #header .header-nav .right-nav #_desktop_currency_selector .expand-more {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }
}
#header .pf-v226-currency-toggle > span,
#header .pf-mobile-currency-toggle-v221 > span,
#header .pf-mobile-currency-toggle-v219 > span {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

/* PRATINIUM v514 — extra breathing room before the native dropdown chevron. */
#header #_desktop_currency_selector .expand-more,
#header #_mobile_currency_selector .expand-more,
#header .currency-selector .expand-more,
#header .currency-selector .material-icons,
#header .currency-selector .dropdown-toggle::after,
#header #_desktop_currency_selector .dropdown-toggle::after {
  margin-left: 12px !important;
}
#header .currency-selector .expand-more,
#header #_desktop_currency_selector .expand-more {
  flex-shrink: 0 !important;
}


/* PRATINIUM v515 — stabilise le sélecteur de devise avant normalisation pour éviter les flashes visibles. */
@media (min-width: 768px) {
  #header .header-nav .right-nav #_desktop_currency_selector,
  #header .header-nav .right-nav .currency-selector,
  #header .pf-checkout-expos-topbar-v473__right #_desktop_currency_selector,
  #header .pf-checkout-expos-topbar-v473__right .currency-selector {
    min-width: 0 !important;
    width: auto !important;
    max-width: max-content !important;
    flex: 0 0 auto !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  #header .header-nav .right-nav #_desktop_currency_selector:not(.pf-currency-ready) *,
  #header .header-nav .right-nav .currency-selector:not(.pf-currency-ready) *,
  #header .pf-checkout-expos-topbar-v473__right #_desktop_currency_selector:not(.pf-currency-ready) *,
  #header .pf-checkout-expos-topbar-v473__right .currency-selector:not(.pf-currency-ready) * {
    color: transparent !important;
    text-shadow: none !important;
    border-color: transparent !important;
  }

  #header .header-nav .right-nav #_desktop_currency_selector:not(.pf-currency-ready)::after,
  #header .header-nav .right-nav > .currency-selector:not(.pf-currency-ready)::after,
  #header .pf-checkout-expos-topbar-v473__right #_desktop_currency_selector:not(.pf-currency-ready)::after,
  #header .pf-checkout-expos-topbar-v473__right > .currency-selector:not(.pf-currency-ready)::after {
    color: transparent !important;
  }
}

/* PRATINIUM v516 — avoid cumulative widths between currency wrapper and nested selector. */
@media (min-width: 768px) {
  #header #_desktop_currency_selector .currency-selector,
  #header .currency-selector #_desktop_currency_selector {
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
  }
}

/* PRATINIUM v518 — fixed outer pill only, never stretch its children.
   Avoids the v517 overflow while keeping the width stable during currency changes. */
@media (min-width: 768px) {
  #header .header-nav .right-nav > #_desktop_currency_selector,
  #header .header-nav .right-nav > .currency-selector,
  #header .pf-checkout-expos-topbar-v473__right > #_desktop_currency_selector,
  #header .pf-checkout-expos-topbar-v473__right > .currency-selector {
    width: 286px !important;
    min-width: 286px !important;
    max-width: 286px !important;
    flex: 0 0 286px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    align-items: center !important;
    justify-content: center !important;
  }
  /* Inner dropdown elements must retain their natural dimensions. */
  #header .header-nav .right-nav > #_desktop_currency_selector .currency-selector,
  #header .pf-checkout-expos-topbar-v473__right > #_desktop_currency_selector .currency-selector {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 0 1 auto !important;
  }
}
