/* BRW_CURRENCY_V31 — activated only on BRW pages. */
.brw-currency-switcher{display:inline-flex;align-items:center;gap:3px;flex-shrink:0}
.brw-currency-switcher button{font:inherit;cursor:pointer;padding:5px 9px;background:#fff;color:#222;border:1px solid #aaa;border-radius:5px}
.brw-currency-switcher button[aria-pressed="true"]{border-color:#a9212a;color:#a9212a;font-weight:700}
.brw-currency-value{white-space:nowrap}
.brw-currency-rub{display:none}
html[data-brw-currency-mode="rub"] .brw-currency-value>.brw-currency-byn{display:none!important}
html[data-brw-currency-mode="rub"] .brw-currency-value>.brw-currency-rub{display:inline!important}
/* BRW_CURRENCY_V48_PAYMENT_NOTE: only RUB selected and site-local CSS loaded. */
.brw-currency-payment-note{display:none}
html[data-brw-currency-mode="rub"] .brw-currency-payment-note{display:block!important;font-size:13px;line-height:1.5;margin:8px 0 16px}


/* BRW V58 visible currency control: scoped BRW-only (assets load only when enabled/preview). */
.brw-currency-switcher{display:inline-flex!important;align-items:center;gap:8px;padding:5px 7px 5px 11px;
  border:1px solid #e4d8db;border-radius:999px;background:#fff;box-shadow:0 2px 12px rgba(33,31,38,.10);
  line-height:1.25;vertical-align:middle;flex-shrink:0;max-width:100%;box-sizing:border-box}
.brw-currency-switcher__caption{font:600 12px/1.2 Arial,sans-serif;color:#666;white-space:nowrap}
.brw-currency-switcher__choices{display:inline-flex;gap:3px;padding:3px;border-radius:999px;background:#f2f1f3}
.brw-currency-switcher .brw-currency-switcher__choices button{font:700 14px/1 Arial,sans-serif!important;
  border:0!important;border-radius:999px!important;background:transparent!important;color:#303039!important;
  min-width:56px;min-height:35px;padding:8px 12px!important;box-shadow:none!important;cursor:pointer}
.brw-currency-switcher .brw-currency-switcher__choices button[aria-pressed="true"]{
  color:#fff!important;background:#b21f2d!important;box-shadow:0 2px 7px rgba(178,31,45,.25)!important}
.brw-currency-switcher .brw-currency-switcher__choices button:focus-visible{outline:3px solid #2469c9;outline-offset:2px}
.brw-currency-switcher--basket{margin:0 0 18px 0;width:max-content}
.brw-currency-switcher--header-preview{margin:0 10px 0 0}
.brw-currency-v58-note{font:13px/1.55 Arial,sans-serif;color:#5e3b35;background:#fff8f4;
  border-left:3px solid #b21f2d;margin:0 0 14px;padding:9px 12px}
.brw-currency-v58-note[hidden]{display:none!important}
@media(max-width:767px){.brw-currency-switcher{padding:3px 4px;gap:4px;max-width:100%}
  .brw-currency-switcher__caption{display:none}
  .brw-currency-switcher .brw-currency-switcher__choices button{min-width:50px;min-height:34px;padding:8px 10px!important}
  .brw-currency-switcher--basket{margin:9px 0 14px}
  .brw-currency-switcher--header-preview{margin:4px 0 8px}}

/* BRW V59 — tidy, accessible currency control. Pure presentation. */
.brw-currency-ribbon-v59{box-sizing:border-box;display:flex;align-items:center;justify-content:flex-end;
  gap:12px;min-height:47px;width:100%;padding:6px 14px;background:#fff;
  border-top:1px solid #f3eeee;border-bottom:1px solid #efe9e9;position:relative;z-index:2}
.brw-currency-ribbon-v59__label{font:500 13px/1.4 Arial,sans-serif;color:#65646a;white-space:nowrap}
.brw-currency-switcher--v59{display:inline-flex!important;width:auto!important;max-width:100%!important;
  align-items:center!important;padding:3px!important;gap:0!important;margin:0!important;
  border:1px solid #d6d7dc!important;border-radius:12px!important;background:#f3f3f5!important;
  box-shadow:none!important;vertical-align:middle!important;line-height:normal!important}
.brw-currency-switcher--v59 .brw-currency-switcher__choices{display:flex!important;align-items:center!important;
  gap:3px!important;background:transparent!important;padding:0!important;border:0!important}
.brw-currency-switcher--v59 button[data-brw-currency-choice]{display:inline-flex!important;align-items:center!important;
  justify-content:center!important;gap:7px!important;min-width:73px!important;min-height:35px!important;
  box-sizing:border-box!important;margin:0!important;padding:8px 10px!important;
  border:0!important;border-radius:9px!important;background:transparent!important;
  color:#36383e!important;white-space:nowrap!important;font:600 12px/1 Arial,sans-serif!important;
  box-shadow:none!important;transition:background-color .16s,color .16s!important}
.brw-currency-switcher--v59 button[data-brw-currency-choice][aria-pressed="true"]{
  background:#b71c2a!important;color:#fff!important;box-shadow:0 1px 3px rgba(90,0,0,.10)!important}
.brw-currency-switcher--v59 button[data-brw-currency-choice]:focus-visible{outline:3px solid #245bbb!important;outline-offset:2px!important}
.brw-currency-switcher--v59 .brw-v59-byn-symbol{display:block!important;width:13px!important;height:16px!important;
  flex:0 0 13px;fill:currentColor;overflow:visible;vertical-align:middle}
.brw-currency-switcher--v59 .brw-v59-rub-symbol{font:700 19px/16px Arial,sans-serif!important;
  display:block;min-width:13px;height:18px;text-align:center}
.brw-currency-switcher--v59 .brw-v59-currency-code{font:700 12px/1 Arial,sans-serif!important;letter-spacing:.025em}
#id-cart-list .order-header:has(>.brw-currency-switcher--basket){display:flex!important;align-items:center!important;
  justify-content:space-between!important;gap:12px!important;flex-wrap:wrap!important;margin-bottom:12px!important}
#id-cart-list .order-header .brw-currency-switcher--basket{margin:0!important}
.brw-currency-v58-note:not([hidden]){display:block!important;margin:4px 0 14px!important;
  padding:9px 12px!important;border:1px solid #e8e0d4!important;border-left:3px solid #b71c2a!important;
  border-radius:3px!important;background:#fffaf4!important;color:#544d49!important;
  font:400 13px/1.45 Arial,sans-serif!important;box-shadow:none!important}
.brw-currency-v58-note[hidden]{display:none!important}
@media(max-width:767px){
  .brw-currency-ribbon-v59{min-height:44px;padding:5px 10px;gap:8px}
  .brw-currency-ribbon-v59__label{font-size:12px}
  .brw-currency-switcher--v59 button[data-brw-currency-choice]{min-width:66px!important;
    min-height:34px!important;padding:7px 8px!important;gap:5px!important}
  #id-cart-list .order-header:has(>.brw-currency-switcher--basket){gap:8px!important}
  .brw-currency-v58-note:not([hidden]){font-size:12px!important}
}

/* V60 — one header control, no secondary stripe, no duplicated basket toggle. */
.brw-currency-ribbon-v59{display:none!important;min-height:0!important;height:0!important;padding:0!important;border:0!important}
.brw-header-v9__right .brw-header-v9__basket.brw-v60-head-slot{
  display:flex!important;align-items:center!important;justify-content:flex-end!important;
  flex:0 0 auto!important;width:auto!important;min-width:0!important;
  padding:0!important;margin:0 0 0 12px!important;background:transparent!important;
  position:relative!important;right:auto!important;top:auto!important;transform:none!important;
}
.brw-v60-head-slot .brw-currency-switcher--v59{
  margin:0!important;max-width:100%!important;box-shadow:0 1px 4px rgba(0,0,0,.07)!important;
}
.brw-currency-switcher--v59.brw-currency-switcher--basket[hidden]{display:none!important}
.brw-v60-head-slot--mobile{
  box-sizing:border-box;display:flex;justify-content:flex-end;align-items:center;
  width:100%;padding:4px 10px;margin:0;background:transparent;
}
@media(min-width:768px) and (max-width:1250px){
  .brw-v60-head-slot .brw-currency-switcher--v59 button[data-brw-currency-choice]{
    min-width:62px!important;padding:7px 8px!important;gap:4px!important;
  }
  .brw-header-v9__right .brw-header-v9__basket.brw-v60-head-slot{margin-left:6px!important}
}
@media(max-width:767px){
  .brw-v60-head-slot--mobile{padding:4px 8px}
  .brw-v60-head-slot--mobile .brw-currency-switcher--v59 button[data-brw-currency-choice]{min-width:60px!important;min-height:33px!important}
}

/* V60.1 — independent BRW currency header slot; minicart owns its original block. */
.brw-header-v9__right:has(>.brw-v601-currency-slot){
  display:flex!important;align-items:center!important;justify-content:flex-end!important;
  flex-wrap:nowrap!important;gap:8px!important;min-width:0!important;
}
.brw-header-v9__right > .brw-v601-currency-slot{
  box-sizing:border-box!important;display:flex!important;flex:0 0 auto!important;
  position:relative!important;align-items:center!important;justify-content:center!important;
  inset:auto!important;transform:none!important;width:auto!important;height:auto!important;
  padding:0!important;margin:0!important;border:0!important;background:transparent!important;
}
.brw-header-v9__right > .brw-v601-currency-slot > .brw-currency-switcher{
  margin:0!important;max-width:100%!important;
}
/* Hide the redundant cart control only while the global header control is mounted. */
.brw-currency-switcher--basket[hidden]{display:none!important}
.brw-v601-currency-slot--mobile{
  display:flex!important;align-items:center!important;justify-content:flex-end!important;
  box-sizing:border-box!important;max-width:100%!important;padding:4px 8px!important;
  margin:0!important;position:relative!important;background:transparent!important;
}
@media(min-width:768px) and (max-width:1380px){
  .brw-header-v9__right:has(>.brw-v601-currency-slot){gap:5px!important}
  .brw-header-v9__right > .brw-v601-currency-slot button[data-brw-currency-choice]{
    min-width:45px!important;padding:7px 6px!important;gap:3px!important;
  }
  .brw-header-v9__right > .brw-v601-currency-slot .brw-v59-currency-code{
    font-size:0!important;letter-spacing:0!important;width:0!important;overflow:hidden!important;
  }
}
@media(max-width:767px){
  .brw-v601-currency-slot--mobile button[data-brw-currency-choice]{
    min-width:58px!important;min-height:33px!important;padding:7px!important;
  }
}
/* V60.2: the desktop toggle occupies a measured free gap, never phone/minicart width. */
.brw-header-v9__top.brw-v602-header-host{position:relative!important}
.brw-header-v9__top > .brw-v602-currency-slot{
  position:absolute!important;display:flex!important;flex:none!important;
  box-sizing:border-box!important;width:max-content!important;max-width:none!important;
  margin:0!important;padding:0!important;border:0!important;background:transparent!important;
  align-items:center!important;justify-content:center!important;z-index:3!important;
  right:auto!important;bottom:auto!important;transform:none!important;
}
.brw-header-v9__top > .brw-v602-currency-slot[hidden]{display:none!important}
.brw-header-v9__top > .brw-v602-currency-slot .brw-currency-switcher{margin:0!important}
.brw-header-v9__top > .brw-v602-currency-slot.brw-v602-compact .brw-v59-currency-code{
  display:none!important;
}
.brw-header-v9__top > .brw-v602-currency-slot.brw-v602-compact button[data-brw-currency-choice]{
  min-width:37px!important;padding:7px 6px!important;gap:0!important;
}


/* V62: compact mobile switcher in the red header; desktop remains unchanged. */
@media(max-width:767px){
  .brw-v62-mobile-header{position:relative!important}
  .brw-v62-mobile-header>.brw-v601-currency-slot--mobile{
    position:absolute!important;z-index:30!important;display:flex!important;
    width:max-content!important;max-width:none!important;height:auto!important;
    flex:none!important;align-items:center!important;justify-content:center!important;
    padding:0!important;margin:0!important;border:0!important;background:transparent!important;
    right:auto!important;bottom:auto!important;transform:none!important
  }
  .brw-v62-mobile-header>.brw-v601-currency-slot--mobile[hidden]{display:none!important}
  .brw-v62-mobile-header>.brw-v601-currency-slot--mobile .brw-currency-switcher{margin:0!important}
  .brw-v62-mobile-header>.brw-v601-currency-slot--mobile.brw-v62-mobile-compact .brw-v59-currency-code{display:none!important}
  .brw-v62-mobile-header>.brw-v601-currency-slot--mobile.brw-v62-mobile-compact button[data-brw-currency-choice]{
    min-width:37px!important;min-height:33px!important;padding:6px 8px!important;gap:0!important
  }
}
