/**
 * nbrbcurrency.css
 * Шрифт НБРБ и стили для иконки белорусского рубля.
 */

@font-face {
    font-family: "nbrb-icon";
    src: url("../fonts/nbrb.woff2") format("woff2"),
         url("../fonts/nbrb.ttf")   format("truetype"),
         url("../fonts/nbrb.woff")  format("woff");
    unicode-range: U+E901, U+42, U+59, U+4E;
    font-display: swap;
}

.nbrb-icon {
    font-family: "nbrb-icon" !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    display: inline-block;
    vertical-align: baseline;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: normal;
    -webkit-font-feature-settings: "liga";
    -moz-font-feature-settings: "liga";
    -ms-font-feature-settings: "liga" 1;
    font-feature-settings: "liga";
    -webkit-font-variant-ligatures: discretionary-ligatures;
    font-variant-ligatures: discretionary-ligatures;
}

.nbrb-icon-byn:before {
    content: "\e901";
}

/* Фикс для Elementor — переопределяет font-size и display для иконки внутри виджетов */
.elementor-cart__summary-value .nbrb-icon,
.elementor-cart__summary-value i.nbrb-icon,
.elementor-cart__product-price .nbrb-icon,
.elementor-cart__product-price i.nbrb-icon,
.elementor-button-text .nbrb-icon,
.elementor-button-text i.nbrb-icon {
    font-family: "nbrb-icon" !important;
    font-size: inherit !important;
    display: inline !important;
    vertical-align: baseline !important;
}

/* Скрываем цены в корзине Elementor пока JS не заменит BYN — убирает мерцание */
.elementor-cart:not(.nbrb-ready) .elementor-cart__product-price,
.elementor-cart:not(.nbrb-ready) .elementor-cart__summary-value,
.elementor-cart:not(.nbrb-ready) .elementor-button-text {
    visibility: hidden;
}
