.cookie-consent {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: block;
    pointer-events: none;
}

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

.cookie-consent.is-visible {
    pointer-events: auto;
}

.cookie-consent__panel {
    width: min(100%, 980px);
    display: grid;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(14, 19, 29, 0.92);
    color: #f2f5f9;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
}

.cookie-consent__banner {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    margin: 0 auto;
    z-index: 1;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: auto;
}

.cookie-consent.is-visible .cookie-consent__banner {
    opacity: 1;
    transform: translateY(0);
}

.cookie-consent__content h2,
.cookie-consent__modal-header h2,
.cookie-consent__examples p {
    margin: 0;
}

.cookie-consent__content p,
.cookie-consent__modal-header p {
    margin: 8px 0 0;
    color: #c7d2df;
    line-height: 1.55;
}

.cookie-consent__actions,
.cookie-consent__modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-consent__button {
    min-height: 44px;
    padding: 11px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    pointer-events: auto;
}

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

.cookie-consent__button:focus-visible,
.cookie-consent__close:focus-visible {
    outline: 3px solid #7dd3fc;
    outline-offset: 2px;
}

.cookie-consent__button--primary {
    background: #7dd3fc;
    color: #07111d;
}

.cookie-consent__button--secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #f8fbff;
}

.cookie-consent__modal {
    position: fixed;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(3, 8, 15, 0.58);
}

.cookie-consent__modal[hidden] {
    display: none !important;
}

.cookie-consent__modal-panel {
    width: min(100%, 720px);
    max-height: min(88vh, 820px);
    overflow: auto;
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 22px;
    background: #0f1724;
    color: #f2f5f9;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
    pointer-events: auto;
}

.cookie-consent__modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.cookie-consent__close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
}

.cookie-consent__categories {
    display: grid;
    gap: 12px;
}

.cookie-consent__category {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: #f2f5f9;
}

.cookie-consent__category input {
    margin-top: 3px;
}

.cookie-consent__category strong {
    display: block;
    margin-bottom: 4px;
}

.cookie-consent__category small {
    display: block;
    color: #c7d2df;
    line-height: 1.5;
}

.cookie-consent__examples {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.cookie-consent__examples pre {
    overflow: auto;
    margin: 0;
    padding: 14px;
    border-radius: 14px;
    background: #07111d;
    color: #dbeafe;
    font-size: 13px;
    line-height: 1.6;
}

.cookie-consent__examples code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

body.cookie-consent-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    .cookie-consent {
        inset: 0;
    }

    .cookie-consent__banner,
    .cookie-consent__modal-panel {
        padding: 16px;
        border-radius: 16px;
    }

    .cookie-consent__banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .cookie-consent__actions,
    .cookie-consent__modal-actions {
        flex-direction: column;
    }

    .cookie-consent__button {
        width: 100%;
    }
}
