/* Product restrictions and WooCommerce cart/checkout warning notices. */
.cmt-warning,
.woocommerce .woocommerce-error,
.woocommerce-page .woocommerce-error,
.wc-block-components-notice-banner.is-error,
.wc-block-components-notice-banner.is-warning {
    box-sizing: border-box;
    background: #fff !important;
    color: #e00000 !important;
    border: 1px solid #e00000 !important;
    border-radius: 4px;
    padding: 18px 24px !important;
    margin: 1em 0;
    text-align: center !important;
    line-height: 1.5;
}
.cmt-warning a,
.woocommerce .woocommerce-error a,
.woocommerce-page .woocommerce-error a,
.wc-block-components-notice-banner.is-error a,
.wc-block-components-notice-banner.is-warning a,
.woocommerce .woocommerce-error::before,
.woocommerce-page .woocommerce-error::before,
.wc-block-components-notice-banner.is-error .wc-block-components-notice-banner__content,
.wc-block-components-notice-banner.is-warning .wc-block-components-notice-banner__content {
    color: #e00000 !important;
}

/* Keep the notice text centered, without a theme icon offsetting it. */
.woocommerce .woocommerce-error::before,
.woocommerce-page .woocommerce-error::before { display: none; }
.wc-block-components-notice-banner.is-error,
.wc-block-components-notice-banner.is-warning { justify-content: center; align-items: center; }
.wc-block-components-notice-banner.is-error > svg,
.wc-block-components-notice-banner.is-warning > svg { display: none; }
.wc-block-components-notice-banner.is-error .wc-block-components-notice-banner__content,
.wc-block-components-notice-banner.is-warning .wc-block-components-notice-banner__content { flex: 1; text-align: center; }
