/**
 * Enhanced Error Message Styling
 * Styles for cleaned error messages in WooCommerce checkout
 */

/* Clean error message styling */
.woocommerce-error,
.woocommerce-notice--error {
    position: relative;
    padding: 15px 20px;
    margin: 15px 0;
    border-left: 4px solid #e74c3c;
    background-color: #fdf2f2;
    color: #721c24;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.woocommerce-error::before,
.woocommerce-notice--error::before {
    content: '⚠';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #e74c3c;
}

.woocommerce-error li,
.woocommerce-notice--error li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Mobile responsive styling */
@media (max-width: 768px) {
    .woocommerce-error,
    .woocommerce-notice--error {
        padding: 12px 15px;
        margin: 10px 0;
        font-size: 13px;
    }
    
    .woocommerce-error::before,
    .woocommerce-notice--error::before {
        font-size: 14px;
        left: 6px;
    }
}

/* Focus and accessibility improvements */
.woocommerce-error:focus,
.woocommerce-notice--error:focus {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

/* Enhanced contrast for better readability */
.woocommerce-error strong,
.woocommerce-notice--error strong {
    color: inherit;
    font-weight: 600;
}

.woocommerce-error a,
.woocommerce-notice--error a {
    color: #e74c3c;
    text-decoration: underline;
}

.woocommerce-error a:hover,
.woocommerce-notice--error a:hover {
    color: #c0392b;
}

/* Success message contrast for comparison */
.woocommerce-notice--success {
    border-left-color: #27ae60;
    background-color: #f0fff4;
    color: #155724;
}

/* Info message styling */
.woocommerce-notice--info {
    border-left-color: #3498db;
    background-color: #e6f3ff;
    color: #0c5460;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .woocommerce-error,
    .woocommerce-notice--error {
        background-color: #2d1b1b;
        color: #f8d7da;
        border-left-color: #dc3545;
    }
}
