.cookie-consent {
    position: fixed;
    inset: auto 0 0;
    z-index: 10000;
    color: #f7f1e8;
    font-family: inherit;
}

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

.cookie-consent__banner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 18px;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    background: rgba(11, 11, 12, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

.cookie-consent__copy h2,
.cookie-consent__panel h2 {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0;
}

.cookie-consent__copy p,
.cookie-consent__intro,
.cookie-consent__option p,
.cookie-consent__option span span {
    margin: 0;
    color: #d8d0c4;
    font-size: 0.9rem;
    line-height: 1.55;
}

.cookie-consent__actions,
.cookie-consent__panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-consent__button,
.footer-cookie-settings {
    min-height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 0 14px;
    font-size: 0.9rem;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cookie-consent__button:hover,
.footer-cookie-settings:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.42);
}

.cookie-consent__button:focus-visible,
.cookie-consent__close:focus-visible,
.footer-cookie-settings:focus-visible,
.cookie-consent__option input:focus-visible {
    outline: 3px solid #f2c75c;
    outline-offset: 3px;
}

.cookie-consent__button--primary {
    background: #f2c75c;
    border-color: #f2c75c;
    color: #16120a;
    font-weight: 700;
}

.cookie-consent__button--primary:hover {
    background: #ffd979;
    border-color: #ffd979;
}

.cookie-consent__button--ghost {
    background: transparent;
}

.cookie-consent__preferences {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.58);
}

.cookie-consent__panel {
    position: relative;
    width: min(580px, 100%);
    max-height: min(720px, calc(100vh - 36px));
    overflow: auto;
    padding: 24px;
    background: #101012;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.cookie-consent__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.cookie-consent__option {
    margin-top: 14px;
    padding: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.cookie-consent__option h3,
.cookie-consent__option strong {
    display: block;
    margin: 0 0 4px;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.35;
    font-weight: 700;
}

.cookie-consent__option input {
    width: 22px;
    height: 22px;
    accent-color: #f2c75c;
    cursor: pointer;
}

.cookie-consent__always {
    color: #f2c75c;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.cookie-consent__panel-actions {
    margin-top: 18px;
}

.footer-cookie-settings {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #888;
}

.footer-cookie-settings:hover {
    background: transparent;
    color: #fff;
}

@media (max-width: 780px) {
    .cookie-consent__banner {
        grid-template-columns: 1fr;
        width: calc(100% - 20px);
        margin-bottom: 10px;
        padding: 16px;
    }

    .cookie-consent__actions,
    .cookie-consent__panel-actions {
        justify-content: stretch;
    }

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

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