/* Moyasar Payment Form Styles */

.moyasar-form-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

.moyasar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.moyasar-modal {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.moyasar-header {
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.moyasar-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.moyasar-header .close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.moyasar-header .close-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.moyasar-body {
    padding: 24px;
}

/* Override Moyasar default styles for better RTL support */
.mysr-form {
    direction: rtl;
    text-align: right;
}

.mysr-form input,
.mysr-form select,
.mysr-form button {
    font-family: 'Inter', 'Cairo', sans-serif;
}

/* Dark mode support */
[data-theme="dark"] .moyasar-modal {
    background: var(--card-background);
    color: var(--text-primary);
}

[data-theme="dark"] .moyasar-header {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .moyasar-header .close-btn {
    color: var(--text-secondary);
}

[data-theme="dark"] .moyasar-header .close-btn:hover {
    background: var(--hover-background);
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .moyasar-modal {
        max-width: 95%;
        max-height: 95vh;
    }

    .moyasar-header,
    .moyasar-body {
        padding: 16px;
    }

    .moyasar-header h3 {
        font-size: 18px;
    }
}
