/**
 * WC Multiple Carts - Public Styles
 * نسخه 6.0.1 — رفع مشکل باز شدن خودکار پاپ‌آپ
 *
 * @version 6.0.1
 */

/* ═══════════════════════════════════════════════════════════════
   ✅ Tab Styles - تب‌های سبد خرید
   ═══════════════════════════════════════════════════════════════ */

.woocommerce-cart .wc-multi-cart-tabs,
.wc-multi-cart-tabs {
    display: flex !important;
    gap: 0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    margin-bottom: 30px !important;
    background: none !important;
    background-color: transparent !important;
    padding: 0 !important;
}

.woocommerce-cart .wc-cart-tab,
.wc-multi-cart-tabs .wc-cart-tab,
button.wc-cart-tab {
    padding: 14px 24px !important;
    border: none !important;
    background: none !important;
    background-color: transparent !important;
    color: #CCCCCC !important;
    cursor: pointer !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    position: relative !important;
    border-bottom: 3px solid transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.woocommerce-cart .wc-cart-tab:hover,
.wc-multi-cart-tabs .wc-cart-tab:hover,
button.wc-cart-tab:hover {
    color: #999999 !important;
    background: none !important;
    background-color: transparent !important;
}

.woocommerce-cart .wc-cart-tab.active,
.wc-multi-cart-tabs .wc-cart-tab.active,
button.wc-cart-tab.active {
    color: #652FEA !important;
    font-weight: 600 !important;
    border-bottom-color: #652FEA !important;
    background: none !important;
    background-color: transparent !important;
}

.wc-cart-tab-icon {
    font-size: 18px !important;
    line-height: 1 !important;
}

.wc-cart-tab .cart-tab-count,
.cart-tab-count {
    background: none !important;
    background-color: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-size: 15px !important;
    font-weight: inherit !important;
    color: inherit !important;
    min-width: auto !important;
    text-align: center !important;
    box-shadow: none !important;
    border: none !important;
}

.wc-cart-tab.active .cart-tab-count {
    background: none !important;
    background-color: transparent !important;
    color: #652FEA !important;
    font-weight: 600 !important;
}

.wc-cart-tab.loading {
    opacity: 0.6 !important;
    pointer-events: none !important;
}

.wc-cart-tab.loading::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    right: 8px !important;
    width: 14px !important;
    height: 14px !important;
    margin-top: -7px !important;
    border: 2px solid rgba(101, 47, 234, 0.3) !important;
    border-top-color: #652FEA !important;
    border-radius: 50% !important;
    animation: spin 0.6s linear infinite !important;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════════
   🛒 دکمه پاک کردن سبد فعلی
   ═══════════════════════════════════════════════════════════════ */

.wc-clear-cart-btn {
    background: #000000 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 14px 32px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
    display: inline-block !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-decoration: none !important;
    text-shadow: none !important;
    outline: none !important;
}

.wc-clear-cart-btn:hover {
    background: #333333 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.wc-clear-cart-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

.wc-clear-cart-btn:focus {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1) !important;
}

.wc-clear-cart-btn.loading {
    opacity: 0.6 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

.wc-clear-cart-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.wc-clear-cart-wrapper {
    margin-top: 20px !important;
    text-align: center !important;
}

/* ═══════════════════════════════════════════════════════════════
   🎁 دکمه اعمال کد تخفیف
   ═══════════════════════════════════════════════════════════════ */

button[name="apply_coupon"] {
    background: #FFD700 !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 12px 28px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
    display: inline-block !important;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-decoration: none !important;
    text-shadow: none !important;
    outline: none !important;
}

button[name="apply_coupon"]:hover {
    background: #FFC700 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4) !important;
}

button[name="apply_coupon"]:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.35) !important;
}

button[name="apply_coupon"]:focus {
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2) !important;
}

/* ═══════════════════════════════════════════════════════════════
   🔄 دکمه به‌روزرسانی سبد
   ═══════════════════════════════════════════════════════════════ */

button[name="update_cart"] {
    background: #652FEA !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 12px 28px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.3s ease, transform 0.2s ease !important;
    display: inline-block !important;
    pointer-events: auto !important;
    opacity: 1 !important;
}

button[name="update_cart"]:hover {
    background: #5428C8 !important;
    transform: translateY(-1px) !important;
}

