/* =========================================================================
   Custom WooCommerce Alert Messages Stylesheet
   ========================================================================= */

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    position: relative !important;
    border-top: 0 !important;
    border-radius: 12px !important;
    padding: 18px 24px 18px 56px !important;
    color: #1a1a1a !important;
    list-style: none !important;
    margin-bottom: 24px !important;
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
    display: flow-root !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid transparent !important;
    transition: all 0.3s ease !important;
}

/* Success Messages (WooCommerce Message) */
.woocommerce-message {
    background-color: #f0fdf4 !important; /* Soft green */
    border-color: #bbf7d0 !important;
    border-left: 4px solid #22c55e !important;
}

/* Error Messages */
.woocommerce-error {
    background-color: #fef2f2 !important; /* Soft red */
    border-color: #fecaca !important;
    border-left: 4px solid #ef4444 !important;
    padding-left: 56px !important;
}

/* Info Messages */
.woocommerce-info {
    background-color: #eff6ff !important; /* Soft blue */
    border-color: #bfdbfe !important;
    border-left: 4px solid #3b82f6 !important;
}

/* Custom Success/Error/Info icons using before pseudo-elements */
.woocommerce-message::before {
    content: "check_circle" !important;
    font-family: "Material Symbols Outlined" !important;
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 22px !important;
    color: #22c55e !important;
}

.woocommerce-error::before {
    content: "error" !important;
    font-family: "Material Symbols Outlined" !important;
    position: absolute !important;
    left: 20px !important;
    top: 20px !important; /* Errors can be multiline list, align top-ish */
    font-size: 22px !important;
    color: #ef4444 !important;
}

.woocommerce-info::before {
    content: "info" !important;
    font-family: "Material Symbols Outlined" !important;
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 22px !important;
    color: #3b82f6 !important;
}

/* Remove default WooCommerce list styling inside error lists */
.woocommerce-error li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
