.cookie-consent,
.cookie-consent * {
    box-sizing: border-box;
}

.cookie-consent {
    font-family: inherit;
    font-size: .95rem;
    line-height: 1.55;
    color: #fff;
}

.cookie-consent [hidden] {
    display: none !important;
}

.cookie-consent__banner {
    position: fixed;
    z-index: 1100;
    right: 1rem;
    bottom: 1rem;
    width: min(32rem, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid rgba(255, 255, 255, .18);
    border-top: 4px solid var(--red, #ed0023);
    border-radius: .75rem;
    background: rgba(7, 15, 15, .98);
    color: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

.cookie-consent__banner-heading,
.cookie-consent__dialog-heading,
.cookie-consent__option h3 {
    color: #fff;
    font-family: inherit;
    font-weight: 700;
}

.cookie-consent__banner-heading {
    margin: 0 0 .6rem;
    font-size: 1.6rem;
    line-height: 1.25;
}

.cookie-consent__banner-text {
    margin: 0;
    color: rgba(255, 255, 255, .86);
}

.cookie-consent__banner-text > :first-child {
    margin-top: 0;
}

.cookie-consent__banner-text > :last-child {
    margin-bottom: 0;
}

.cookie-consent__banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.25rem;
}

.cookie-consent__button {
    min-height: 2.75rem;
    padding: .6rem .9rem;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: .3rem;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
}

.cookie-consent__button:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .1);
}

.cookie-consent__button--strong {
    border-color: var(--red, #ed0023);
    background: var(--red, #ed0023);
}

.cookie-consent__button--strong:hover {
    border-color: #c8001d;
    background: #c8001d;
}

.cookie-consent__button:focus-visible,
.cookie-consent__banner-links a:focus-visible,
.cookie-consent__banner-links button:focus-visible,
.cookie-consent__dialog-policy:focus-visible,
.cookie-consent__toggle input:focus-visible + .cookie-consent__toggle-track {
    outline: 3px solid #f1af18;
    outline-offset: 4px;
}

.cookie-consent__banner-links {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    align-items: center;
    margin: 1rem 0 0;
}

.cookie-consent__banner-links a,
.cookie-consent__banner-links button,
.cookie-consent__dialog-policy {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

.cookie-consent__banner-links button {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.cookie-consent__banner-links span {
    color: rgba(255, 255, 255, .55);
}

.cookie-consent__backdrop {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(4px);
}

.cookie-consent__dialog {
    width: min(42rem, 100%);
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: .75rem;
    background: #0b1112;
    color: #fff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .5);
}

.cookie-consent__dialog-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
}

.cookie-consent__dialog-heading {
    margin: 0 0 .6rem;
    font-size: 1.6rem;
    line-height: 1.2;
}

.cookie-consent__dialog-introduction {
    margin: 0;
    color: rgba(255, 255, 255, .86);
}

.cookie-consent__close {
    font-size: 16px;
}

.cookie-consent__option {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.cookie-consent__option-heading {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.cookie-consent__option h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
}

.cookie-consent__option p {
    max-width: 760px;
    margin: .7rem 0 0;
    color: rgba(255, 255, 255, .86);
}

.cookie-consent__always-active {
    color: #f36c7b;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cookie-consent__toggle {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    cursor: pointer;
}

.cookie-consent__toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.cookie-consent__toggle-track {
    position: relative;
    display: block;
    width: 54px;
    height: 30px;
    border-radius: 999px;
    background: #596263;
    transition: background-color .2s ease;
}

.cookie-consent__toggle-track::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
    content: "";
    transition: transform .2s ease;
}

.cookie-consent__toggle input:checked + .cookie-consent__toggle-track {
    background: var(--red, #ed0023);
}

.cookie-consent__toggle input:checked + .cookie-consent__toggle-track::after {
    transform: translateX(24px);
}

.cookie-consent__dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    align-items: center;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.cookie-consent__dialog-policy {
    margin-left: auto;
}

.cookie-consent-open {
    overflow: hidden;
}

@media (max-width: 560px) {
    .cookie-consent {
        font-size: 15px;
    }

    .cookie-consent__banner {
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 0;
    }

    .cookie-consent__banner-actions {
        display: flex;
    }

    .cookie-consent__banner-actions .cookie-consent__button {
        flex: 1 1 8rem;
    }

    .cookie-consent__backdrop {
        align-items: center;
        padding: 16px;
    }

    .cookie-consent__dialog {
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
        padding: 18px;
    }

    .cookie-consent__dialog-header {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .cookie-consent__close {
        justify-self: start;
    }

    .cookie-consent__dialog-heading {
        font-size: 21px;
    }

    .cookie-consent__dialog-introduction {
        font-size: 17px;
        line-height: 1.55;
    }

    .cookie-consent__option p {
        line-height: 1.55;
    }

    .cookie-consent__dialog-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .cookie-consent__save,
    .cookie-consent__dialog-policy {
        grid-column: 1 / -1;
    }

    .cookie-consent__dialog-policy {
        justify-self: start;
        margin: 14px 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent__toggle-track,
    .cookie-consent__toggle-track::after {
        transition: none;
    }
}
