/**
 * UX Improver Styles
 * Version: 2.0.0
 */

/* استایل برای بوردر قرمز دور فیلدهای خالی */
#billing_first_name.ux-improver-field-error,
#billing_last_name.ux-improver-field-error,
#billing_email.ux-improver-field-error,
#billing_phone.ux-improver-field-error,
#billing_address_1.ux-improver-field-error,
#billing_city.ux-improver-field-error,
#billing_postcode.ux-improver-field-error,
input.ux-improver-field-error,
select.ux-improver-field-error,
textarea.ux-improver-field-error {
    border: 2px solid #ff0000 !important;
    border-color: #ff0000 !important;
    box-shadow: none !important;
}

/* استایل برای فیلدهای خطا در حالت focus */
#billing_first_name.ux-improver-field-error:focus,
#billing_last_name.ux-improver-field-error:focus,
#billing_email.ux-improver-field-error:focus,
#billing_phone.ux-improver-field-error:focus,
#billing_address_1.ux-improver-field-error:focus,
#billing_city.ux-improver-field-error:focus,
#billing_postcode.ux-improver-field-error:focus {
    border-color: #ff0000 !important;
    outline: none !important;
}

/* پیام خطا */
.ux-improver-error-message {
    color: #ff0000;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* استایل برای پاپ آپ فیلترشکن */
.ux-improver-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ux-improver-popup-content {
    background: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    font-family: inherit;
    max-width: 400px;
    margin: 20px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.ux-improver-popup-icon {
    margin-bottom: 20px;
}

.ux-improver-popup-icon svg {
    width: 48px;
    height: 48px;
}

.ux-improver-popup-content h3 {
    font-size: 22px;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

.ux-improver-popup-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
}

.ux-improver-popup-close {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 8px !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-transform: none;
}

.ux-improver-popup-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* استایل کارد تشخیص قطعی اینترنت */
.ux-improver-offline-card {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 12px 16px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: none;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    font-family: inherit;
    max-width: 280px;
    animation: slideInUp 0.3s ease;
}

@media (max-width: 768px) {
    .ux-improver-offline-card {
        bottom: 80px;
        right: 15px;
        left: 15px;
        max-width: none;
    }
}

.ux-improver-offline-icon {
    display: flex;
    align-items: center;
}

.ux-improver-offline-icon svg {
    width: 16px;
    height: 16px;
    color: white;
}

.ux-improver-offline-text {
    font-size: 14px;
    font-weight: normal;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}