/* استایل‌های فرانت‌اند واچر بیمه مسافرتی */
.parsian-insurance-widget {
    font-family: 'Vazirmatn', 'Samim', sans-serif;
    direction: rtl;
    margin: 20px 0;
}

/* استایل‌های مودال در فرانت‌اند */
.parsian-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.parsian-modal.active {
    display: flex;
}

.parsian-modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: parsianModalFadeIn 0.3s ease;
}

@keyframes parsianModalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.parsian-modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ef4444;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 10;
}

.parsian-modal-close:hover {
    background: #dc2626;
}

/* استایل‌های دکمه‌ها */
.parsian-btn-modal {
    cursor: pointer;
    transition: all 0.3s ease;
}

.parsian-btn-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* استایل‌های ریسپانسیو */
@media (max-width: 768px) {
    .parsian-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .parsian-voucher-card {
        flex-direction: column;
    }
}

/* جلوگیری از مشکلات نمایش */
body.parsian-modal-open {
    overflow: hidden;
}

/* استایل‌های چاپ */
@media print {
    .parsian-modal,
    .parsian-btn-modal,
    .parsian-modal-close {
        display: none !important;
    }
    
    .parsian-insurance-widget {
        break-inside: avoid;
    }
}