.nightflat-cookie-banner {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    width: min(500px, calc(100vw - 32px));
    overflow: hidden;
    padding: 11px 12px;
    border: 1px solid rgb(var(--neon-primary-rgb, 214 111 150) / 0.38);
    border-radius: 8px;
    background:
        radial-gradient(circle at 11% 16%, rgb(var(--neon-secondary-rgb, 88 213 246) / 0.18), transparent 8.5rem),
        linear-gradient(135deg, rgb(var(--neon-primary-rgb, 214 111 150) / 0.14), transparent 58%),
        linear-gradient(180deg, rgba(13, 18, 31, 0.94), rgba(5, 7, 17, 0.9));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 48px rgba(0, 0, 0, 0.4),
        0 0 30px rgb(var(--neon-primary-rgb, 214 111 150) / 0.18);
    color: var(--text, #f0f3fb);
    backdrop-filter: blur(18px);
}

.nightflat-cookie-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.035) 18px 19px),
        linear-gradient(90deg, transparent, rgb(var(--neon-secondary-rgb, 88 213 246) / 0.08), transparent);
    opacity: 0.44;
    pointer-events: none;
}

.nightflat-cookie-banner > * {
    position: relative;
    z-index: 1;
}

body.nightflat-consent-has-player .nightflat-cookie-banner {
    bottom: calc(var(--player-height, 178px) + 20px + env(safe-area-inset-bottom, 0px));
}

.nightflat-cookie-banner[hidden] {
    display: none;
}

.nightflat-cookie-banner__copy {
    display: grid;
    gap: 3px;
}

.nightflat-cookie-banner__copy strong {
    font-size: 0.94rem;
    line-height: 1.2;
}

.nightflat-cookie-banner__kicker {
    color: rgb(var(--neon-secondary-rgb, 88 213 246) / 0.92);
    font-size: 0.68rem;
    font-weight: 780;
    letter-spacing: 0.15em;
    line-height: 1.1;
    text-transform: uppercase;
}

.nightflat-cookie-banner__copy p,
.nightflat-cookie-banner__copy a {
    margin: 0;
    color: var(--muted, #9fa9bb);
    font-size: 0.82rem;
    line-height: 1.45;
}

.nightflat-cookie-banner__copy a {
    width: fit-content;
    color: rgb(var(--neon-secondary-rgb, 88 213 246) / 0.96);
    font-weight: 720;
}

.nightflat-cookie-banner__signal {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgb(var(--neon-secondary-rgb, 88 213 246) / 0.28);
    border-radius: 8px;
    background:
        radial-gradient(circle, rgb(var(--neon-primary-rgb, 214 111 150) / 0.32), transparent 58%),
        rgba(255, 255, 255, 0.055);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 0 18px rgb(var(--neon-primary-rgb, 214 111 150) / 0.18);
}

.nightflat-cookie-banner__signal::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--neon-secondary, #58d5f6);
    box-shadow:
        0 0 0 5px rgb(var(--neon-secondary-rgb, 88 213 246) / 0.12),
        0 0 18px rgb(var(--neon-secondary-rgb, 88 213 246) / 0.48);
}

.nightflat-cookie-banner__actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nightflat-cookie-banner button {
    border: 1px solid rgb(var(--neon-secondary-rgb, 88 213 246) / 0.28);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--neon-primary, #d66f96), var(--neon-secondary, #58d5f6));
    box-shadow: 0 10px 24px var(--neon-glow, rgba(214, 111, 150, 0.22));
    color: #04101a;
    cursor: pointer;
    font: inherit;
    font-weight: 780;
}

.nightflat-cookie-banner button.button-muted {
    border-color: rgba(167, 184, 218, 0.2);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: var(--text, #f0f3fb);
}

.nightflat-cookie-banner button:focus-visible {
    outline: 2px solid rgb(var(--neon-secondary-rgb, 88 213 246) / 0.72);
    outline-offset: 3px;
}

.nightflat-cookie-banner .button-small {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.82rem;
    white-space: nowrap;
}

.analytics-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.analytics-consent-status {
    margin: 0;
    color: var(--muted, #9fa9bb);
    font-size: 0.92rem;
}

@media (max-width: 640px) {
    .nightflat-cookie-banner {
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        grid-template-columns: auto minmax(0, 1fr);
        width: min(360px, calc(100vw - 20px));
        padding: 10px;
    }

    body.nightflat-consent-has-player .nightflat-cookie-banner {
        bottom: calc(var(--player-height, 178px) + 10px + env(safe-area-inset-bottom, 0px));
    }

    .nightflat-cookie-banner__actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}
