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

.cookie-consent {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 1080;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.cookie-consent__panel {
    width: min(920px, 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(16, 24, 32, 0.96);
    color: #f8fafc;
    box-shadow: 0 18px 46px rgba(2, 6, 23, 0.32);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    padding: 1rem;
    pointer-events: auto;
}

.cookie-consent__content {
    min-width: 0;
}

.cookie-consent__eyebrow {
    margin: 0 0 0.15rem;
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cookie-consent h2,
.cookie-consent h3,
.cookie-consent p {
    margin: 0;
}

.cookie-consent h2 {
    font-size: 1rem;
    line-height: 1.3;
}

.cookie-consent__content p:not(.cookie-consent__eyebrow) {
    margin-top: 0.35rem;
    color: rgba(248, 250, 252, 0.76);
    font-size: 0.9rem;
    line-height: 1.45;
}

.cookie-consent__settings {
    grid-column: 1 / -1;
    display: grid;
    gap: 0.65rem;
    padding-top: 0.2rem;
}

.cookie-consent__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 8px;
    padding: 0.8rem;
    background: rgba(15, 23, 42, 0.42);
}

.cookie-consent__option h3,
.cookie-consent__option strong {
    display: block;
    color: #ffffff;
    font-size: 0.92rem;
    line-height: 1.25;
}

.cookie-consent__option p,
.cookie-consent__option small {
    display: block;
    margin-top: 0.18rem;
    color: rgba(248, 250, 252, 0.7);
    font-size: 0.82rem;
    line-height: 1.35;
}

.cookie-consent__status {
    flex: 0 0 auto;
    color: #bfdbfe;
    font-size: 0.78rem;
    font-weight: 700;
}

.cookie-consent__option input[type="checkbox"] {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #bfdbfe;
}

.cookie-consent__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.cookie-consent__button,
.footer-link-button {
    font: inherit;
}

.cookie-consent__button {
    min-height: 2.45rem;
    border-radius: 8px;
    border: 1px solid rgba(248, 250, 252, 0.32);
    padding: 0.55rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.cookie-consent__button--primary,
.cookie-consent__button--secondary {
    background: #f8fafc;
    color: #101820;
}

.cookie-consent__button--ghost {
    background: transparent;
    color: #f8fafc;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
    outline: 2px solid #bfdbfe;
    outline-offset: 2px;
}

.footer-link-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: rgba(244, 239, 228, 0.52);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 750;
    line-height: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link-button:hover,
.footer-link-button:focus-visible {
    color: var(--studio-bg, #ffffff);
    outline: 0;
    text-decoration: none;
}

@media (max-width: 780px) {
    .cookie-consent {
        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
    }

    .cookie-consent__panel {
        grid-template-columns: 1fr;
    }

    .cookie-consent__actions {
        justify-content: stretch;
    }

    .cookie-consent__button {
        flex: 1 1 10rem;
    }

    .cookie-consent__option {
        align-items: flex-start;
    }
}
