/** COOKIE OVERLAY */
.nox-cookie-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.75);
    touch-action: none;
}

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

html.nox-cookie-lock,
html.nox-cookie-lock body {
    overflow: hidden !important;
    overscroll-behavior: none;
}

html.nox-cookie-lock {
    scrollbar-gutter: stable;
}

/** COOKIE BANNER */
.nox-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        'title actions'
        'text actions'
        'prefs actions';
    column-gap: 64px;
    align-items: center;
    padding: 22px 88px 24px;
    box-sizing: border-box;
    background: #1f1f1f;
    border-top: 3px solid #c10f30;
    color: #ffffff;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
}

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

.nox-cookie-title {
    grid-area: title;
    margin: 0 0 6px;
    font-size: 20px !important;
    line-height: 26px !important;
    font-weight: 600 !important;
    color: #ffffff;
}

.nox-cookie-text {
    grid-area: text;
    max-width: 860px;
    margin: 0;
    font-size: 14px;
    line-height: 22px;
    color: #d9d9d9;
}

.nox-cookie-text a {
    color: #ffffff;
    text-decoration: underline;
}

.nox-cookie-prefs {
    grid-area: prefs;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 32px;
    margin: 14px 0 0;
}

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

.nox-cookie-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 14px;
    color: #ffffff;
    cursor: pointer;
}

.nox-cookie-option span {
    color: #ffffff !important;
}

.nox-cookie-option input {
    accent-color: #c10f30;
    width: 16px;
    height: 16px;
    margin: 0;
}

.nox-cookie-actions {
    grid-area: actions;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.nox-cookie-btn {
    appearance: none;
    border: 0;
    padding: 0 30px;
    height: 38px;
    background: #c10f30;
    color: #ffffff;
    font: 600 14px/38px Inter, sans-serif;
    text-transform: none;
    cursor: pointer;
    -webkit-clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%);
    transition: background-color 0.2s ease;
}

.nox-cookie-btn:hover {
    background: #9a0c26;
}

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

.nox-cookie-reject {
    background: #3a3a3a;
}

.nox-cookie-reject:hover {
    background: #4a4a4a;
}

.nox-cookie-link {
    appearance: none;
    border: 0;
    padding: 0;
    background: none;
    color: #ffffff;
    font: 500 14px/38px Inter, sans-serif;
    text-decoration: underline;
    cursor: pointer;
}

.nox-embed-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    aspect-ratio: 16 / 9;
    padding: 24px;
    box-sizing: border-box;
    background: #1f1f1f;
    text-align: center;
}

.nox-embed-placeholder[hidden] {
    display: none;
}

iframe[data-nox-consent][hidden] {
    display: none !important;
}

.nox-embed-placeholder p {
    margin: 0;
    font-size: 16px;
    color: #d9d9d9;
}

.nox-cookie-settings {
    color: inherit !important;
    text-decoration: none;
}

.nox-cookie-settings:hover {
    text-decoration: underline;
}

/** MOBILE: COOKIE BANNER */
@media (max-width: 999px) {
    .nox-cookie-banner {
        display: block;
        padding: 20px 20px 22px;
    }

    .nox-cookie-text {
        margin: 0 0 16px;
    }

    .nox-cookie-prefs {
        flex-direction: column;
        margin: 0 0 16px;
    }

    .nox-cookie-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .nox-cookie-actions .nox-cookie-btn {
        flex: 1 1 auto;
        padding: 0 18px;
    }
}
