/* ── پایه ── */
.azad-cash-box {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    direction: rtl;
    box-sizing: border-box;
    clear: both;
    float: none;
    position: relative;
}

.azad-cash-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #6ee7b7;
    color: #065f46;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.azad-cash-icon {
    font-size: 1em;
    line-height: 1;
    flex-shrink: 0;
}

.azad-cash-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.azad-cash-title {
    font-size: 0.78em;
    font-weight: 700;
    opacity: 0.9;
}

.azad-cash-amount {
    font-size: 0.95em;
    font-weight: 800;
    color: #047857;
    line-height: 1.3;
}

.azad-cash-amount .woocommerce-Price-amount {
    font-weight: inherit;
    color: inherit;
}

.azad-cash-sub {
    display: none;
}

/* ── کارت / اسلایدر ── */
.azad-cash-style-card {
    margin-top: 0;
}

.azad-cash-style-card .azad-cash-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 6px;
}

.azad-cash-style-card .azad-cash-icon {
    display: none;
}

.azad-cash-style-card .azad-cash-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
}

.azad-cash-style-card .azad-cash-title {
    font-size: 0.72em;
    flex-shrink: 0;
}

.azad-cash-style-card .azad-cash-amount {
    font-size: 0.82em;
    text-align: left;
    flex-shrink: 0;
}

.azad-cash-style-card .azad-cash-sub {
    display: none !important;
}

/* ── چیدمان زیر قیمت در کارت آوینا ── */
.product-box-price,
.pricebox {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 5px !important;
    overflow: visible !important;
    width: 100%;
}

.product-box-price > .price,
.pricebox > .price {
    display: block !important;
    width: 100% !important;
    float: none !important;
    position: relative;
    z-index: 2;
    line-height: 1.4;
}

.product-box-price.azad-cash-has-box > .price,
.pricebox.azad-cash-has-box > .price {
    margin-bottom: 0 !important;
}

.product-box-price > .azad-cash-box,
.pricebox > .azad-cash-box {
    order: 2;
    flex: 0 0 auto;
    width: 100% !important;
    margin-top: 0 !important;
    position: relative;
    z-index: 1;
}

.product-box .p-meta,
.product-box .product-box-info {
    overflow: visible !important;
}

.product-carousel .swiper-slide .product-box-info,
.product-carousel .swiper-slide .product-box-price,
.slides .swiper-slide .product-box-info,
.slides .swiper-slide .product-box-price,
.mob_scroll .product-box-info,
.mob_scroll .product-box-price {
    overflow: visible !important;
}

/* ── صفحه تک محصول ── */
.azad-cash-style-full .azad-cash-inner {
    padding: 14px 16px;
    border-radius: 12px;
    margin: 12px 0;
    align-items: flex-start;
}

.azad-cash-style-full .azad-cash-title {
    font-size: 0.9em;
}

.azad-cash-style-full .azad-cash-amount {
    font-size: 1.25em;
}

.azad-cash-style-full .azad-cash-sub {
    display: block;
    font-size: 0.82em;
    opacity: 0.75;
    line-height: 1.4;
}

.azad-cash-style-compact .azad-cash-sub {
    display: block;
    font-size: 0.72em;
    opacity: 0.75;
    line-height: 1.35;
}

.pro_price_sec .azad-cash-style-full {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.azad-cash-checkout-notice {
    margin-bottom: 16px !important;
}

.azad-cash-sep {
    opacity: 0.5;
    margin: 0 3px;
}

/* ── موبایل ── */
@media (max-width: 767px) {
    .azad-cash-style-card .azad-cash-inner {
        padding: 4px 7px;
    }

    .azad-cash-style-card .azad-cash-title {
        font-size: 0.65em;
    }

    .azad-cash-style-card .azad-cash-amount {
        font-size: 0.75em;
    }

    .product-carousel.mobile-two-col .azad-cash-style-card .azad-cash-title {
        font-size: 0.6em;
    }

    .product-carousel.mobile-two-col .azad-cash-style-card .azad-cash-amount {
        font-size: 0.68em;
    }

    .azad-cash-style-full .azad-cash-amount {
        font-size: 1.1em;
    }
}

@media (max-width: 400px) {
    .azad-cash-style-card .azad-cash-content {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .azad-cash-style-card .azad-cash-title,
    .azad-cash-style-card .azad-cash-amount {
        width: 100%;
        text-align: center;
    }
}
