/* Dual Currency Display CSS */

/* Скриваме всички .dual-currency-price елементи, защото те се рендерират от старите hook-ове */
.dual-currency-price {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Стилизиране на двойната цена, която се добавя от JavaScript */
.price:has(span:contains('лв')) {
    font-weight: bold;
}

.price span[title*="BGN"] {
    color: #28a745;
    font-size: 0.9em;
    margin-left: 5px;
}

.dual-currency-bgn {
    color: #2ecc71 !important;
    font-weight: 600 !important;
    margin-left: 8px !important;
    font-size: 0.9em !important;
    display: inline-block !important;
}

.dual-currency-bgn::before {
    content: "(" !important;
}

.dual-currency-bgn::after {
    content: " лв.)" !important;
}

/* За да се избегне дублиране - скриваме всички BGN цени, които вече са добавени */
.price .dual-currency-bgn + .dual-currency-bgn,
.product-price .dual-currency-bgn + .dual-currency-bgn,
.current-price .dual-currency-bgn + .dual-currency-bgn {
    display: none !important;
}

/* Скриваме BGN цените в родителски елементи, ако детският вече има */
.product-price .current-price .dual-currency-bgn ~ .dual-currency-bgn {
    display: none !important;
}

/* Стилизация за различни типове ценови блокове */
.product-price .dual-currency-bgn,
.product-list-price .dual-currency-bgn,
.cart-total .dual-currency-bgn,
.checkout-summary .dual-currency-bgn,
.current-price .dual-currency-bgn {
    display: inline-block !important;
}

/* Специфични стилове за current-price */
.current-price .dual-currency-bgn {
    color: #2ecc71 !important;
    font-weight: 600 !important;
    margin-left: 8px !important;
    font-size: 0.9em !important;
    display: inline-block !important;
} 