/* ===== استایل‌های افزونه اقساط مهستان - فرانت‌اند ===== */

/* --- متغیرهای رنگی مهستان --- */
:root {
    --mehestan-primary: rgb(244,130,32);
    --mehestan-primary-hover: rgb(220,110,20);
    --mehestan-gray: #f5f5f5;
    --mehestan-gray-border: #ddd;
    --mehestan-gray-text: #555;
    --mehestan-blue-accent: rgb(244,130,32);
}

/* ===== کمترین قسط روی کارت محصول (آرشیو/فروشگاه) ===== */
.mehestan-loop-installment {
    direction: rtl;
    display: flex;
    width: 100%;
    flex-basis: 100%;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin: 3px 0 1px;
    font-size: 15px;
    font-weight: 700;
    color: rgb(244,130,32);
    line-height: 1.45;
    clear: both;
}

/* حذف متن «محصولات موجود» وودمارت روی کارت محصولات آرشیو (غیرضروری) */
.wd-product .wd-product-stock,
.products .wd-product-stock,
ul.products li.product .wd-product-stock {
    display: none !important;
}

.mehestan-loop-installment strong {
    font-weight: 800;
    color: rgb(244,130,32);
}

/* آیکن راهنما + تولتیپ */
.mehestan-loop-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
    outline: none;
}

.mehestan-loop-tip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgb(244,130,32);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    font-style: normal;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1;
}

.mehestan-loop-tip-text {
    position: absolute;
    bottom: 130%;
    right: 50%;
    transform: translateX(50%);
    background: #333;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    padding: 5px 9px;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    pointer-events: none;
}

