/**
 * SFMA Wallet Frontend Stylesheet
 * @package Seftam_MA
 * @since   2.0.0
 */

/* 1. ويدجت الهيدر المباشر */
.sfma-header-wallet-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    color: #0f172a;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sfma-header-wallet-badge:hover {
    background: #f1f5f9;
    border-color: #0284c7;
    color: #0284c7;
}

/* 2. ويدجت صفحة الدفع */
.sfma-wallet-box {
    margin: 15px 0;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 3. كروت صفحة حساب العميل */
.sfma-myaccount-wallet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.sfma-wallet-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.sfma-wallet-card.cash-card {
    border-top: 4px solid #059669;
}

.sfma-wallet-card.points-card {
    border-top: 4px solid #0284c7;
}

.sfma-wallet-card.tier-card {
    border-top: 4px solid #f59e0b;
}

.sfma-card-val {
    font-size: 28px;
    font-weight: 800;
    margin-top: 8px;
}

/* 4. النوافذ المنبثقة للعميل (Modal) */
.sfma-custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sfma-custom-modal-dialog {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* 5. عجلة الحظ */
.sfma-wheel-wrapper {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-top: 25px;
}

#sfma-wheel-canvas {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

@media (max-width: 640px) {
    .sfma-myaccount-wallet-grid {
        grid-template-columns: 1fr;
    }
}
