.woerki-feedback-region {
    position: fixed;
    z-index: 10080;
    top: var(
        --woerki-feedback-top,
        calc(
            var(--live-menu-height, 64px)
            + 12px
            + env(safe-area-inset-top)
        )
    );
    left: 50%;
    width: min(620px, calc(100vw - 32px));
    transform: translateX(-50%);
    display: grid;
    gap: 10px;
    pointer-events: none;
}

.woerki-feedback {
    --woerki-feedback-accent: #83c5ff;
    position: relative;
    min-height: 55px;
    padding: 13px 12px 16px 15px;
    border: 1px solid rgba(255,255,255,0.14);
    border-left: 4px solid var(--woerki-feedback-accent);
    border-radius: 8px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 32px;
    align-items: start;
    gap: 10px;
    color: #f7f9fb;
    background: rgba(25,32,38,0.98);
    box-shadow: 0 18px 44px rgba(0,0,0,0.34);
    pointer-events: auto;
    animation: woerki-feedback-in 180ms ease-out both;
}

.woerki-feedback:focus-visible {
    outline: 2px solid rgba(116,181,255,0.92);
    outline-offset: 2px;
}

.woerki-feedback > i {
    margin-top: 2px;
    font-size: 16px;
}

.woerki-feedback.is-success {
    --woerki-feedback-accent: #58b77b;
}

.woerki-feedback.is-info {
    --woerki-feedback-accent: #4b9fe8;
}

.woerki-feedback.is-warning {
    --woerki-feedback-accent: #e9a23b;
}

.woerki-feedback.is-error {
    --woerki-feedback-accent: #db5b58;
}

.woerki-feedback.is-success > i { color: #78d99a; }
.woerki-feedback.is-info > i { color: #83c5ff; }
.woerki-feedback.is-warning > i { color: #ffc66d; }
.woerki-feedback.is-error > i { color: #ff918e; }

.woerki-feedback-copy {
    min-width: 0;
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.woerki-feedback-close {
    width: 30px;
    height: 30px;
    margin: -3px -3px 0 0;
    border: 0;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.62);
    background: transparent;
    cursor: pointer;
}

.woerki-feedback-close:hover,
.woerki-feedback-close:focus-visible {
    color: #ffffff;
    background: rgba(255,255,255,0.09);
    outline: none;
}

.woerki-feedback-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    pointer-events: none;
}

.woerki-feedback-progress-fill {
    width: 100%;
    height: 100%;
    background: var(--woerki-feedback-accent);
    transform: scaleX(1);
    transform-origin: left center;
    animation-name: woerki-feedback-countdown;
    animation-duration: var(--woerki-feedback-duration, 5000ms);
    animation-timing-function: linear;
    animation-fill-mode: forwards;
    animation-play-state: running;
}

.woerki-feedback.is-paused
.woerki-feedback-progress-fill {
    animation-play-state: paused;
}

.woerki-feedback.is-leaving {
    animation: woerki-feedback-out 180ms ease-in both;
}

.woerki-feedback-noscript {
    margin: 12px auto;
    padding: 12px 14px;
    border-left: 4px solid #4b9fe8;
    border-radius: 8px;
    color: #f7f9fb;
    background: rgba(25,32,38,0.98);
}

.woerki-feedback-noscript.is-success { border-left-color: #58b77b; }
.woerki-feedback-noscript.is-warning { border-left-color: #e9a23b; }
.woerki-feedback-noscript.is-error { border-left-color: #db5b58; }

@keyframes woerki-feedback-countdown {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@keyframes woerki-feedback-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes woerki-feedback-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-8px); }
}

@media (max-width: 640px) {
    .woerki-feedback-region {
        width: calc(100vw - 20px);
    }

    .woerki-feedback {
        grid-template-columns: 20px minmax(0, 1fr) 30px;
        padding-left: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .woerki-feedback,
    .woerki-feedback.is-leaving {
        animation: none;
    }
}
