/* ==========================================
   SGD - Global WooCommerce Notifications
   ========================================== */

/* Reset original theme containers */

.woocommerce-notices-wrapper,
.woocommerce .success-wrapper,
.woocommerce .notice-wrapper,
.woocommerce .error-wrapper,
.woocommerce-page .success-wrapper,
.woocommerce-page .notice-wrapper,
.woocommerce-page .error-wrapper {
    background: transparent !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    color: inherit !important;
}

.woocommerce-notices-wrapper {
    grid-column: 1 / -1;
}

/* Main notification styling */

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    position: relative;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    padding: 18px 20px 18px 50px !important;
    margin: 0 0 20px !important;
    border-radius: 9px !important;
    border: 1px solid !important;
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: none !important;
    list-style: none !important;
    float: none !important;
}

/* Success notifications */

.woocommerce-message {
    background: #edf8f1 !important;
    color: #176b3c !important;
    border-color: #b8dfc6 !important;
}

/* Error notifications */

.woocommerce-error {
    background: #fff0f0 !important;
    color: #a32121 !important;
    border-color: #efc1c1 !important;
}

/* Information notifications */

.woocommerce-info {
    background: #edf4fc !important;
    color: #24578c !important;
    border-color: #c4d8ee !important;
}

/* Notification icons */

.woocommerce-message::before,
.woocommerce-error::before,
.woocommerce-info::before {
    position: absolute !important;
    left: 18px !important;
    top: 18px !important;
    font-size: 20px !important;
    color: inherit !important;
    line-height: 1.2;
    font-family: Arial, sans-serif !important;
    display: block !important;
}

.woocommerce-message::before {
    content: "\2713" !important;
}

.woocommerce-error::before {
    content: "\26A0" !important;
}

.woocommerce-info::before {
    content: "\24D8" !important;
}

/* Notification links */

.woocommerce-message a:not(.button),
.woocommerce-error a:not(.button),
.woocommerce-info a:not(.button) {
    color: inherit !important;
    font-weight: 600;
    text-decoration: underline;
}

/* Error list spacing */

.woocommerce-error li {
    list-style: none !important;
    margin: 0;
}

.woocommerce-error li + li {
    margin-top: 8px;
}

/* Hide empty notifications */

.woocommerce-notices-wrapper:empty,
.woocommerce-message:empty,
.woocommerce-error:empty,
.woocommerce-info:empty {
    display: none !important;
}

/* Mobile styling */

@media (max-width: 767px) {

    .woocommerce-message,
    .woocommerce-error,
    .woocommerce-info {
        padding: 15px 15px 15px 42px !important;
        font-size: 13px !important;
        margin-bottom: 15px !important;
    }

    .woocommerce-message::before,
    .woocommerce-error::before,
    .woocommerce-info::before {
        left: 14px !important;
        top: 15px !important;
        font-size: 18px !important;
    }
}