/*
 * Wolf Currency — переключатель «местная / $ / €». Кнопки берут цвет строки, куда встали (currentColor), — подходят тёмной и светлой шапке;
 * выпадающий список — светлая карточка поверх страницы, одинаково читается на любой теме.
 */
.wcur { position: relative; display: inline-flex; align-items: center; flex: none; white-space: nowrap; font-family: inherit; line-height: 1; }
.wcur__b { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; transition: background-color 0.25s ease-out, opacity 0.25s ease-out; }
.wcur__b b { font-weight: 700; }
.wcur__b:focus-visible, .wcur__now:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* шапка ПК: компактная кнопка «֏ ▾» и список под ней */
.wcur__now { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); border-radius: 999px; background: none; color: inherit; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color 0.25s ease-out; }
.wcur__now:hover, .wcur.is-open .wcur__now { border-color: currentColor; }
.wcur__now svg { transition: transform 0.25s ease-out; }
.wcur.is-open .wcur__now svg { transform: rotate(180deg); }
.wcur__menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 1000; display: grid; gap: 2px; width: 240px; padding: 8px; border-radius: 14px; background: #fff; color: #1d2130; box-shadow: 0 12px 32px rgba(16, 20, 32, 0.18), 0 0 0 1px rgba(16, 20, 32, 0.06); white-space: normal; animation: wcur-in 0.2s ease-out; }
.wcur__menu[hidden] { display: none; }
.wcur__menu .wcur__b { width: 100%; padding: 10px 12px; border-radius: 10px; font-size: 14px; text-align: left; }
.wcur__menu .wcur__b b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f1f3f6; font-size: 14px; }
.wcur__menu .wcur__b:hover { background: #f4f6f8; }
.wcur__menu .wcur__b[aria-pressed="true"] { background: #eef6ee; }
.wcur__menu .wcur__b[aria-pressed="true"] b { background: #1d2130; color: #fff; }
.wcur__foot { display: block; margin: 6px 4px 2px; padding-top: 8px; border-top: 1px solid #edf0f3; color: #6b7280; font-size: 12px; line-height: 1.4; }
@keyframes wcur-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* мобильное меню: подпись слева, три кнопки под палец */
.wcur--mob { display: flex; justify-content: space-between; gap: 12px; width: 100%; margin: 0 0 12px; font-size: 14px; }
.wcur--mob .wcur__cap { opacity: 0.8; }
.wcur__seg { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); border-radius: 999px; }
.wcur__seg .wcur__b { justify-content: center; min-width: 44px; height: 34px; padding: 0 10px; border-radius: 999px; font-size: 15px; opacity: 0.75; }
.wcur__seg .wcur__b[aria-pressed="true"] { background: color-mix(in srgb, currentColor 20%, transparent); opacity: 1; }

/* корзина и оформление: строка «оплата в местной валюте» */
.wcur-pay { margin: 8px 0 16px; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, currentColor 6%, transparent); font-size: 14px; line-height: 1.45; }
.wcur-pay[hidden] { display: none; }
.wcur-ref { display: inline-block; margin-left: 0.4em; font-size: 0.72em; font-weight: 500; line-height: 1.2; white-space: nowrap; opacity: 0.75; vertical-align: baseline; }
.wcur-ref::before { content: "("; } .wcur-ref::after { content: ")"; }
@media (prefers-reduced-motion: reduce) { .wcur__b, .wcur__now, .wcur__now svg { transition: none; } .wcur__menu { animation: none; } }
