.wm-impersonation-banner {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgb(251 191 36 / 0.55);
    background: linear-gradient(90deg, rgb(255 251 235) 0%, rgb(254 243 199) 100%);
    box-shadow: 0 1px 2px rgb(180 83 9 / 0.08);
}

.wm-impersonation-banner__inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.5rem;
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(120 53 15);
}

.wm-impersonation-banner__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: rgb(251 191 36 / 0.35);
    color: rgb(146 64 14);
}

.wm-impersonation-banner__icon svg {
    width: 1rem;
    height: 1rem;
}

.wm-impersonation-banner__label {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgb(146 64 14);
}

.wm-impersonation-banner__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wm-impersonation-banner__text strong {
    font-weight: 700;
    color: rgb(69 26 3);
}

.wm-impersonation-banner__separator {
    flex-shrink: 0;
    color: rgb(217 119 6 / 0.65);
}

.wm-impersonation-banner__stop {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgb(217 119 6 / 0.35);
    background: rgb(255 255 255 / 0.85);
    color: rgb(146 64 14);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.wm-impersonation-banner__stop:hover {
    border-color: rgb(217 119 6 / 0.6);
    background: rgb(255 255 255);
    color: rgb(120 53 15);
}

.wm-impersonation-banner__stop svg {
    width: 0.95rem;
    height: 0.95rem;
}

@media (max-width: 640px) {
    .wm-impersonation-banner__inner {
        flex-wrap: wrap;
        row-gap: 0.35rem;
    }

    .wm-impersonation-banner__text {
        flex: 1 1 100%;
        order: 3;
        white-space: normal;
    }

    .wm-impersonation-banner__stop {
        margin-left: 0;
    }
}
