.cookie-consent {
    position: fixed;
    right: 40px;
    bottom: 40px;
    width: min(650px, calc(100vw - 80px));
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background: #0a0a0a;
    border: 1px solid #1f1f1f;
    color: #fff;
    z-index: 9998;
}

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

.cookie-consent:has(.cookie-consent__preferences:not([hidden])) {
    width: min(850px, calc(100vw - 80px));
}

.cookie-consent__banner,
.cookie-consent__header,
.cookie-consent__intro,
.cookie-consent__categories {
    padding: 24px;
}

.cookie-consent__title,
.cookie-consent h3,
.cookie-consent__category strong {
    margin: 0;
    font: 400 12px/1.3 "Monument Extended", sans-serif;
    text-transform: uppercase;
}

.cookie-consent__title {
    font-size: 14px;
}

.cookie-consent__title:focus {
    outline: none;
}

.cookie-consent__text {
    display: block;
    margin: 16px 0 24px;
    color: rgba(255, 255, 255, .5);
    font: 400 14px/1.4 "Inter", sans-serif;
}

.cookie-consent__text a,
.cookie-consent__manage {
    color: inherit;
    text-decoration: underline;
}

.cookie-consent__actions {
    display: flex;
    gap: 8px;
}

.cookie-consent__actions button {
    flex: 1;
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid #1f1f1f;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font: 400 12px/1.3 "Monument Extended", sans-serif;
    cursor: pointer;
}

.cookie-consent__actions button:hover {
    background: #141414;
}

.cookie-consent__actions button:focus-visible,
.cookie-consent__category input:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.cookie-consent__actions .cookie-consent__manage {
    border: 0;
    color: rgba(255, 255, 255, .5);
    font: 400 14px/1.4 "Inter", sans-serif;
}

.cookie-consent__header {
    display: flex;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid #1f1f1f;
}

.cookie-consent__header .cookie-consent__title {
    flex: 0 0 207px;
}

.cookie-consent__header .cookie-consent__actions {
    flex: 1;
}

.cookie-consent__intro {
    border-bottom: 1px solid #1f1f1f;
}

.cookie-consent__intro p {
    margin-bottom: 0;
}

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

.cookie-consent__category {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.cookie-consent__category input {
    appearance: none;
    width: 24px;
    height: 24px;
    flex: none;
    margin: 0;
    border: 1px solid #3d3d3d;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
}

.cookie-consent__category input:checked {
    border-color: #fff;
    background: #fff;
    box-shadow: inset 0 0 0 3px #0a0a0a;
}

.cookie-consent__category input:disabled {
    cursor: default;
}

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

.cookie-consent__category .cookie-consent__text {
    margin: 10px 0 0;
}

@media (max-width: 767px) {
    .cookie-consent,
    .cookie-consent:has(.cookie-consent__preferences:not([hidden])) {
        right: 16px;
        bottom: 16px;
        width: calc(100% - 32px);
        max-height: calc(100vh - 32px);
    }

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

    .cookie-consent__actions .cookie-consent__manage {
        order: 1;
        margin-top: 8px;
    }

    .cookie-consent__header {
        align-items: stretch;
    }

    .cookie-consent__header .cookie-consent__title {
        flex: auto;
    }
}
