/* Native Woo notices: preserve messages, links, lists, and live-region roles.
   The little login/coupon launchers and the existing archive toast are not notices to replace. */
body.a4un-surface {
  --a4un-wine:#7d142c;
  --a4un-ink:#28211f;
  --a4un-edge:#e7dfd8;
  --a4un-check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4 10-10'/%3E%3C/svg%3E");
  --a4un-info:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 11v5m0-9v.3'/%3E%3C/svg%3E");
  --a4un-warn:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.4 4.5a1.8 1.8 0 0 1 3.2 0L21 18a1.5 1.5 0 0 1-1.3 2.2H4.3A1.5 1.5 0 0 1 3 18Z'/%3E%3Cpath d='M12 9v4m0 3v.2'/%3E%3C/svg%3E");
}
/* In Elementor the product notice slot spans the viewport, unlike the product itself. */
body.a4un-surface.single-product .woocommerce-notices-wrapper:has(>:is(.woocommerce-message,.woocommerce-error,.woocommerce-info,.wc-block-components-notice-banner)){
  inline-size: min(calc(100% - 28px), 1180px); margin-inline:auto;
}
body.a4un-surface [class]:is(.woocommerce-message,.woocommerce-info,.woocommerce-error,.wc-block-components-notice-banner):not(:where(.woocommerce-form-coupon-toggle *, .woocommerce-form-login-toggle *)) {
  --a4un-mark:var(--a4un-info); --a4un-accent:var(--a4un-wine);
  box-sizing:border-box; position:relative; display:block; float:none; list-style:none outside;
  padding:12px 0; padding-inline:46px 14px; margin:0 0 14px;
  text-align:start; font:600 16px/1.5 Assistant,Arial,sans-serif;
  background:#fbf8f3; color:var(--a4un-ink); border:1px solid var(--a4un-edge); border-radius:12px;
  overflow-wrap:anywhere; min-block-size:48px;
}
body.a4un-surface [class]:is(.woocommerce-message,.wc-block-components-notice-banner.is-success) {
  --a4un-mark:var(--a4un-check)!important;
}
body.a4un-surface [class]:is(.woocommerce-error,.wc-block-components-notice-banner.is-error) {
  --a4un-mark:var(--a4un-warn)!important; --a4un-accent:#902338!important;
  background:#fdf4f4; border-color:#eed4d8;
}
body.a4un-surface [class]:is(.woocommerce-message,.woocommerce-info,.woocommerce-error,.wc-block-components-notice-banner):not(:where(.woocommerce-form-coupon-toggle *, .woocommerce-form-login-toggle *))::before{
  content:""; display:block; position:absolute; inset:auto; inset-inline-start:14px; inset-block-start:14px;
  inline-size:22px; block-size:22px; margin:0; background:var(--a4un-accent);
  -webkit-mask:var(--a4un-mark) center / contain no-repeat; mask:var(--a4un-mark) center / contain no-repeat;
}
body.a4un-surface [class]:is(.woocommerce-message,.woocommerce-info,.woocommerce-error,.wc-block-components-notice-banner):not(:where(.woocommerce-form-coupon-toggle *, .woocommerce-form-login-toggle *))::after {content:none}
body.a4un-surface .wc-block-components-notice-banner>svg[aria-hidden=true]{display:none}
body.a4un-surface :is(ul.woocommerce-error,.wc-block-components-notice-banner.is-error ul){list-style:none}
body.a4un-surface .woocommerce-error li+li,body.a4un-surface .wc-block-components-notice-banner.is-error li+li{margin-block-start:5px}
body.a4un-surface [class]:is(.woocommerce-message,.wc-block-components-notice-banner__content):has(>a.button.wc-forward){
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:4px 12px;
}
body.a4un-surface .woocommerce-message:has(>a.button.wc-forward),body.a4un-surface .wc-block-components-notice-banner:has(a.button.wc-forward){padding-block:6px}
body.a4un-surface :is(.woocommerce-notices-wrapper,.woocommerce,main,div) :is(.woocommerce-message,.wc-block-components-notice-banner__content)>a.button.wc-forward{
  /* The legacy card CSS also hides this native, non-card button with !important. */
  display:inline-flex!important; align-items:center; justify-content:center; float:none; position:static;
  width:auto; min-width:0; min-height:44px; margin:0; padding:6px 12px; box-sizing:border-box;
  font:700 15px/1.3 Assistant,Arial,sans-serif; text-align:center; white-space:normal;
  background:#fff; color:var(--a4un-wine)!important; border:1px solid #d5bdc0; border-radius:9px;
  box-shadow:none; text-decoration:none; opacity:1;
}
body.a4un-surface :is(.woocommerce-message,.wc-block-components-notice-banner__content)>a.button.wc-forward:hover{background:#f7edef}
body.a4un-surface :is(.woocommerce-message,.woocommerce-info,.woocommerce-error,.wc-block-components-notice-banner) a:focus-visible{outline:2px solid var(--a4un-wine);outline-offset:2px}
body.a4un-surface .a4up-flow form .coupon-error-notice{display:block;color:#902338;font:650 15px/1.4 Assistant,Arial,sans-serif;flex:1 0 100%;margin:4px 0 0;text-align:start;overflow-wrap:anywhere}
body.a4un-surface .a4up-flow form .coupon:has(.coupon-error-notice){flex-wrap:wrap}
body.a4un-surface .a4up-flow form #coupon_code[aria-invalid=true]{border:1px solid #a93c4e}
@media(max-width:540px){
  body.a4un-surface [class]:is(.woocommerce-message,.wc-block-components-notice-banner__content):has(>a.button.wc-forward){column-gap:8px}
  body.a4un-surface :is(.woocommerce-notices-wrapper,.woocommerce,main,div) :is(.woocommerce-message,.wc-block-components-notice-banner__content)>a.button.wc-forward{max-inline-size:108px;padding-inline:9px}
}
@media(forced-colors:active){
  body.a4un-surface :is(.woocommerce-message,.woocommerce-info,.woocommerce-error,.wc-block-components-notice-banner)::before{forced-color-adjust:none;background:CanvasText!important}
}