/* ═══════════════════════════════════════════════════════════════
   🔔 استایل نوتیفیکیشن
   ═══════════════════════════════════════════════════════════════ */

.wc-multi-cart-notice {
    position: fixed;
    top: 20px;
    right: 20px;
    left: auto;
    z-index: 999999;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    padding: 16px 48px 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(40, 167, 69, 0.35);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                opacity 0.3s ease;
    direction: rtl;
    font-family: inherit;
    max-width: calc(100vw - 40px);
    min-width: 280px;
}

.wc-multi-cart-notice.visible {
    transform: translateX(0);
    opacity: 1;
}

.wc-multi-cart-toast {
    font-family: 'IRANSans', 'Vazir', 'Tahoma', sans-serif !important;
    line-height: 1.6;
}

.wc-multi-cart-toast .toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.wc-multi-cart-toast .toast-message {
    flex-grow: 1;
}

.wc-multi-cart-toast .toast-close:hover {
    opacity: 0.7;
}

@keyframes wc-toast-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.wc-multi-cart-toast.wc-toast-success {
    animation: wc-toast-shake 0.3s ease-in-out;
    animation-delay: 0.4s;
}

/* ═══════════════════════════════════════════════════════════════
   📱 Responsive Design
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .wc-multi-cart-tabs {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .wc-cart-tab {
        flex-shrink: 0 !important;
        padding: 12px 20px !important;
        font-size: 14px !important;
    }

    .wc-clear-cart-btn {
        width: 100% !important;
        padding: 16px 32px !important;
        font-size: 16px !important;
    }

    button[name="apply_coupon"] {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .wc-cart-tab {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }

    .wc-clear-cart-btn {
        padding: 14px 24px !important;
        font-size: 15px !important;
    }

    button[name="apply_coupon"] {
        padding: 10px 24px !important;
        font-size: 13px !important;
    }

    .wc-multi-cart-toast {
        right: 10px !important;
        left: 10px !important;
        max-width: calc(100% - 20px) !important;
    }
}


/* ═══════════════════════════════════════════════════════════════════════
   ═══════════════════════════════════════════════════════════════════════
   
   📊 DISCOUNT PROGRESS POPUP — v6.0.1
   ✅ رفع مشکل باز شدن خودکار
   
   ═══════════════════════════════════════════════════════════════════════
   ═══════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════
   🛡️ v6.0.1 CRITICAL FIX: حالت پیش‌فرض = مخفی
   ═══════════════════════════════════════════════════════════════ */

/* ❌ حالت پیش‌فرض: مخفی — این مهم‌ترین بخش است */
#wcmc-dp-overlay,
#wcmc-mp-popup {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ✅ حالت باز: با کلاس wcmc-dp-visible */
#wcmc-dp-overlay.wcmc-dp-visible {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

#wcmc-mp-popup.wcmc-dp-visible {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}




/* ═══════════════════════════════════════════════════════════════
   🎭 Overlay — پس‌زمینه تاریک
   ═══════════════════════════════════════════════════════════════ */

#wcmc-dp-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.55) !important;
    z-index: 999999 !important;
    /* ❌ نباید display:flex اینجا باشد — توسط کلاس کنترل می‌شود */
    align-items: center !important;
    justify-content: center !important;
    direction: rtl !important;
    padding: 20px !important;
}


/* ═══════════════════════════════════════════════════════════════
   📦 Container — کادر اصلی پاپ‌آپ
   ═══════════════════════════════════════════════════════════════ */

#wcmc-dp-container {
    background: #fff !important;
    border-radius: 14px !important;
    width: 92% !important;
    max-width: 520px !important;
    max-height: 85vh !important;
    overflow: hidden !important;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.22) !important;
    display: flex !important;
    flex-direction: column !important;
    margin: auto !important;
}


/* ═══════════════════════════════════════════════════════════════
   🏷️ Header — عنوان و دکمه بستن
   ═══════════════════════════════════════════════════════════════ */

#wcmc-dp-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 18px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    background: #fafafa !important;
}

#wcmc-dp-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: #222 !important;
}

#wcmc-dp-close-btn {
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    cursor: pointer !important;
    color: #aaa !important;
    padding: 0 4px !important;
    line-height: 1 !important;
    transition: color 0.2s !important;
}

#wcmc-dp-close-btn:hover {
    color: #c0392b !important;
}


