/*
 * NetPear Commerce — WooCommerce Notices
 * Extracted from the original UI polish layer.
 * Desktop and mobile notification styling.
 */

/* ==========================================
   2. WOOCOMMERCE NOTIFICATION SYSTEM
   ========================================== */

body .woocommerce-notices-wrapper {
    width: 100%;
    clear: both;
}

body .woocommerce-notices-wrapper:empty {
    display: none;
}

/* Shared notification structure */

body .woocommerce-error,
body .woocommerce-message,
body .woocommerce-info {
    position: relative !important;

    display: block !important;
    width: 100% !important;

    margin: 0 0 26px !important;
    padding: 20px 24px 20px 66px !important;

    border-radius: 14px !important;
    border: 1px solid transparent !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.7 !important;

    list-style: none !important;
    box-shadow: none !important;

    overflow-wrap: anywhere;
}

/* Remove conflicting WooCommerce/theme icons */

body .woocommerce-error::before,
body .woocommerce-message::before,
body .woocommerce-info::before {
    position: absolute !important;
    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    top: 18px !important;
    left: 21px !important;

    width: 27px !important;
    height: 27px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: none !important;
    border-radius: 50% !important;

    font-family: Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1 !important;

    transform: none !important;
    float: none !important;
}

/* Errors */

body .woocommerce-error {
    background: #fff5f5 !important;
    border-color: #f3d4d4 !important;
    border-left: 4px solid #d64c4c !important;
    color: #833333 !important;
}

body .woocommerce-error::before {
    content: "!" !important;
    background: #fbe0e0 !important;
    color: #bd3434 !important;
}

/* Success */

body .woocommerce-message {
    background: #effaf3 !important;
    border-color: #ccead7 !important;
    border-left: 4px solid #23945a !important;
    color: #245d3c !important;
}

body .woocommerce-message::before {
    content: "✓" !important;
    background: #d9f2e2 !important;
    color: #207e4d !important;
}

/* Information */

body .woocommerce-info {
    background: #f1f7fc !important;
    border-color: #d6e7f4 !important;
    border-left: 4px solid #4686bc !important;
    color: #315c7b !important;
}

body .woocommerce-info::before {
    content: "i" !important;
    background: #dcecf8 !important;
    color: #346e9c !important;
}

/* Error list layout */

body ul.woocommerce-error {
    list-style: none !important;
}

body ul.woocommerce-error li,
body .woocommerce-error li {
    position: relative !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 5px !important;
    color: inherit !important;
    line-height: 1.7 !important;
}

body .woocommerce-error li:last-child {
    margin-bottom: 0 !important;
}

body .woocommerce-error li::before {
    display: none !important;
    content: none !important;
}

/* Notice action buttons */

body .woocommerce-message .button,
body .woocommerce-info .button,
body .woocommerce-error .button,
body .woocommerce-notices-wrapper .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    float: right !important;

    min-height: 38px !important;
    margin: 0 0 5px 15px !important;
    padding: 8px 17px !important;

    border: 1px solid #cde4d6 !important;
    border-radius: 9px !important;

    background: #ffffff !important;
    color: #206a43 !important;

    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

body .woocommerce-notices-wrapper .button:hover {
    background: #e6f5eb !important;
}

/* Hide default list markers */

body .woocommerce-error,
body .woocommerce-message,
body .woocommerce-info {
    list-style-type: none !important;
}

@media (max-width: 767px) {
body .woocommerce-error,
    body .woocommerce-message,
    body .woocommerce-info {
        padding: 17px 17px 17px 56px !important;
        margin-bottom: 20px !important;
        border-radius: 11px !important;
        font-size: 13px !important;
    }

    body .woocommerce-error::before,
    body .woocommerce-message::before,
    body .woocommerce-info::before {
        left: 16px !important;
        top: 16px !important;
        width: 25px !important;
        height: 25px !important;
    }

    body .woocommerce-notices-wrapper .button,
    body .woocommerce-error .button,
    body .woocommerce-message .button,
    body .woocommerce-info .button {
        float: none !important;
        display: flex !important;
        width: fit-content !important;
        margin: 12px 0 0 !important;
    }
}
