/* Kompakte Bestätigungen liegen über dem Header und verändern das Layout nicht. */
body .shop-notification,
body .woocommerce-message {
    position: fixed;
    top: calc(var(--site-header-offset, 0px) + 12px);
    left: 50%;
    z-index: 1001;
    box-sizing: border-box;
    width: min(620px, calc(100% - 40px));
    max-height: calc(100dvh - var(--site-header-offset, 0px) - 24px);
    overflow-y: auto;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--homeofgrizzlys-border);
    border-top: 3px solid var(--homeofgrizzlys-green);
    background: var(--homeofgrizzlys-surface);
    color: var(--homeofgrizzlys-white);
    font-family: 'Exo 2', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: 0 8px 28px rgb(0 0 0 / .45);
    transform: translateX(-50%);
}
body .shop-notification { display: flex; align-items: flex-start; gap: 12px; }
body .shop-notification--timed { border-top: 1px solid var(--homeofgrizzlys-border); }
.shop-notification__progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--homeofgrizzlys-green);
    transform-origin: left center;
    pointer-events: none;
}
body .shop-notification[hidden],
body .shop-notification__close[hidden] { display: none !important; }
.shop-notification__icon { flex: 0 0 24px; margin-top: 3px; color: var(--homeofgrizzlys-green); }
.shop-notification__icon--error { display: none; color: #e8b94b; }
.shop-notification[data-shop-notification-type="error"] .shop-notification__icon--success { display: none; }
.shop-notification[data-shop-notification-type="error"] .shop-notification__icon--error { display: block; }
.shop-notification__content { flex: 1; min-width: 0; align-self: center; overflow-wrap: anywhere; }
.shop-notification__content p { margin: 0; }
.shop-notification__content p + p { margin-top: 8px; }
body .shop-notification__content a,
body .woocommerce-message a.button {
    display: block;
    float: none;
    width: fit-content;
    margin: 4px 0 -6px;
    padding: 10px 0;
    border: 0;
    background: transparent;
    color: var(--homeofgrizzlys-white);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .04em;
    text-decoration: underline;
    text-decoration-color: var(--homeofgrizzlys-green);
    text-underline-offset: 4px;
    text-transform: uppercase;
}
body .shop-notification__content a:hover { color: var(--homeofgrizzlys-muted); }
body .shop-notification__close {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-height: 44px;
    margin: -8px -8px -8px 0;
    padding: 10px;
    border: 0;
    background: transparent;
    color: var(--homeofgrizzlys-white);
    cursor: pointer;
}
body .shop-notification__close:hover { background: var(--homeofgrizzlys-surface-raised); }
.shop-notification a:focus-visible,
.shop-notification__close:focus-visible { outline: 2px solid var(--homeofgrizzlys-white); outline-offset: 2px; }
/* Die klassische Meldung steht schon vor der JS-Initialisierung an derselben Stelle. */
body .woocommerce-message { padding-left: 48px; }
body .woocommerce-message::before { top: 16px; left: 16px; color: var(--homeofgrizzlys-green); }
@media (max-width: 900px) {
    body .shop-notification,
    body .woocommerce-message {
        top: calc(var(--site-header-offset, 0px) + 8px);
        width: calc(100% - 24px);
        max-height: calc(100dvh - var(--site-header-offset, 0px) - 16px);
        padding: 14px 12px;
        font-size: 14px;
    }
    body .shop-notification { gap: 10px; }
    body .woocommerce-message { padding-left: 44px; }
    body .woocommerce-message::before { top: 14px; left: 12px; }
}