/* ═══════════════════════════════════════════════════════════════
   🚚 Shipping Bar — زمان ارسال
   ═══════════════════════════════════════════════════════════════ */

#wcmc-dp-shipping-bar {
    padding: 0 !important;
    display: none;
}

#wcmc-dp-shipping-bar.has-content {
    display: block !important;
    padding: 10px 18px !important;
    background: #f0fdf4 !important;
    border-bottom: 1px solid #dcfce7 !important;
    text-align: center !important;
}

.wcmc-dp-ship-label {
    font-size: 12.5px !important;
    color: #166534 !important;
    font-weight: 600 !important;
}

.wcmc-dp-ship-icon {
    margin-left: 6px !important;
}


/* ═══════════════════════════════════════════════════════════════
   📑 Tabs — تب‌های سبدها
   ═══════════════════════════════════════════════════════════════ */

#wcmc-dp-tabs {
    display: none;
    border-bottom: 1px solid #f0f0f0 !important;
    background: #fdfdfd !important;
    flex-wrap: wrap !important;
}

#wcmc-dp-tabs.has-tabs {
    display: flex !important;
}

.wcmc-dp-tab,
.wcmc-dp-tab-btn {
    flex: 1 !important;
    text-align: center !important;
    padding: 11px 8px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #666 !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    background: transparent !important;
    transition: all 0.2s !important;
}

.wcmc-dp-tab.active,
.wcmc-dp-tab-btn.active {
    color: #27ae60 !important;
    border-bottom-color: #27ae60 !important;
}

.wcmc-dp-tab:hover,
.wcmc-dp-tab-btn:hover {
    color: #27ae60 !important;
}


/* ═══════════════════════════════════════════════════════════════
   📄 Body — محتوای اصلی
   ═══════════════════════════════════════════════════════════════ */

#wcmc-dp-body {
    overflow-y: auto !important;
    padding: 16px 18px !important;
    flex: 1 !important;
}

.wcmc-dp-loading,
.wcmc-dp-empty {
    text-align: center !important;
    padding: 30px 15px !important;
    color: #999 !important;
    font-size: 13px !important;
}


/* ═══════════════════════════════════════════════════════════════
   📦 Product Row — نوار محصول با پیشرفت سبز
   ═══════════════════════════════════════════════════════════════ */

.wcmc-dp-product-row {
    margin-bottom: 16px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid #f5f5f5 !important;
}

.wcmc-dp-product-row:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

/* هدر محصول */
.wcmc-dp-prod-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 8px !important;
}

.wcmc-dp-prod-name {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #333 !important;
    flex: 1 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    margin-left: 10px !important;
}

.wcmc-dp-prod-badge {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #27ae60 !important;
    background: #e8f5e9 !important;
    padding: 3px 10px !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
}

.wcmc-dp-prod-badge.no-discount {
    color: #888 !important;
    background: #f5f5f5 !important;
}

/* نوار پیشرفت */
.wcmc-dp-bar-track {
    height: 8px !important;
    background: #eee !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    direction: ltr !important;
}

.wcmc-dp-bar-fill {
    height: 100% !important;
    border-radius: 4px !important;
    transition: width 0.5s ease !important;
}

