/* =========================================================
   Minimum Order Amount Guard — v2
   - تعطيل الزر بشكل أنيق
   - إشعار نظيف وأرقام كبيرة واضحة
   ========================================================= */

/* ----------------------------------------------------------
   1) الزر المعطّل
   pointer-events:none ← لا يستجيب لأي ضغط (هذا الأهم)
   ---------------------------------------------------------- */
.moag-disabled {
    opacity: 0.45 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
    filter: grayscale(20%);
    transition: opacity 0.2s ease, filter 0.2s ease;
    user-select: none;
}

/* ----------------------------------------------------------
   2) الإشعار
   ---------------------------------------------------------- */
.moag-notice {
    box-sizing: border-box;
    margin: 0 0 14px;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #fde8c5;
    border-radius: 14px;
    box-shadow: 0 4px 14px -6px rgba(15, 23, 42, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
                 Tahoma, Arial, "Apple Color Emoji", sans-serif;
    color: #0f172a;
    direction: rtl;
    text-align: right;
    animation: moag-slide-in 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.moag-notice * { box-sizing: border-box; }

@keyframes moag-slide-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* رأس الإشعار */
.moag-notice__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.moag-notice__icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff4e6, #ffe8cc);
    color: #c2410c;
}

.moag-notice__titles {
    flex: 1 1 auto;
    min-width: 0;
}

.moag-notice__thanks {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 3px;
    letter-spacing: 0.1px;
}

.moag-notice__title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}

/* الصفوف (الأرقام) */
.moag-notice__rows {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.moag-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
    min-width: 0;
}

.moag-row__label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.1px;
    white-space: nowrap;
}

.moag-row__value {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.2px;
    direction: ltr;
    unicode-bidi: isolate;
    white-space: nowrap;
}

.moag-row--accent {
    background: #fff7ed;
    border-color: #fed7aa;
}

.moag-row--accent .moag-row__label {
    color: #9a3412;
}

.moag-row--accent .moag-row__value {
    color: #c2410c;
}

/* شريط التقدم */
.moag-notice__bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.moag-notice__bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #c2410c 100%);
    border-radius: 999px;
    transition: width 0.4s ease;
    min-width: 0;
}

/* ----------------------------------------------------------
   3) تكييفات للموبايل والسلال الجانبية الضيقة
   ---------------------------------------------------------- */
@media (max-width: 420px) {
    .moag-notice {
        padding: 14px 14px;
        border-radius: 12px;
    }
    .moag-notice__icon {
        width: 36px;
        height: 36px;
    }
    .moag-notice__title {
        font-size: 15px;
    }
    .moag-notice__thanks {
        font-size: 12px;
    }
    .moag-row {
        padding: 10px 6px;
    }
    .moag-row__label {
        font-size: 11px;
    }
    .moag-row__value {
        font-size: 16px;
    }
}

/* داخل السلة الجانبية (عادةً عرضها 360-400px) */
.xoo-wsc-cart-footer .moag-notice,
.fkcart-footer .moag-notice,
.cfw-side-cart-footer .moag-notice,
.wcaio-cart-footer .moag-notice {
    margin: 0 0 12px;
    padding: 14px;
}

.xoo-wsc-cart-footer .moag-row__value,
.fkcart-footer .moag-row__value,
.cfw-side-cart-footer .moag-row__value,
.wcaio-cart-footer .moag-row__value {
    font-size: 16px;
}

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    .moag-notice,
    .moag-notice__bar-fill,
    .moag-disabled {
        animation: none !important;
        transition: none !important;
    }
}
