.gnxm-global-nexum-minimum-notice {
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid currentColor;
    border-radius: 4px;
}

/* Cart/checkout validation warnings generated by this module only.
 * WooCommerce exposes notice data as data-* attributes on each <li>. The
 * parent is therefore restyled only when it contains a GLOBAL NEXUM minimum
 * order warning; unrelated WooCommerce errors retain their normal theme UI. */
.woocommerce-cart ul.woocommerce-error:has(> li[data-gnxm-minimum-order="1"]),
.woocommerce-checkout ul.woocommerce-error:has(> li[data-gnxm-minimum-order="1"]) {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 1.5rem !important;
    padding: 14px 18px 14px 48px !important;
    border: 1px solid var(--theme-color-error, #dc3545) !important;
    border-top-width: 2px !important;
    border-radius: 10px !important;
    background: #fff !important;
    line-height: 1.45;
}

.woocommerce-cart ul.woocommerce-error:has(> li[data-gnxm-minimum-order="1"])::before,
.woocommerce-checkout ul.woocommerce-error:has(> li[data-gnxm-minimum-order="1"])::before {
    top: 14px !important;
    left: 18px !important;
}

.woocommerce-cart .woocommerce-error > li[data-gnxm-minimum-order="1"],
.woocommerce-checkout .woocommerce-error > li[data-gnxm-minimum-order="1"] {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    line-height: 1.45;
}

.woocommerce-cart .woocommerce-error > li[data-gnxm-minimum-order="1"] + li[data-gnxm-minimum-order="1"],
.woocommerce-checkout .woocommerce-error > li[data-gnxm-minimum-order="1"] + li[data-gnxm-minimum-order="1"] {
    margin-top: 8px !important;
}