.mehestan-loop-tip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 50%;
    transform: translateX(50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

.mehestan-loop-tip:hover .mehestan-loop-tip-text,
.mehestan-loop-tip:focus .mehestan-loop-tip-text {
    opacity: 1;
    visibility: visible;
}

/* برچسب «نقدی:» و کوچک‌تر شدن قیمت اصلی */
.mehestan-loop-cash-label {
    font-size: 11px;
    font-weight: 600;
    color: #888;
}

.mehestan-loop-cash-price {
    font-size: 0.85em;
    color: #666;
}

/* وودمارت رنگ/نمایش قیمت داخل کارت را با اولویت بالا ست می‌کند (گاهی هم‌رنگ پس‌زمینه)،
   برای همین عددِ قیمت نقدی نامرئی می‌شد. اینجا آن را با اولویت بالاتر مرئی می‌کنیم. */
.wrap-price .price .mehestan-loop-cash-price,
.wrap-price .price .mehestan-loop-cash-price .woocommerce-Price-amount,
.wrap-price .price .mehestan-loop-cash-price .woocommerce-Price-amount bdi,
.wrap-price .price .mehestan-loop-cash-price .woocommerce-Price-currencySymbol,
.price .mehestan-loop-cash-price,
.price .mehestan-loop-cash-price .woocommerce-Price-amount,
.price .mehestan-loop-cash-price bdi,
.price .mehestan-loop-cash-price .woocommerce-Price-currencySymbol {
    color: #666 !important;
    -webkit-text-fill-color: #666 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline !important;
    font-size: inherit !important;
}
.price .mehestan-loop-cash-price {
    font-size: 0.85em !important;
}

/* ===== ریسپانسیو موبایل ===== */
@media (max-width: 768px) {
    .mehestan-loop-installment {
        font-size: 13px;
        gap: 3px;
        margin: 2px 0 1px;
    }
    .mehestan-loop-tip-icon {
        width: 13px;
        height: 13px;
        font-size: 9px;
    }
    .mehestan-loop-cash-label {
        font-size: 10px;
    }
    .mehestan-loop-cash-price {
        font-size: 0.82em;
    }
    /* روی موبایل تولتیپ ممکنه از کارت بزنه بیرون؛ شکستن خط مجاز */
    .mehestan-loop-tip-text {
        white-space: normal;
        max-width: 160px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .mehestan-loop-installment {
        font-size: 12px;
    }
    .mehestan-loop-cash-label {
        font-size: 9px;
    }
}

/* --- مخفی کردن دکمه افزودن پیش‌فرض ووکامرس وقتی باکس مهستان هست --- */
.mehestan-box ~ .single_add_to_cart_button,
.mehestan-box ~ form.cart,
body.single-product .mehestan-box-active .single_add_to_cart_button,
body.single-product .mehestan-box-active form.cart .single_add_to_cart_button,
body.single-product .mehestan-box-active .quantity {
    display: none !important;
}

/* --- باکس اصلی --- */
.mehestan-box {
    direction: rtl;
    font-family: 'IRANSans', 'Vazirmatn', 'Tahoma', sans-serif;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 0;
    margin: 15px 0;
    overflow: hidden;
    max-width: 100%;
}

/* --- انتخاب متغیرها (مستقل از ووکامرس) --- */
.mehestan-variations {
    padding: 14px 14px 4px;
    border-bottom: 1px solid #f0f0f0;
}

.mehestan-variation-row {
    margin-bottom: 12px;
}

.mehestan-variation-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.mehestan-variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mehestan-variation-btn {
    background: #fff !important;
    border: 1.5px solid #ddd !important;
    border-radius: 10px !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    color: #444 !important;
    line-height: normal !important;
    box-shadow: none !important;
}

.mehestan-variation-btn:hover {
    border-color: rgb(244,130,32) !important;
    color: rgb(244,130,32) !important;
    background: #fff9f5 !important;
}

.mehestan-variation-btn.active {
    background: rgb(244,130,32) !important;
    color: #fff !important;
    border-color: rgb(244,130,32) !important;
    font-weight: 600 !important;
}

.mehestan-variation-btn.disabled {
    opacity: 0.45 !important;
    background: #f3f3f3 !important;
    color: #aaa !important;
    border-color: #e5e5e5 !important;
    cursor: not-allowed !important;
    text-decoration: line-through;
    pointer-events: none;
}

.mehestan-variation-notice {
    font-size: 12px;
    color: #888;
    margin: 4px 0 8px;
}

.mehestan-variation-notice.error {
    color: #d63638;
    font-weight: 600;
}

.mehestan-variation-soldout {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #d63638;
    padding: 14px;
    background: #fff5f5;
    border-radius: 10px;
}

/* --- انتخاب نوع خرید (نقدی / قسطی) --- */
.mehestan-payment-type {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 12px;
}

.mehestan-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    cursor: pointer;
    transition: all 0.25s;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    margin-bottom: 10px;
    position: relative;
    background: #fff;
    user-select: none;
}

.mehestan-radio:last-child {
    margin-bottom: 0;
}

.mehestan-radio:hover {
    border-color: rgb(244,130,32);
    background: #fff9f5;
}

.mehestan-radio.active {
    border-color: rgb(244,130,32);
    background: #fff5ec;
    box-shadow: 0 0 0 1px rgb(244,130,32);
}

.mehestan-radio input[type="radio"] {
    display: none;
}

/* دایره رادیو سفارشی */
.mehestan-radio::before {
    content: '';
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    border: 2px solid #ccc;
    transition: all 0.2s;
    box-sizing: border-box;
}

.mehestan-radio.active::before {
    border-color: rgb(244,130,32);
    border-width: 6px;
    background: #fff;
}

.mehestan-radio__icon {
    display: none;
}

.mehestan-radio__label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.mehestan-radio__price {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mehestan-price-original {
    text-decoration: line-through;
    color: #aaa;
    font-size: 13px;
    font-weight: 400;
}

.mehestan-price-current {
    font-weight: 700;
    font-size: 15px;
    color: #333;
}

.mehestan-radio__details {
    margin-right: auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.mehestan-monthly-label {
    font-size: 11px;
    color: #888;
}

.mehestan-monthly-amount {
    font-weight: 700;
    font-size: 14px;
    color: rgb(244,130,32);
}

/* --- بهترین درگاه --- */
.mehestan-best-gateway {
    padding: 8px 18px;
    background: #f8fdf8;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}

.mehestan-best-gateway small {
    color: #666;
    font-size: 12px;
}

.mehestan-best-gateway strong {
    color: rgb(244,130,32);
}

/* --- توست اطلاع‌رسانی شناور --- */
.mehestan-toast {
    display: none;
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(50,50,50,0.92);
    color: #fff;
    padding: 12px 28px;
    border-radius: 24px;
    font-size: 14px;
    font-family: 'IRANSans', 'Vazirmatn', 'Tahoma', sans-serif;
    z-index: 999999;
    text-align: center;
    direction: rtl;
    max-width: 90vw;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
    pointer-events: none;
}

/* --- بخش قسطی --- */
.mehestan-installment-section {
    padding: 18px;
}

/* وقتی بخش قسطی داخل پنل انتخاب نوع پرداخت است */
.mehestan-payment-type .mehestan-installment-section {
    margin: -6px 0 10px;
    padding: 16px 18px;
    border: 1.5px solid rgb(244,130,32);
    border-top: none;
    border-radius: 0 0 12px 12px;
    background: #fffaf6;
}

.mehestan-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 14px;
}

/* --- گرید درگاه‌ها --- */
.mehestan-gateways-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}

.mehestan-gateway-btn {
    background: #fff !important;
    border: 1.5px solid #ddd !important;
    border-radius: 12px !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    color: #444 !important;
    min-width: 100px !important;
    text-align: center !important;
    line-height: normal !important;
    box-shadow: none !important;
}

.mehestan-gateway-btn:hover {
    border-color: rgb(244,130,32) !important;
    color: rgb(244,130,32) !important;
    background: #fff9f5 !important;
}

.mehestan-gateway-btn.active {
    background: rgb(244,130,32) !important;
    color: #fff !important;
    border-color: rgb(244,130,32) !important;
    font-weight: 600 !important;
}

/* --- لینک نحوه خرید --- */
.mehestan-how-to-buy {
    text-align: center;
    margin: 10px 0;
}

.mehestan-how-link {
    color: rgb(244,130,32);
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}

.mehestan-how-link:hover {
    text-decoration: underline;
}

.mehestan-info-icon {
    font-size: 14px;
    margin-left: 3px;
}

/* --- گرید طرح‌های اقساطی --- */
.mehestan-plans-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.mehestan-plans-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.mehestan-plan-btn {
    background: #fff !important;
    border: 1.5px solid #ddd !important;
    border-radius: 12px !important;
    padding: 10px 16px !important;
    font-size: 12px !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    color: #444 !important;
    text-align: center !important;
    line-height: normal !important;
    box-shadow: none !important;
}

.mehestan-plan-btn:hover {
    border-color: rgb(244,130,32) !important;
    color: rgb(244,130,32) !important;
    background: #fff9f5 !important;
}

.mehestan-plan-btn.active {
    background: rgb(244,130,32) !important;
    color: #fff !important;
    border-color: rgb(244,130,32) !important;
    font-weight: 600 !important;
}

/* --- نتیجه محاسبه --- */
.mehestan-calculation-result {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.mehestan-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
}

.mehestan-result-row span {
    color: #666;
}

.mehestan-result-row strong {
    font-size: 15px;
    color: #333;
}

.mehestan-result-monthly {
    color: rgb(244,130,32) !important;
    font-size: 17px !important;
}

.mehestan-info-tooltip {
    font-size: 12px;
    color: #999;
    cursor: help;
    margin-left: 3px;
}

/* --- لودینگ --- */
.mehestan-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: #888;
    font-size: 13px;
}

.mehestan-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid #e0e0e0;
    border-top-color: rgb(244,130,32);
    border-radius: 50%;
    animation: mehestan-spin 0.7s linear infinite;
}

