/* Design Tokens */
:root {
    --nb-brand-teal: #2AADB8;
    --nb-brand-teal-hover: #218c96;
    --nb-border-color: #E2E8F0;
    --nb-text-dark: #1E293B;
    --nb-text-muted: #64748B;
}

/* Style Standard WooCommerce notices wrapper */
.woocommerce-notices-wrapper {
    display: block !important;
    margin-bottom: 30px;
    width: 100%;
}

/* Base Notice Banner Style */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    color: var(--nb-text-dark) !important;
    padding: 18px 24px !important;
    border-radius: 12px !important;
    margin: 0 0 15px 0 !important;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.03) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    flex-direction: row !important;
}

/* WooCommerce Success Message Styling */
.woocommerce-message {
    background-color: #F0FDF4 !important; /* Light green tint */
    border-left: 4px solid var(--nb-brand-teal) !important;
}

/* WooCommerce Error List Styling */
.woocommerce-error {
    background-color: #FEF2F2 !important; /* Light red tint */
    border-left: 4px solid #EF4444 !important;
    list-style: none !important;
    display: block !important; /* Error can contain multiple list elements */
}

.woocommerce-error li {
    padding: 2px 0 !important;
}

/* WooCommerce Info Message Styling */
.woocommerce-info {
    background-color: #F8FAFC !important; /* Light slate tint */
    border-left: 4px solid #D9971C !important; /* Mustard Gold */
    flex-direction: row !important;
}

/* Style action buttons inside notices (e.g. "View cart") */
.woocommerce-message a.button,
.woocommerce-error a.button,
.woocommerce-info a.button {
    background-color: var(--nb-brand-teal) !important;
    color: #FFF !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease-in-out !important;
    border: none !important;
    float: none !important;
    margin: 0 !important;
    display: inline-block !important;
    height: auto !important;
    line-height: 1.4 !important;
}

.woocommerce-message a.button:hover,
.woocommerce-error a.button:hover,
.woocommerce-info a.button:hover {
    background-color: var(--nb-brand-teal-hover) !important;
}

/* Error lists check reset */
.woocommerce-error::before,
.woocommerce-message::before,
.woocommerce-info::before {
    display: none !important; /* Remove WooCommerce default pseudo icons as we use clean layout and colors */
}
