/* Juwelier Hinweise v1.1 */

/* Standard-Balken unter der Navigation ausblenden – nur wenn JS laeuft (sonst bleiben sie als Fallback sichtbar).
   Meldungen innerhalb von Formularen (Checkout-Validierung) bleiben sichtbar. */
html.jw-js .woocommerce-notices-wrapper,
html.jw-js .e-woocommerce-notices-wrapper { display: none !important; }
html.jw-js form .woocommerce-notices-wrapper,
html.jw-js form .e-woocommerce-notices-wrapper { display: block !important; }

.jw-toasts {
    --jw-gold:   var(--e-global-color-accent, #c9b276);
    --jw-error:  #b4232a;
    --jw-text:   var(--e-global-color-text, #2b2b2b);
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(420px, calc(100vw - 32px));
    pointer-events: none;
    font-family: var(--e-global-typography-text-font-family, inherit);
}

.jw-toast {
    --jw-accent: var(--jw-gold);
    pointer-events: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 14px;
    padding: 16px 14px 16px 18px;
    background: #fff;
    color: var(--jw-text);
    border-radius: 14px;
    border-left: 4px solid var(--jw-accent);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .06);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .22s ease, transform .22s ease;
}
.jw-toast.is-visible { opacity: 1; transform: none; }
.jw-toast--error { --jw-accent: var(--jw-error); }

.jw-toast__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--jw-accent);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.jw-toast__body { min-width: 0; }
.jw-toast__text { overflow-wrap: anywhere; }
.jw-toast__text a { color: inherit; text-decoration: underline; }

.jw-toasts .jw-toast a.jw-toast__btn,
.jw-toasts .jw-toast a.jw-toast__btn:visited {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid var(--jw-gold);
    background: var(--jw-gold);
    color: #fff;
    font-family: var(--e-global-typography-accent-font-family, inherit);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .03em;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}
.jw-toasts .jw-toast a.jw-toast__btn:hover,
.jw-toasts .jw-toast a.jw-toast__btn:focus-visible { background: #fff; color: var(--jw-gold); border-color: var(--jw-gold); text-decoration: none; }

/* Schliessen-Button: hohe Spezifitaet, damit Theme-/Elementor-Kit-Buttonstile
   (Rahmen, Padding, Hintergrund, Hover-Farbe) nicht durchschlagen. */
.jw-toasts .jw-toast button.jw-toast__close,
.jw-toasts .jw-toast button.jw-toast__close:hover,
.jw-toasts .jw-toast button.jw-toast__close:focus,
.jw-toasts .jw-toast button.jw-toast__close:active {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    display: block;
    flex: none;
    box-sizing: border-box;
    width: 30px;
    height: 30px;
    min-width: 0;
    min-height: 0;
    margin: -5px -4px 0 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    color: #8a8a8a;
    font-size: 0;
    line-height: 0;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
/* Das x als zwei Linien zeichnen (unabhaengig von Schriftart/Theme) */
.jw-toasts .jw-toast button.jw-toast__close::before,
.jw-toasts .jw-toast button.jw-toast__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 1.5px;
    border-radius: 1px;
    background: currentColor;
}
.jw-toasts .jw-toast button.jw-toast__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.jw-toasts .jw-toast button.jw-toast__close::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.jw-toasts .jw-toast button.jw-toast__close:hover,
.jw-toasts .jw-toast button.jw-toast__close:focus-visible { background: #f2f0ea; color: #333; }

.jw-toasts .jw-toast a.jw-toast__btn:focus-visible,
.jw-toasts .jw-toast button.jw-toast__close:focus-visible { outline: 2px solid var(--jw-gold); outline-offset: 2px; }

@media (max-width: 600px) {
    .jw-toasts { left: 16px; right: 16px; bottom: 16px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .jw-toast { transition: none; transform: none; }
}