.wcmc-dp-bar-green {
    background: linear-gradient(90deg, #81c784, #27ae60) !important;
}

.wcmc-dp-bar-gold {
    background: linear-gradient(90deg, #ffd54f, #f9a825) !important;
}

.wcmc-dp-bar-full {
    background: linear-gradient(90deg, #27ae60, #1b5e20) !important;
}

/* پیام زیر نوار */
.wcmc-dp-prod-msg {
    font-size: 12px !important;
    color: #666 !important;
    margin-top: 6px !important;
    line-height: 1.6 !important;
}

.wcmc-dp-prod-msg-done {
    color: #2e7d32 !important;
    font-weight: 600 !important;
}


/* ═══════════════════════════════════════════════════════════════
   🦶 Footer — سود سبد
   ═══════════════════════════════════════════════════════════════ */

#wcmc-dp-footer {
    display: none;
}

#wcmc-dp-footer.has-savings {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 18px !important;
    border-top: 1px solid #f0f0f0 !important;
    background: #fafafa !important;
}

.wcmc-dp-footer-label {
    font-size: 12.5px !important;
    color: #555 !important;
    font-weight: 500 !important;
}

.wcmc-dp-footer-val {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #27ae60 !important;
}


/* ═══════════════════════════════════════════════════════════════
   🔖 Guide Message — پیام راهنما (نسخه قدیمی)
   ═══════════════════════════════════════════════════════════════ */

.wcmc-dp-guide {
    background: #fff3cd !important;
    border: 1px solid #ffc107 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    margin-bottom: 14px !important;
    font-size: 12.5px !important;
    line-height: 1.8 !important;
    color: #856404 !important;
}


/* ═══════════════════════════════════════════════════════════════
   📊 Progress Bar — نوار پیشرفت (نسخه قدیمی/جدول)
   ═══════════════════════════════════════════════════════════════ */

.wcmc-dp-progress-wrap {
    margin: 14px 0 !important;
}

.wcmc-dp-progress-track {
    height: 22px !important;
    background: #f0f0f0 !important;
    border-radius: 11px !important;
    overflow: hidden !important;
    display: flex !important;
    direction: ltr !important;
}

.wcmc-dp-progress-seg {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #fff !important;
    transition: all 0.4s ease !important;
}

.wcmc-dp-progress-seg.passed {
    background: #27ae60 !important;
}

.wcmc-dp-progress-seg.active {
    background: #f39c12 !important;
}

.wcmc-dp-progress-seg.upcoming {
    background: #ddd !important;
    color: #999 !important;
}


/* ═══════════════════════════════════════════════════════════════
   📋 جدول تخفیفات (Tiers Table)
   ═══════════════════════════════════════════════════════════════ */

.wcmc-dp-tiers {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 10px !important;
    font-size: 12px !important;
}

.wcmc-dp-tiers th {
    background: #f5f5f5 !important;
    padding: 8px 10px !important;
    font-weight: 700 !important;
    color: #333 !important;
    border-bottom: 2px solid #ddd !important;
}

.wcmc-dp-tiers td {
    padding: 7px 10px !important;
    border-bottom: 1px solid #eee !important;
    color: #444 !important;
}

.wcmc-dp-tiers tr.active-tier td {
    background: #fff8e1 !important;
    font-weight: 600 !important;
}

.wcmc-dp-tiers tr.passed-tier td {
    background: #e8f5e9 !important;
    color: #999 !important;
}

.wcmc-dp-tiers tr.upcoming-tier td {
    background: #fff !important;
}

.wcmc-dp-tiers .scope-badge {
    display: inline-block !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    background: #e0e0e0 !important;
    color: #555 !important;
}

.wcmc-dp-tiers .scope-badge.scope-same_group {
    background: #e3f2fd !important;
    color: #1565c0 !important;
}

.wcmc-dp-tiers .scope-badge.scope-same_category {
    background: #fce4ec !important;
    color: #c62828 !important;
}

.wcmc-dp-tiers .scope-badge.scope-all {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
}


/* ═══════════════════════════════════════════════════════════════
   🔔 Mini Popup — پاپ‌آپ کوچک
   ═══════════════════════════════════════════════════════════════ */

#wcmc-mp-popup {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    z-index: 999998 !important;
    width: 320px !important;
    max-width: 90vw !important;
    direction: rtl !important;
    /* ❌ display توسط CSS بالا کنترل می‌شود */
}

#wcmc-mp-inner {
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden !important;
}

#wcmc-mp-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 14px !important;
    background: #f8f8f8 !important;
    border-bottom: 1px solid #eee !important;
}

#wcmc-mp-title {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #222 !important;
}

#wcmc-mp-close-btn {
    background: none !important;
    border: none !important;
    font-size: 18px !important;
    cursor: pointer !important;
    color: #999 !important;
}

#wcmc-mp-body {
    padding: 12px 14px !important;
}

.wcmc-mp-row {
    margin-bottom: 10px !important;
    font-size: 12px !important;
    color: #444 !important;
}

.wcmc-mp-row:last-child {
    margin-bottom: 0 !important;
}

.wcmc-mp-cat {
    font-weight: 700 !important;
    color: #222 !important;
}

.wcmc-mp-bar-bg {
    height: 8px !important;
    background: #eee !important;
    border-radius: 4px !important;
    margin-top: 4px !important;
    overflow: hidden !important;
    direction: ltr !important;
}

