/* افکت پس‌زمینه مات و مودال */
.wcma-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    direction: rtl;
}

/* باکس اصلی پاپ‌آپ */
.wcma-modal-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 460px;
    padding: 28px;
    text-align: center;
    animation: wcmaScaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.wcma-modal-header {
    margin-bottom: 16px;
}

.wcma-modal-icon {
    font-size: 38px;
    display: inline-block;
    margin-bottom: 10px;
    animation: wcmaPulse 2.5s infinite;
}

.wcma-modal-header h3 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin: 0;
    font-weight: 700;
    line-height: 1.6;
}

.wcma-modal-body {
    margin-bottom: 24px;
}

.wcma-modal-body p {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.8;
    margin: 0;
}

/* دکمه نارنجی/قرمز زیبا و مدرن */
.wcma-btn-confirm {
    background-color: #ff5722 !important;
    color: #ffffff !important;
    border: none;
    padding: 12px 36px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.25);
    display: inline-block;
    border-radius: 8px !important;
}

.wcma-btn-confirm:hover {
    background-color: #f4511e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.35);
}

.wcma-btn-confirm:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.2);
}

/* استایل کادر هشدار در سبد خرید */
.wcma-cart-notice-wrapper .woocommerce-info,
.wcma-cart-notice-wrapper .woocommerce-message,
.wcma-cart-notice-wrapper .woocommerce-error {
    border-right: 4px solid #ff5722 !important; /* خط حاشیه راست (نارنجی) */
    border-top: 0 !important; /* حذف خط بالای کادر در صورت وجود */
    background-color: #fffaf8 !important; /* رنگ پس‌زمینه ملایم */
    color: #333333 !important; /* رنگ متن پیام */
}

/* رنگ آیکون پیش‌فرض ووکامرس در کادر */
.wcma-cart-notice-wrapper .woocommerce-info::before,
.wcma-cart-notice-wrapper .woocommerce-message::before {
    color: #ff5722 !important; /* رنگ آیکون (نارنجی) */
}

/* انیمیشن‌ها */
@keyframes wcmaScaleUp {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes wcmaPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}