/* ============================================================
   VELUR · WooCommerce-Meldungen (Einheitlichkeit 09.11.2026, k01;
   mit der Farbwelt Espresso live seit VEL-20261116-FARBWELT-NACHZUG)
   Eine Meldung für .woocommerce-error, -message und -info:
   weiß, 1 px Line, 12 px Ecke, Karla 15 px in Ink, Linien-Symbol
   links (Fehler in funktionalem Rot), kein Fokusrahmen um die Leiste.
   Ersetzt die goldene bzw. grüne Woodmart-Leiste mit weißer Schrift.

   Nur diese drei Klassen. Ausgenommen bleiben die Umschalt-Zeilen der
   Kasse (Gutschein, Anmeldung) und der alte Leer-Hinweis des Warenkorbs:
   sie tragen die Klasse .woocommerce-info, sind aber keine Meldungen.
   Der Vorsatz html body hebt die Regeln über Woodmart, egal in welcher
   Reihenfolge Autoptimize die Dateien zusammenfügt.
   ============================================================ */

html body .woocommerce-error,
html body .woocommerce-message,
html body .woocommerce-info:not(.cart-empty):not(.woocommerce-form-coupon-toggle > .woocommerce-info):not(.woocommerce-form-login-toggle > .woocommerce-info) {
  --vn-accent: var(--vlr-ink, #3a2a1f);
  --vn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5.5M12 7.6v.2'/%3E%3C/svg%3E");

  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  margin: 0 0 24px;
  padding: 15px 20px 15px 54px;
  list-style: none;
  border: 1px solid var(--vlr-line, #e6dfd5);
  border-radius: var(--vlr-radius-control, 12px);
  background: var(--vlr-white, #fff);
  box-shadow: none;
  color: var(--vlr-ink, #3a2a1f);
  font-family: var(--vlr-font-ui, "Karla", sans-serif);
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
}

/* Fehler: Kreis mit Ausrufezeichen in funktionalem Rot (6,5:1 auf Weiß). */
html body .woocommerce-error {
  --vn-accent: #b3261e;
  --vn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5V13M12 16.3v.2'/%3E%3C/svg%3E");
}

/* Bestätigung: Kreis mit Haken in Ink. */
html body .woocommerce-message {
  --vn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.4l2.7 2.7L16 9.6'/%3E%3C/svg%3E");
}

/* Linien-Symbol statt des Zeichens aus der Woodmart-Schrift (fehlt, leeres Kästchen). */
html body .woocommerce-error::before,
html body .woocommerce-message::before,
html body .woocommerce-info:not(.cart-empty):not(.woocommerce-form-coupon-toggle > .woocommerce-info):not(.woocommerce-form-login-toggle > .woocommerce-info)::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 20px;
  display: block;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--vn-accent);
  -webkit-mask: var(--vn-icon) center / contain no-repeat;
  mask: var(--vn-icon) center / contain no-repeat;
  font-size: 0;
  line-height: 0;
  transform: none;
}

/* Zeilen einer Meldung: kein Woodmart-Außenabstand, mehrere Fehler untereinander. */
html body .woocommerce-error > *,
html body .woocommerce-message > *,
html body .woocommerce-info:not(.cart-empty):not(.woocommerce-form-coupon-toggle > .woocommerce-info):not(.woocommerce-form-login-toggle > .woocommerce-info) > * {
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
}

html body .woocommerce-error > li + li,
html body .woocommerce-message > li + li {
  margin-top: 6px;
}

/* Links und Preise in der Meldung: Ink statt Weiß, Link unterstrichen. */
html body .woocommerce-error a,
html body .woocommerce-message a,
html body .woocommerce-info:not(.cart-empty):not(.woocommerce-form-coupon-toggle > .woocommerce-info):not(.woocommerce-form-login-toggle > .woocommerce-info) a,
html body .woocommerce-error a.button,
html body .woocommerce-message a.button,
html body .woocommerce-info:not(.cart-empty):not(.woocommerce-form-coupon-toggle > .woocommerce-info):not(.woocommerce-form-login-toggle > .woocommerce-info) a.button {
  float: none;
  display: inline;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--vlr-ink, #3a2a1f);
  font: inherit;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-transform: none;
}

/* „Warenkorb anzeigen“ steht als Knopf vor dem Satz: als Link mit Abstand zum Text. */
html body .woocommerce-error a.button,
html body .woocommerce-message a.button {
  margin-right: 8px;
}

html body .woocommerce-error a:hover,
html body .woocommerce-message a:hover,
html body .woocommerce-info:not(.cart-empty):not(.woocommerce-form-coupon-toggle > .woocommerce-info):not(.woocommerce-form-login-toggle > .woocommerce-info) a:hover {
  background: none;
  box-shadow: none;
  color: var(--vlr-ink, #3a2a1f);
  opacity: 0.72;
}

html body .woocommerce-error .amount,
html body .woocommerce-message .amount,
html body .woocommerce-info:not(.cart-empty):not(.woocommerce-form-coupon-toggle > .woocommerce-info):not(.woocommerce-form-login-toggle > .woocommerce-info) .amount {
  color: inherit;
}

/*
 * WooCommerce setzt nach dem Absenden den Fokus auf die Meldung (tabindex -1),
 * damit Screenreader sie vorlesen. Die Leiste ist kein Bedienelement: der
 * Fokusring des Design-Systems lag als zweiter Rahmen um sie herum.
 * Links in der Meldung behalten ihren Fokusring.
 */
html body .woocommerce-error:focus,
html body .woocommerce-message:focus,
html body .woocommerce-info:focus,
html body .woocommerce-error:focus-visible,
html body .woocommerce-message:focus-visible,
html body .woocommerce-info:focus-visible {
  outline: 0;
  box-shadow: none;
}

/* Warenkorb: Abstand zur Überschrift, an der Inhaltskante der Seite. */
html body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-error,
html body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-message,
html body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-info {
  padding-right: 20px;
}

@media (max-width: 640px) {
  html body .woocommerce-error,
  html body .woocommerce-message,
  html body .woocommerce-info:not(.cart-empty):not(.woocommerce-form-coupon-toggle > .woocommerce-info):not(.woocommerce-form-login-toggle > .woocommerce-info) {
    margin-bottom: 20px;
    padding: 14px 16px 14px 48px;
  }

  html body .woocommerce-error::before,
  html body .woocommerce-message::before,
  html body .woocommerce-info:not(.cart-empty):not(.woocommerce-form-coupon-toggle > .woocommerce-info):not(.woocommerce-form-login-toggle > .woocommerce-info)::before {
    top: 14px;
    left: 16px;
  }
}
