.pulse-cookie-banner[hidden],
.pulse-cookie-banner [hidden] {
    display: none !important;
}

.pulse-cookie-banner {
    position: fixed;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    left: 1rem;
    z-index: 10050;
    max-width: 720px;
    margin: 0 auto;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(34, 211, 238, 0.34);
    border-radius: 0.5rem;
    background-color: #080b11;
    color: #e8eefc;
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.42);
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    animation: pulse-cookie-rise 220ms ease-out both;
}

@keyframes pulse-cookie-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse-cookie-kicker {
    margin: 0 0 0.25rem;
    color: #22d3ee;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.pulse-cookie-title {
    margin: 0;
    color: #f8fafc;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.pulse-cookie-copy {
    margin: 0.45rem 0 0;
    max-width: 68ch;
    color: #b9c7da;
    font-size: 0.86rem;
}

.pulse-cookie-links {
    margin: 0.5rem 0 0;
    color: #8fa3bd;
    font-size: 0.82rem;
}

.pulse-cookie-links a {
    color: #22d3ee;
    font-weight: 700;
    text-decoration: none;
}

.pulse-cookie-links a:hover {
    text-decoration: underline;
}

.pulse-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.9rem;
}

.pulse-cookie-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.5rem 0.8rem;
    border-radius: 0.3rem;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.1;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.pulse-cookie-btn:hover {
    transform: translateY(-1px);
}

.pulse-cookie-btn:focus-visible {
    outline: 3px solid rgba(34, 211, 238, 0.62);
    outline-offset: 3px;
}

.pulse-cookie-btn-primary {
    border: 1px solid #22d3ee;
    background: #22d3ee;
    color: #061018;
}

.pulse-cookie-btn-primary:hover {
    border-color: #67e8f9;
    background: #67e8f9;
}

.pulse-cookie-btn-secondary {
    border: 1px solid rgba(148, 163, 184, 0.38);
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
}

.pulse-cookie-btn-secondary:hover {
    border-color: rgba(148, 163, 184, 0.62);
    background: rgba(255, 255, 255, 0.08);
}

.pulse-cookie-btn-quiet {
    border: 1px solid transparent;
    background: transparent;
    color: #b9c7da;
}

.pulse-cookie-btn-quiet:hover {
    border-color: rgba(148, 163, 184, 0.3);
    color: #f8fafc;
}

.pulse-cookie-sr {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 1024px) {
    .pulse-cookie-banner {
        bottom: calc(5.9rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 640px) {
    .pulse-cookie-banner {
        right: 0.6rem;
        left: 0.6rem;
        padding: 1rem;
        border-radius: 0.85rem;
    }

    .pulse-cookie-actions {
        display: flex;
        flex-wrap: wrap;
    }

    .pulse-cookie-btn {
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pulse-cookie-banner {
        animation: none;
    }

    .pulse-cookie-btn {
        transition: none;
    }

    .pulse-cookie-btn:hover {
        transform: none;
    }
}

/* On the main site, light mode uses the global inversion filter.
   These source colors render blue after the filter, matching the site accent. */
body.light-mode .pulse-cookie-banner {
    border-color: rgba(129, 178, 255, 0.34);
}

body.light-mode .pulse-cookie-kicker,
body.light-mode .pulse-cookie-links a {
    color: #81b2ff;
}

body.light-mode .pulse-cookie-btn:focus-visible {
    outline-color: rgba(129, 178, 255, 0.62);
}

body.light-mode .pulse-cookie-btn-primary {
    border-color: #81b2ff;
    background: #81b2ff;
    color: #000000;
}

body.light-mode .pulse-cookie-btn-primary:hover {
    border-color: #a8c8ff;
    background: #a8c8ff;
}

.pulse-cookie-banner.pulse-cookie-banner-light {
    background-color: #ffffff;
    border-color: rgba(29, 78, 216, 0.26);
    color: #20324a;
    box-shadow: 0 18px 54px rgba(21, 40, 64, 0.16);
}

.pulse-cookie-banner-light .pulse-cookie-title {
    color: #10243f;
}

.pulse-cookie-banner-light .pulse-cookie-copy {
    color: #42566f;
}

.pulse-cookie-banner-light .pulse-cookie-links {
    color: #61758e;
}

.pulse-cookie-banner-light .pulse-cookie-links a {
    color: #1d4ed8;
}

.pulse-cookie-banner-light .pulse-cookie-btn-primary {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #ffffff;
}

.pulse-cookie-banner-light .pulse-cookie-btn-primary:hover {
    border-color: #1e40af;
    background: #1e40af;
}

.pulse-cookie-banner-light .pulse-cookie-kicker {
    color: #1d4ed8;
}

.pulse-cookie-banner-light .pulse-cookie-btn-secondary {
    border-color: #b8cbe6;
    background: #ffffff;
    color: #1c3a5c;
}

.pulse-cookie-banner-light .pulse-cookie-btn-secondary:hover {
    border-color: #8fb0d8;
    background: #eef5ff;
}

.pulse-cookie-banner-light .pulse-cookie-btn-quiet {
    color: #4b607c;
}

.pulse-cookie-banner-light .pulse-cookie-btn-quiet:hover {
    border-color: #c5d5e8;
    background: #ffffff;
    color: #10243f;
}
