.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    border-top: 0;
    border-left: solid 4px transparent;
    border-radius: 4px;
    display: flex;
    align-items: center;
    list-style: none;
}

body:not(.woocommerce-account) ul.woocommerce-error {
    display: block;
    list-style: none;
}

.woocommerce-NoticeGroup.woocommerce-NoticeGroup-checkout ul {
    padding: 20px;
    line-height: 1.4;
}

.woocommerce-info,
.wc-block-components-notice-banner.is-info {
    border-color: var(--info-color);
    background: var(--info-color-bg);
    color: var(--info-color-text);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 6px solid;
    border-radius: 4px;
}

.wc-block-components-notice-banner.is-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--message-color-bg);
    border-radius: 4px;
    border-left: 6px solid;
    border-color: var(--message-color);
}

.woocommerce-info::before {
    color: var(--info-color);
    content: "";
}

.woocommerce-error,
.wc-block-components-notice-banner.is-error {
    border-color: var(--error-color);
    background-color: var(--error-color-bg);
    color: var(--error-color);
    padding: 20px;
    border-radius: 4px;
    display: flex;
    margin-bottom: 20px;
    border-left: 4px solid;
}

a.restore-item {
    font-weight: 600;
}

.woocommerce-error::before {
    color: var(--error-color);
}

.wc-block-components-notice-banner svg {
    display: none;
}

p.wc-block-components-notice-banner__summary {
    margin: 0;
}

.woocommerce-NoticeGroup.woocommerce-NoticeGroup-checkout ul {
    padding: 20px !important;
    line-height: 1.4;
    margin: 0px !important;
}

.woocommerce-message {
    border-color: var(--message-color);
    background-color: var(--message-color-bg);
    color: var(--message-color-text);
    padding: 20px;
    margin-bottom: 20px;
}

.woocommerce-message::before {
    color: var(--message-color);
}

.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before {
    top: 50%;
    transform: translate(0%, -50%);
}

a.woocommerce-Button.button,
a.restore-item,
.woocommerce .woocommerce-error .button,
.woocommerce .woocommerce-info .button,
.woocommerce .woocommerce-message .button,
.woocommerce-page .woocommerce-error .button,
.woocommerce-page .woocommerce-info .button,
.woocommerce-page .woocommerce-message .button {
    margin-left: auto;
    order: 3;
    text-decoration: none;
    color: var(--message-color-text);
}

.woocommerce-notices-wrapper {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.woocommerce-checkout .woocommerce-notices-wrapper {
    margin-bottom: 0;
}

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

@media (max-width:767px) {

    .woocommerce-error,
    .wc-block-components-notice-banner.is-error {
        padding: 20px 15px;
    }

    a.button.wc-backward {
        width: 100%;
        text-align: center;
    }
}