@keyframes mehestan-spin {
    to { transform: rotate(360deg); }
}

/* --- تیک‌های وضعیت مشتری - افقی در یک خط --- */
.mehestan-customer-ticks {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.mehestan-customer-ticks .mehestan-section-title {
    margin-bottom: 10px;
}

.mehestan-ticks-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.mehestan-tick {
    display: inline-flex;
    align-items: center;
    padding: 4px 0;
    font-size: 12px;
    color: #444;
    cursor: pointer;
    white-space: nowrap;
}

.mehestan-tick input[type="checkbox"] {
    margin-left: 5px;
    cursor: pointer;
}

/* --- دکمه‌های عملیات --- */
.mehestan-actions {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mehestan-btn {
    display: block !important;
    width: 100% !important;
    padding: 14px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    text-align: center !important;
    transition: all 0.25s !important;
    border: none !important;
    line-height: normal !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.mehestan-btn--add-to-cart {
    background: rgb(244,130,32) !important;
    color: #fff !important;
}

.mehestan-btn--add-to-cart:hover {
    background: #777 !important;
    color: #fff !important;
}

.mehestan-btn--add-to-cart:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
}

.mehestan-btn--request {
    background: rgb(244,130,32) !important;
    color: #fff !important;
}

.mehestan-btn--request:hover {
    background: #777 !important;
    color: #fff !important;
}

/* --- پاپ‌آپ --- */
.mehestan-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mehestan-popup {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    position: relative;
    direction: rtl;
    max-height: 80vh;
    overflow-y: auto;
}

.mehestan-popup-close {
    position: absolute;
    top: 12px;
    left: 12px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.mehestan-popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-direction: row-reverse;
}

.mehestan-popup-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: contain;
}

.mehestan-popup-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.mehestan-popup-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.mehestan-popup-features {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.mehestan-popup-features li {
    padding: 8px 0;
    font-size: 13px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mehestan-popup-features li::before {
    content: '✓';
    color: rgb(244,130,32);
    font-weight: 700;
    font-size: 15px;
}

.mehestan-popup-more-btn {
    display: block;
    background: rgb(244,130,32);
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.mehestan-popup-more-btn:hover {
    background: rgb(220,110,20);
    color: #fff;
}

/* --- بخش چکاوت --- */
.mehestan-checkout-installment {
    background: #f8fcff;
    border: 1px solid #d0e8f5;
    border-radius: 10px;
    padding: 18px;
    margin: 15px 0;
    direction: rtl;
}

.mehestan-checkout-installment h3 {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #333;
}

.mehestan-checkout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid #eef5fa;
}

.mehestan-checkout-row:last-child {
    border-bottom: none;
}

.mehestan-checkout-total {
    padding-top: 12px;
    margin-top: 5px;
    border-top: 2px solid rgb(244,130,32);
}

.mehestan-checkout-total strong {
    color: rgb(244,130,32);
    font-size: 15px;
}

/* --- کنترل پیش‌پرداخت --- */
.mehestan-prepayment-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mehestan-prepay-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgb(244,130,32);
    background: #fff;
    color: rgb(244,130,32);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.mehestan-prepay-btn:hover {
    background: rgb(244,130,32);
    color: #fff;
}

.mehestan-prepay-amount {
    font-weight: 600;
    font-size: 14px;
    min-width: 130px;
    text-align: center;
}

/* --- صفحه تشکر --- */
.mehestan-thankyou-box table {
    border-collapse: collapse;
}

.mehestan-thankyou-box td {
    padding: 6px 10px;
    font-size: 13px;
}

/* --- ریسپانسیو --- */
@media (max-width: 480px) {
    .mehestan-gateway-btn {
        min-width: 80px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .mehestan-radio {
        padding: 12px 14px;
    }

    .mehestan-radio__price,
    .mehestan-monthly-amount {
        font-size: 13px;
    }

    .mehestan-popup {
        width: 95%;
        padding: 18px;
    }

    .mehestan-result-row strong {
        font-size: 13px;
    }
}

/* The native WoodMart/WooCommerce selector already exists in Elementor.
   Keep it in the DOM for gallery events, but don't show a second color picker.
   The class is set only when a matching variation form is actually present. */
body.single-product.mehestan-variation-picker-active
.elementor-widget-wd_single_product_add_to_cart
form.variations_form table.variations {
    display: none !important;
}

/* Cash-only promotion card: aligned with Mehestan's orange payment selector.
   Scoped to the product box so WoodMart global line/heading styles cannot break it. */
.mehestan-box .mehestan-cash-promo {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0 0 12px;
    padding: 12px 14px 10px;
    border: 1px solid #f5d2b4;
    border-right: 3px solid #f48220;
    border-radius: 10px;
    background: #fffaf5;
    color: #393939;
    direction: rtl;
    text-align: right;
    line-height: 1.65;
    font-size: 12px;
    font-weight: 400;
    overflow-wrap: anywhere;
}
.mehestan-box .mehestan-cash-promo[hidden],
.mehestan-box .mehestan-cash-promo [hidden] { display: none !important; }
.mehestan-box .mehestan-cash-promo__header {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    margin: 0 0 9px;
    padding: 0;
}
.mehestan-box .mehestan-cash-promo__symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    height: 28px;
    border-radius: 8px;
    background: #ffead7;
    color: #c75b0b;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
}
.mehestan-box .mehestan-cash-promo__titles { flex: 1 1 auto; min-width: 0; }
.mehestan-box .mehestan-cash-promo__heading {
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.7;
    color: #303030;
    text-align: right;
}
.mehestan-box .mehestan-cash-promo__badge {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 6px;
    background: #fff1e3;
    color: #ad530c;
    font-size: 10px;
    line-height: 1.6;
    white-space: nowrap;
}
.mehestan-box .mehestan-cash-promo__preview {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 7px;
    padding: 9px 10px 0;
    border-top: 1px dashed #f0d8c6;
    color: #6a625c;
    font-size: 11px;
    line-height: 1.8;
}
.mehestan-box .mehestan-cash-promo__preview-offer { color: #c45c11; font-weight: 700; font-size: 12px; }
.mehestan-box .mehestan-cash-promo__prices { display: block; width: 100%; }
.mehestan-box .mehestan-cash-promo__line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 9px;
    width: 100%;
    margin: 0;
    padding: 5px 0;
    font-size: 12px;
    line-height: 1.8;
    color: #6b625b;
    text-align: right;
}
.mehestan-box .mehestan-cash-promo__line > :last-child {
    justify-self: end;
    text-align: left;
    direction: rtl;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.mehestan-box .mehestan-cash-promo__base { font-size: 12px; color: #96908c; font-weight: 400; }
.mehestan-box .mehestan-cash-promo__saving { font-size: 12px; color: #bd5d10; font-weight: 600; }
.mehestan-box .mehestan-cash-promo__last {
    margin-top: 5px;
    padding-top: 10px;
    border-top: 1px solid #efdbc9;
    color: #2b2b2b;
    font-weight: 700;
}
.mehestan-box .mehestan-cash-promo__final { color: #d96713; font-size: 14px; font-weight: 700; }
@media (max-width: 520px) {
    .mehestan-box .mehestan-cash-promo { padding: 11px 10px; }
    .mehestan-box .mehestan-cash-promo__header { flex-wrap: wrap; gap: 7px; }
    .mehestan-box .mehestan-cash-promo__badge { display: none; }
    .mehestan-box .mehestan-cash-promo__line { font-size: 11px; gap: 6px; }
    .mehestan-box .mehestan-cash-promo__final { font-size: 12px; }
}
.mehestan-discount-totals-row th,.mehestan-discount-totals-row td{vertical-align:middle!important;padding-top:10px!important;padding-bottom:10px!important}
.mehestan-discount-totals-row th{font-weight:600!important}.mehestan-discount-totals-reason{display:block;color:#777;font-size:11px;font-weight:400;margin-top:4px}
.mehestan-discount-totals-value{color:#15803d;white-space:nowrap}
