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

.cookie-consent {
    position: fixed;
    inset: auto 0 0;
    z-index: 10001;
    padding: 24px 32px calc(24px + env(safe-area-inset-bottom, 0px));
    color: #fff;
    background: #252840;
    border-top: 3px solid #074eb9;
    box-shadow: 0 -8px 32px rgb(5 6 10 / 12%);
    max-height: 80dvh;
    overflow-y: auto;
    animation: cookie-consent-enter 200ms ease-out;
}

.cookie-consent__inner {
    max-width: 1320px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.cookie-consent__copy {
    flex: 1;
}

.cookie-consent h2 {
    margin: 0 0 8px;
    color: #fff;
    font-family: inherit;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: normal;
}

.cookie-consent p {
    margin: 0;
    color: #e2e6f0;
    font-size: 13px;
    line-height: 1.7;
}

.cookie-consent a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.cookie-consent__actions {
    display: flex;
    flex-shrink: 0;
    gap: 12px;
}

.cookie-consent__button {
    min-height: 46px;
    padding: 10px 28px;
    border: 1px solid transparent;
    border-radius: 4px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.cookie-consent__button--accept {
    color: #fff;
    background: #074eb9;
    border-color: #074eb9;
}

.cookie-consent__button--accept:hover {
    background: #114b99;
    border-color: #114b99;
}

.cookie-consent__button--reject {
    color: #fff;
    background: transparent;
    border-color: #a5adc5;
}

.cookie-consent__button--reject:hover {
    background: #363b59;
    border-color: #fff;
}

.cookie-consent :focus-visible,
.cookie-video :focus-visible {
    outline: 3px solid #82b6ff;
    outline-offset: 4px;
}

.cookie-settings {
    border: 0;
    background: none;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.cookie-settings:hover,
.cookie-settings:focus-visible {
    color: #074eb9;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-video__notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    text-align: center;
    color: #252840;
    background: #f0f2f8;
}

.cookie-video__notice p {
    max-width: 440px;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-video__notice strong {
    font-size: 18px;
}

html {
    scroll-padding-bottom: var(--cookie-consent-height, 0px);
}

body {
    padding-bottom: var(--cookie-consent-height, 0px);
}

@keyframes cookie-consent-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
    .cookie-consent {
        padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    }

    .cookie-consent__inner {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
    }

    .cookie-consent__button {
        flex: 1;
    }

    .cookie-video.ratio {
        min-height: 240px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent {
        animation: none;
    }

    .cookie-consent__button {
        transition: none;
    }
}
