.price-tabs-wrapper {
    margin: 20px 0;
}

.price-tabs-wrapper.variable-product-price.variation-not-selected,
.price-tabs-wrapper.variable-product-price.variation-out-of-stock {
    display: none;
}

/* مخفی کردن قیمت پیش‌فرض ووکامرس هنگام استفاده از تب قیمت‌ها در محصولات متغیر */
.price-tabs-wrapper.variable-product-price + form.variations_form .woocommerce-variation-price {
    display: none !important;
}

.price-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.price-tab {
    flex: 1 1 50%;
    text-align: center;
    padding: 10px 16px;
    background: #f7f7f7;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.25s ease;
    position: relative;
    bottom: -2px;
    display: inline-block;
    border-radius: 8px 8px 0 0;
}

.price-tab:only-child {
    flex: 1 1 100%;
}

.price-tab[style*="display: none"] {
    display: none !important;
}

.price-tab:hover {
    color: #333;
}

.price-tab.active {
    color: #000;
    border-bottom-color: #000;
    background: #ffffff;
}
.price-tab[data-tab="regular"]{
color: #283c86;
    font-weight: 600;
}
/* هایلایت ملایم برای تب قیمت نقدی */
.price-tab[data-tab="cash"] {
    font-weight: 600;
    color: #1a7f37;
}

.price-tab[data-tab="cash"].active {
    background: linear-gradient(135deg, #e7f7ec, #ffffff);
    border-bottom-color: #1a7f37;
}

@keyframes cash-tab-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 127, 55, 0.55);
        transform: scale(1);
    }
    40% {
        box-shadow: 0 0 0 12px rgba(26, 127, 55, 0);
        transform: scale(1.04);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(26, 127, 55, 0);
        transform: scale(1);
    }
}

.price-tab[data-tab="cash"]:not(.active),
.price-tab[data-tab="regular"]:not(.active) {
    animation: cash-tab-pulse 1.5s ease-out 0.4s infinite;
}

.price-content {
    position: relative;
}

.price-tab-content {
    display: none;
}

.price-tab-content.active {
    display: block;
}

.price-tab-content .price {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-tab-content .price .woocommerce-Price-amount {
    font-size: 18px;
}

.price-tab-content .price del .woocommerce-Price-amount {
    font-size: 16px;
}

.price-tab-content .price ins .woocommerce-Price-amount {
    font-size: 18px;
}

.price-tab-content .price .ol-discount-percentage {
    font-size: 14px;
    margin-left: 5px;
}

@media (max-width: 768px) {
    .price-tab {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .price-tab-content .price {
        font-size: 16px;
    }
    
    .price-tab-content .price .woocommerce-Price-amount {
        font-size: 16px;
    }
    
    .price-tab-content .price del .woocommerce-Price-amount {
        font-size: 14px;
    }
    
    .price-tab-content .price ins .woocommerce-Price-amount {
        font-size: 16px;
    }
    
    .price-tab-content .price .ol-discount-percentage {
        font-size: 12px;
    }
}

