.HasCookieConsent {
    overflow: hidden;
}

.CookieConsent[hidden],
.CookieConsent [hidden] {
    display: none !important;
}

.CookieConsent {
    align-items: flex-end;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 100000;
}

.CookieConsent__Backdrop {
    background: rgba(19, 27, 22, 0.48);
    inset: 0;
    position: absolute;
}

.CookieConsent__Panel {
    background: #fff;
    border: 1px solid rgba(77, 177, 77, 0.28);
    border-radius: 24px;
    box-sizing: border-box;
    box-shadow: 0 24px 80px rgba(19, 45, 26, 0.26);
    max-height: calc(100vh - 40px);
    max-width: 1180px;
    outline: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: clamp(22px, 3vw, 36px);
    position: relative;
    width: 100%;
}

.CookieConsent__Summary {
    align-items: flex-end;
    display: grid;
    gap: 36px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.CookieConsent__Copy {
    max-width: 760px;
}

.CookieConsent__Eyebrow {
    color: var(--color-primary, #4db14d);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.CookieConsent h2 {
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.08;
    margin: 0 0 12px;
}

.CookieConsent p {
    color: #515754;
    line-height: 1.55;
    margin: 0 0 12px;
}

.CookieConsent a {
    color: #2f932f;
    font-weight: 700;
}

.CookieConsent__Actions,
.CookieConsent__SettingsActions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.CookieConsent__Actions {
    justify-content: flex-end;
    max-width: 520px;
}

.CookieConsent .Button,
.CookieConsent .Button:hover {
    border: 0;
    box-shadow: none;
}

.CookieConsent .Button:focus-visible,
.CookieConsent__SettingsButton:focus-visible,
.CookieConsent__Back:focus-visible,
.CookieConsent__Close:focus-visible {
    outline: 2px solid #2f932f;
    outline-offset: 3px;
}

.CookieConsent__SettingsButton,
.CookieConsent__Back,
.CookieConsent__Close {
    background: transparent;
    border: 0;
    color: #2f932f;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.CookieConsent__SettingsButton {
    padding: 12px 14px;
}

.CookieConsent__Close {
    background: var(--color-surface-base);
    border: 1px solid var(--color-border-default);
    border-radius: 50%;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 46px;
    height: 46px;
    padding: 0;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.CookieConsent__Close span {
    display: block;
    position: absolute;
    inset: 50% auto auto 50%;
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%);
    font-size: 0;
}

.CookieConsent__Close span::before,
.CookieConsent__Close span::after {
    content: '';
    background: var(--color-text-primary);
    border-radius: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    transition: background-color 160ms ease;
}

.CookieConsent__Close span::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.CookieConsent__Close span::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.CookieConsent__Close:hover {
    background: var(--color-brand-primary);
    border-color: var(--color-brand-primary);
}

.CookieConsent__Close:hover span::before,
.CookieConsent__Close:hover span::after {
    background: var(--color-surface-base);
}

.CookieConsent__SettingsHeader {
    align-items: flex-start;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    padding-right: 0;
}

.CookieConsent--Closable .CookieConsent__SettingsHeader {
    padding-right: 52px;
}

.CookieConsent__Categories {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}

.CookieConsent__Category {
    align-items: center;
    background: #f6faf6;
    border: 1px solid #deeadf;
    border-radius: 16px;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    padding: 18px 20px;
}

.CookieConsent__Category > :first-child {
    min-width: 0;
}

.CookieConsent__Category strong {
    display: block;
    margin-bottom: 4px;
}

.CookieConsent__Category p,
.CookieConsent__Description {
    color: #5a625d;
    display: block;
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
}

.CookieConsent__Required {
    color: #2f932f;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 800;
}

.CookieConsent__Switch {
    flex: 0 0 auto;
    position: relative;
}

.CookieConsent__Switch input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.CookieConsent__Switch span {
    background: #b7c1ba;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    cursor: pointer;
    display: block;
    height: 30px;
    position: relative;
    transition: background-color .2s ease;
    width: 54px;
}

.CookieConsent__Switch span::after {
    background: #fff;
    border-radius: 50%;
    box-shadow: none;
    content: '';
    height: 24px;
    left: 3px;
    position: absolute;
    top: 3px;
    transition: transform .2s ease;
    width: 24px;
}

.CookieConsent__Switch input:checked + span {
    background: #4db14d;
}

.CookieConsent__Switch input:checked + span::after {
    transform: translateX(24px);
}

.CookieConsent__Switch input:focus-visible + span {
    outline: 2px solid #2f932f;
    outline-offset: 3px;
}

@media (max-width: 760px) {
    .CookieConsent {
        padding: 8px;
    }

    .CookieConsent__Panel {
        border-radius: 18px;
        max-height: calc(100vh - 16px);
        padding: 22px 18px;
    }

    .CookieConsent__Summary {
        align-items: stretch;
        gap: 22px;
        grid-template-columns: 1fr;
    }

    .CookieConsent__Actions,
    .CookieConsent__SettingsActions {
        flex-direction: column;
    }

    .CookieConsent__Actions .Button,
    .CookieConsent__SettingsActions .Button {
        width: 100%;
    }

    .CookieConsent__SettingsButton {
        align-self: center;
    }

    .CookieConsent__Category {
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    .CookieConsent__Required {
        max-width: 92px;
        text-align: right;
        white-space: normal;
    }
}

@media (max-width: 620px) {
    .CookieConsent__Close {
        width: 42px;
        height: 42px;
    }
}
