/**
 * FX Alert Shipping Styles
 * Styling for the Alaska/Hawaii shipping alert
 */

.fx-shipping-alert {
    margin: 20px 0;
    padding: 0;
    background: #6f0000;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    animation: fx-alert-fadein 0.3s ease-in;
}

.fx-alert-content {
    padding: 20px;
}

.fx-alert-content h4 {
    margin: 0 0 10px 0;
    padding: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.fx-alert-content p {
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
}

/* Animation for smooth appearance */
@keyframes fx-alert-fadein {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .fx-shipping-alert {
        margin: 15px 0;
    }
    
    .fx-alert-content {
        padding: 15px;
    }
    
    .fx-alert-content h4 {
        font-size: 16px;
    }
    
    .fx-alert-content p {
        font-size: 14px;
    }
}

/* Integration with common WooCommerce themes */
.woocommerce .fx-shipping-alert,
.woocommerce-page .fx-shipping-alert {
    clear: both;
}

/* Ensure proper spacing in checkout */
.woocommerce-checkout .fx-shipping-alert {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Cart page styling */
.woocommerce-cart .fx-shipping-alert {
    margin: 20px 0;
}

/* Ensure alert stands out but doesn't clash with theme colors */
.fx-shipping-alert.fx-important {
    background: #6f0000;
}

.fx-shipping-alert.fx-important .fx-alert-content h4 {
    color: #ffffff;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .fx-shipping-alert {
        border: 3px solid #ffffff;
        background: #6f0000;
    }
    
    .fx-alert-content h4 {
        color: #ffffff;
    }
    
    .fx-alert-content p {
        color: #ffffff;
    }
}

/* Print styles */
@media print {
    .fx-shipping-alert {
        border: 2px solid #000;
        background: #fff;
        page-break-inside: avoid;
    }
}

/* Focus and accessibility */
.fx-shipping-alert:focus-within {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Dark mode support for themes that use it */
@media (prefers-color-scheme: dark) {
    .fx-shipping-alert {
        background: #6f0000;
        color: #ffffff;
    }
    
    .fx-alert-content h4 {
        color: #ffffff;
    }
    
    .fx-alert-content p {
        color: #ffffff;
    }
}
