
    /*
      CANNECTRA NOTICES / REFERENZ-DESIGN
      Produktionskomponente: nur Toasts, kein Header, Footer oder Seiteninhalt.
      Der aeussere Container bleibt transparent; keine globalen Resets.
      Die Pastellfarben und Statusfarben sind als Theme-Variablen definiert.
    */
    .cn-toast-region, .cn-notice, .wc-block-components-notice-banner,
    .woocommerce-message, .woocommerce-error, .woocommerce-info, .coupon-error-notice {
      --cn-toast-right: clamp(12px, 2.5vw, 38px);
      --cn-toast-top: clamp(12px, 3.5vw, 34px);
      --cn-toast-width: 430px;
      --cn-toast-gap: 16px;
      --cn-toast-shift-duration: 480ms;
      --cn-toast-radius: 20px;

      /* Referenz: vollflaechig helle Pastellkarten, Ton-in-Ton-Typografie. */
      --cn-toast-success: #00c66a;
      --cn-toast-success-bg: #dffbed;
      --cn-toast-error: #d6000b;
      --cn-toast-error-bg: #fee9e8;
      --cn-toast-info: #1874b8;
      --cn-toast-info-bg: #e7f3ff;
      --cn-toast-warning: #ed9d00;
      --cn-toast-warning-bg: #fffae8;
      --cn-toast-default: #55725f;
      --cn-toast-default-bg: #eef4ef;

      --cn-toast-shadow: 0 10px 26px rgba(29, 34, 31, .11),
                         0 3px 9px rgba(29, 34, 31, .035);
      --cn-toast-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    .cn-toast-region, .cn-toast-region * { box-sizing: border-box; }

    .cn-toast-region {
      position: fixed;
      z-index: 2147483000;
      inset: var(--cn-toast-top) var(--cn-toast-right) auto auto;
      display: flex;
      flex-direction: column;
      gap: 0;
      width: min(var(--cn-toast-width), calc(100vw - 24px));
      max-height: calc(100dvh - var(--cn-toast-top) - 12px);
      padding: 0 2px 8px;
      /* WICHTIG: Hidden/auto schneiden die Schatten rechteckig ab.
         Dadurch entstand der Eindruck eines grauen Container-Hintergrunds.
         Visible laesst die Kartenschatten ohne sichtbares Rechteck auslaufen. */
      overflow: visible;
      pointer-events: none;
      background: none;
      background-image: none;
      border: 0;
      box-shadow: none;
      filter: none;
      backdrop-filter: none;
    }
    .cn-toast-region::before,
    .cn-toast-region::after,
    .cn-toast-slot::before,
    .cn-toast-slot::after { content: none; }
    .cn-toast-slot { background: none; border: 0; box-shadow: none; }

    /* Die Slot-Hoehe faehrt ein/aus: die anderen Karten ruecken smooth nach. */
    .cn-toast-slot {
      flex: 0 0 auto;
      min-width: 0;
      height: 0;
      margin-bottom: 0;
      transition: height var(--cn-toast-shift-duration) cubic-bezier(.22, 1, .36, 1),
                  margin-bottom var(--cn-toast-shift-duration) cubic-bezier(.22, 1, .36, 1);
    }

    .cn-toast {
      --cn-status: var(--cn-toast-default);
      --cn-surface: var(--cn-toast-default-bg);
      position: relative;
      min-width: 0;
      overflow: hidden;
      isolation: isolate;
      color: var(--cn-status);
      background: var(--cn-surface);
      border: 1px solid rgba(255, 255, 255, .52);
      border-radius: var(--cn-toast-radius);
      box-shadow: var(--cn-toast-shadow);
      pointer-events: auto;
      transform: translate3d(0, 0, 0);
      animation: cn-toast-enter .38s cubic-bezier(.2, .8, .2, 1) both;
      transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
      contain: layout style;
    }
    .cn-toast:hover,
    .cn-toast:focus-within {
      box-shadow: 0 13px 30px rgba(29, 34, 31, .12),
                  0 4px 11px rgba(29, 34, 31, .045);
    }
    .cn-toast.is-leaving {
      opacity: 0;
      transform: translate3d(35px, 0, 0) scale(.985);
    }

    .cn-toast--success { --cn-status: var(--cn-toast-success); --cn-surface: var(--cn-toast-success-bg); }
    .cn-toast--error   { --cn-status: var(--cn-toast-error);   --cn-surface: var(--cn-toast-error-bg); }
    .cn-toast--info    { --cn-status: var(--cn-toast-info);    --cn-surface: var(--cn-toast-info-bg); }
    .cn-toast--warning { --cn-status: var(--cn-toast-warning); --cn-surface: var(--cn-toast-warning-bg); }
    .cn-toast--default { --cn-status: var(--cn-toast-default); --cn-surface: var(--cn-toast-default-bg); }

    /* Entladungsbalken, ohne Sekunden- oder Textanzeige. */
    .cn-toast__meter {
      height: 3px;
      width: 100%;
      overflow: hidden;
      background: color-mix(in srgb, var(--cn-status) 12%, transparent);
    }
    .cn-toast__meter-fill {
      display: block;
      width: 100%;
      height: 100%;
      background: var(--cn-status);
      transform: scaleX(1);
      transform-origin: left center;
      will-change: transform;
    }

    .cn-toast__inner {
      display: grid;
      grid-template-columns: 29px minmax(0, 1fr) 30px;
      align-items: start;
      column-gap: 13px;
      padding: 18px 16px 18px 18px;
    }
    .cn-toast__icon {
      display: grid;
      place-items: center;
      width: 29px;
      height: 29px;
      margin-top: 1px;
      border-radius: 50%;
      background: var(--cn-status);
      color: #fff;
      flex: 0 0 auto;
    }
    .cn-toast__icon svg {
      display: block;
      width: 18px;
      height: 18px;
      stroke-width: 2.3;
    }
    .cn-toast__body { min-width: 0; }
    .cn-toast__title {
      margin: 0;
      color: var(--cn-status);
      font-size: 16px;
      font-weight: 700;
      letter-spacing: -.017em;
      line-height: 1.32;
    }
    .cn-toast__description {
      margin: 3px 0 0;
      color: var(--cn-status);
      font-size: 14px;
      font-weight: 440;
      line-height: 1.45;
      overflow-wrap: anywhere;
    }
    .cn-toast__details {
      margin: 10px 0 0;
      padding-left: 17px;
      color: var(--cn-status);
      font-size: 13px;
      line-height: 1.55;
    }
    .cn-toast__details li + li { margin-top: 4px; }
    .cn-toast__details li::marker { color: var(--cn-status); }
    .cn-toast__tail {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
    }
    .cn-toast__action {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      min-height: 32px;
      padding: 7px 12px;
      border: 1px solid color-mix(in srgb, var(--cn-status) 22%, transparent);
      border-radius: 9px;
      background: rgba(255, 255, 255, .52);
      color: var(--cn-status);
      font: 650 12px/1.2 var(--cn-toast-font);
      text-decoration: none;
      text-align: left;
      cursor: pointer;
      transition: background .18s ease, transform .18s ease;
    }
    .cn-toast__action:hover {
      background: rgba(255, 255, 255, .82);
      transform: translateY(-1px);
    }
    .cn-toast__action svg { width: 12px; height: 12px; flex: none; }
    .cn-toast__close {
      display: grid;
      place-items: center;
      width: 30px;
      height: 30px;
      padding: 0;
      border: 0;
      border-radius: 9px;
      background: transparent;
      color: var(--cn-status);
      cursor: pointer;
      appearance: none;
      transition: background .18s ease;
    }
    .cn-toast__close:hover { background: rgba(255,255,255,.55); }
    .cn-toast__close svg { display: block; width: 21px; height: 21px; stroke-width: 3; }
    .cn-toast__action:focus-visible,
    .cn-toast__close:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

    @keyframes cn-toast-enter {
      from { opacity: 0; transform: translate3d(34px, -5px, 0) scale(.975); }
      to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
    }

    @media (max-width: 620px) {
      .cn-toast-region {
        --cn-toast-right: 12px;
        --cn-toast-top: 12px;
        --cn-toast-width: 100%;
        --cn-toast-gap: 13px;
        --cn-toast-radius: 18px;
      }
      .cn-toast-region { width: calc(100vw - 24px); }
      .cn-toast__inner {
        grid-template-columns: 28px minmax(0, 1fr) 28px;
        padding: 17px 13px 17px 15px;
        column-gap: 12px;
      }
      .cn-toast__icon { width: 28px; height: 28px; }
      .cn-toast__title { font-size: 15.5px; }
      .cn-toast__description { font-size: 13.5px; }
    }
    @media (prefers-reduced-motion: reduce) {
      .cn-toast-region * { scroll-behavior: auto !important; }
      .cn-toast { animation: none; transition: none; }
      .cn-toast-slot { transition: none; }
      .cn-toast__action { transition: none; }
      .cn-toast__close { transition: none; }
    }

/* Component-local isolation from theme typography and native button styles. */
.cn-toast-region { font-family: var(--cn-toast-font); }
.cn-toast__icon svg { fill: none; stroke: currentColor; }
.cn-toast__close { min-width: 0; min-height: 0; margin: 0; box-shadow: none; }
.cn-toast__close svg { fill: none; stroke: currentColor; }
.cn-toast__body { max-height: calc(100dvh - 145px); overflow-y: auto; overscroll-behavior: contain; }
.cn-toast__details { white-space: pre-line; }
.cn-toast__description { white-space: pre-line; }
.cn-toast__meter[hidden] { display: none; }

/* One canonical contextual card, including the no-JS/server response. */
.cn-notice.cn-toast {
  display: block;
  box-sizing: border-box;
  width: auto;
  margin: 0 0 16px;
  padding: 0 !important;
  font: 440 14px/1.45 var(--cn-toast-font) !important;
  text-align: left;
  background: var(--cn-surface) !important;
  color: var(--cn-status) !important;
  border: 1px solid rgba(255, 255, 255, .52) !important;
  border-radius: var(--cn-toast-radius) !important;
}
.cn-notice.cn-toast::before, .cn-notice.cn-toast::after { content: none; }
.cn-notice .cn-toast__body { max-height: none; overflow: visible; }
.cn-notice .cn-toast__inner { grid-template-columns: 30px minmax(0, 1fr) auto; }
.cn-notice .cn-toast__icon { font: 700 20px/1 var(--cn-toast-font); }
.cn-notice .cn-toast__description a, .cn-notice .cn-toast__details a { color: inherit; text-decoration: underline; }
.cn-notice .cn-toast__description .button { float: none; margin: 4px; }
.cn-toast-region .cn-notice { margin: 0; }
.cn-toast-region .cn-notice .cn-toast__body { max-height: calc(100dvh - 145px); overflow-y: auto; }

/* React, Interactivity and plugin-owned roots remain the SOLE renderer.
   CSS styles their actual controls; it never conceals an additional original.
   No added live region, store mirror, portal, node movement or replacement. */
.wc-block-components-notice-banner:not(.cn-notice),
.woocommerce-message, .woocommerce-error, .woocommerce-info, .coupon-error-notice {
  --cn-status: var(--cn-toast-info);
  --cn-surface: var(--cn-toast-info-bg);
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, .52) !important;
  border-radius: var(--cn-toast-radius) !important;
  background: var(--cn-surface) !important;
  color: var(--cn-status) !important;
  box-shadow: var(--cn-toast-shadow);
  font: 440 14px/1.45 var(--cn-toast-font) !important;
  overflow-wrap: anywhere;
  padding: 20px 18px !important;
  margin: 0 0 var(--cn-toast-gap);
}
.wc-block-components-notice-banner.is-success, .woocommerce-message {
  --cn-status: var(--cn-toast-success); --cn-surface: var(--cn-toast-success-bg);
}
.wc-block-components-notice-banner.is-error, .woocommerce-error, .coupon-error-notice {
  --cn-status: var(--cn-toast-error); --cn-surface: var(--cn-toast-error-bg);
}
.wc-block-components-notice-banner.is-warning {
  --cn-status: var(--cn-toast-warning); --cn-surface: var(--cn-toast-warning-bg);
}
.wc-block-components-notice-banner.is-default {
  --cn-status: var(--cn-toast-default); --cn-surface: var(--cn-toast-default-bg);
}
.wc-block-components-notice-banner:not(.cn-notice) { align-items: flex-start; gap: 14px; }
.wc-block-components-notice-banner:not(.cn-notice) > svg {
  flex: 0 0 30px;
  width: 30px; height: 30px;
  padding: 6px;
  border-radius: 50%;
  background: var(--cn-status) !important;
  color: #fff; fill: currentColor;
}
.wc-block-components-notice-banner__content { min-width: 0; }
.wc-block-components-notice-banner__content a { color: inherit !important; text-decoration: underline; }
.wc-block-components-notice-banner__dismiss {
  flex: 0 0 30px;
  width: 30px; min-height: 30px;
  padding: 0 !important;
  border: 0; border-radius: 9px;
  background: transparent; color: inherit;
}
.wc-block-components-notice-banner__dismiss:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.woocommerce-error { list-style-position: inside; }
.woocommerce-message::before, .woocommerce-error::before, .woocommerce-info::before { content: none; }
@media (max-width: 620px) {
  .cn-notice, .wc-block-components-notice-banner, .woocommerce-message, .woocommerce-error, .woocommerce-info { --cn-toast-radius: 18px; }
}