.wcmc-mp-bar-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #27ae60, #2ecc71) !important;
    border-radius: 4px !important;
    transition: width 0.5s ease !important;
}

.wcmc-mp-info {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 11px !important;
    margin-top: 3px !important;
    color: #888 !important;
}

.wcmc-mp-guide {
    font-size: 11px !important;
    margin-top: 4px !important;
    color: #856404 !important;
    background: #fff8e1 !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
}

#wcmc-mp-footer {
    padding: 8px 14px !important;
    border-top: 1px solid #eee !important;
    text-align: center !important;
}

#wcmc-mp-dismiss-label {
    font-size: 11px !important;
    color: #999 !important;
    cursor: pointer !important;
}

#wcmc-mp-dismiss-label input {
    margin-left: 4px !important;
}


/* ═══════════════════════════════════════════════════════════════
   📱 Responsive — پاپ‌آپ
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
    #wcmc-dp-container {
        width: 98% !important;
        max-height: 92vh !important;
        border-radius: 10px !important;
    }

    #wcmc-mp-popup {
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
    }
}
/* مخفی کردن ردیف جزئیات تخفیف پلکانی در سبد خرید و تسویه حساب */
.cart_totals table tr[class*="tiered-discount"],
.woocommerce-checkout-review-order-table tr[class*="tiered-discount"],
.cart_totals table tr.fee,
.woocommerce-checkout-review-order-table tr.fee {
    display: none !important;
}
/* ═══════════════════════════════════════════════════════════════
   📊 استایل دکمه پاپ آپ تخفیف در قالب وودمارت
   ═══════════════════════════════════════════════════════════════ */

#wcmc-dp-trigger {
    color: #27ae60 !important; /* رنگ سبز متن */
    font-weight: 700 !important; /* ضخامت فونت */
    font-size: 14px !important;
    margin-bottom: 15px !important; /* فاصله دقیق تا دکمه پایینی */
    padding: 10px 15px !important;
    background-color: #f5f5f5 !important; /* پس‌زمینه بسیار محو سبز برای جلوه بهتر */
    border: 1px dashed #f0f3f1 !important; /* حاشیه نقطه‌چین سبز */
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    justify-content: center !important; /* وسط‌چین کردن محتوا */
    width: 100% !important; /* هم‌عرض شدن با دکمه‌های اصلی */
    box-sizing: border-box !important;
}

#wcmc-dp-trigger:hover {
    background-color: #ffffff !important;
    transform: translateY(-2px) !important;
}

#wcmc-dp-trigger svg {
    fill: #27ae60 !important; /* سبز کردن آیکون SVG */
    transition: transform 0.3s ease !important;
}

#wcmc-dp-trigger:hover svg {
    transform: scale(0.1) !important; /* بزرگنمایی ملایم آیکون در هنگام هاور */
}
/* ═══ v18.0.0 — جداکننده بین نوارهای SKU مجزا ═══ */
.wcmc-dp-product-row + .wcmc-dp-product-row {
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px dashed #e8e0d0 !important;
}
/* ═══════════════════════════════════════════════════════════
   🔄 افکت لودینگ تب سبد هنگام سوییچ — v17.6.3
   ═══════════════════════════════════════════════════════════ */

/* انیمیشن چرخشی لودینگ */
@keyframes wcmc-tab-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* حالت لودینگ تب */
.wc-cart-tab.wcmc-tab-loading {
    position: relative !important;
    pointer-events: none !important;
    opacity: 0.7 !important;
    cursor: wait !important;
}

/* اسپینر روی تب */
.wc-cart-tab.wcmc-tab-loading::after {
    content: '' !important;
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-top-color: #fff !important;
    border-radius: 50% !important;
    animation: wcmc-tab-spin 0.6s linear infinite !important;
    margin-right: 8px !important;
    vertical-align: middle !important;
}

/* برای تب‌های با پس‌زمینه روشن */
.wc-cart-tab.wcmc-tab-loading:not(.active)::after {
    border-color: rgba(101, 47, 234, 0.2) !important;
    border-top-color: #652FEA !important;
}

/* غیرفعال کردن همه تب‌ها هنگام لودینگ */
.wc-cart-tabs-wrap.wcmc-switching .wc-cart-tab:not(.wcmc-tab-loading) {
    pointer-events: none !important;
    opacity: 0.5 !important;
}
