/**
 * Payment Validator Frontend Styles
 */

.pv-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pv-notification-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pv-notification-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pv-notification-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.pv-notification-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

@keyframes pvSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.pv-notification {
    animation: pvSlideIn 0.3s ease;
}

/* Form loading state */
.elementor-form {
    position: relative;
}

.elementor-form[data-loading="true"] [type="submit"] {
    opacity: 0.7;
    pointer-events: none;
}

.pv-btn-loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pvSpin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 5px;
}

@keyframes pvSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Success/Error message styling */
.elementor-form .elementor-message {
    padding: 15px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 14px;
}

.elementor-form .elementor-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.elementor-form .elementor-message-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .pv-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        padding: 12px 15px;
        font-size: 14px;
    }
}
