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

.cookie-consent .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

.cookie-consent {
    position: fixed;
    z-index: 1400;
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: 980px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: 0 auto;
    overflow-y: auto;
    border: 1px solid #e0e0e1;
    border-radius: 12px;
    color: var(--basic-grey, #343635);
    background: #fff;
    box-shadow: 0 16px 48px rgba(36, 36, 38, .18);
    font-family: Effra, Arial, sans-serif;
}

.cookie-consent--height-animating {
    overflow-y: hidden;
}

.cookie-consent__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 26px;
    padding: 32px 36px;
}

.cookie-consent__panel--settings {
    align-items: stretch;
}

.cookie-consent__content {
    min-width: 0;
}

.cookie-consent__title {
    margin: 0;
    color: var(--basic-grey, #343635);
    font-family: inherit;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.cookie-consent__text {
    max-width: 840px;
    margin: 14px 0 0;
    color: var(--basic-grey, #343635);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.45;
    letter-spacing: .2px;
}

.cookie-consent__link {
    display: inline;
    padding-right: 0;
    color: #0f8381;
    font-size: inherit;
    font-style: normal;
    font-weight: 400;
    text-transform: none;
    text-decoration: underline;
    text-decoration-thickness: .5px;
    text-underline-offset: 3px;
    vertical-align: baseline;
    transition: color .2s linear;
}

.cookie-consent__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.cookie-consent__actions--settings {
    align-self: end;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cookie-consent__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 48px;
    padding: 10px 18px;
    border: 1px solid #0f8381;
    border-radius: 4px;
    color: #0f8381;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .2s linear, background-color .2s linear, border-color .2s linear;
}

.cookie-consent__button::before {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    content: '';
    background: #0f8381;
    transition: width .4s ease-in-out;
}

.cookie-consent__button-label {
    position: relative;
    z-index: 1;
}

.cookie-consent__button--primary {
    color: #fff;
    background: #0f8381;
}

.cookie-consent__button--primary::before {
    background: #fff;
}

.cookie-consent__button--text {
    border-color: #0f8381;
}

.cookie-consent__categories {
    display: grid;
    gap: 0;
    margin-top: 18px;
    border-top: 1px solid #eff0f0;
}

.cookie-consent__category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 64px;
    padding: 14px 0;
    border-bottom: 1px solid #eff0f0;
    color: var(--basic-grey, #343635);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.3;
    cursor: pointer;
}

.cookie-consent__category-name {
    letter-spacing: .02em;
    text-transform: uppercase;
}

.cookie-consent__category:first-child {
    cursor: default;
}

.cookie-consent__category-control {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.cookie-consent__always-on {
    color: var(--basic-grey, #343635);
    font-size: 13px;
    opacity: .72;
}

.cookie-consent__switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    cursor: pointer;
}

.cookie-consent__switch-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.cookie-consent__switch-control {
    position: relative;
    display: block;
    width: 48px;
    height: 26px;
    border: 0;
    border-radius: 999px;
    background: #a1a3a6;
    transition: background-color .2s linear;
}

.cookie-consent__switch-control::after {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    content: '';
    background: #fff;
    box-shadow: 0 1px 3px rgba(36, 36, 38, .24);
    transition: transform .2s linear;
}

.cookie-consent__switch-input:checked + .cookie-consent__switch-control {
    background: #0f8381;
}

.cookie-consent__switch-input:checked + .cookie-consent__switch-control::after {
    transform: translateX(22px);
}

.cookie-consent__switch-input:disabled + .cookie-consent__switch-control {
    opacity: .8;
    cursor: not-allowed;
}

.cookie-consent__button:focus-visible,
.cookie-consent__link:focus-visible,
.cookie-consent__switch-input:focus-visible + .cookie-consent__switch-control,
.site-footer__cookie-settings:focus-visible {
    outline: 2px solid #0f8381;
    outline-offset: 3px;
}

.site-footer__cookie-settings {
    display: inline-block;
    margin: 4px 0;
    padding: 0;
    border: 0;
    color: rgba(255, 255, 255, .6);
    background: transparent;
    font: inherit;
    text-transform: none;
    cursor: pointer;
    transition: color .2s linear;
}

@media (hover: hover) and (pointer: fine) {
    .cookie-consent__link:hover {
        color: #343635;
    }

    .cookie-consent__button:hover {
        color: #fff;
    }

    .cookie-consent__button--primary:hover {
        color: #0f8381;
    }

    .cookie-consent__button:hover::before {
        width: 100%;
    }

    .site-footer__cookie-settings:hover {
        color: #fff;
    }
}

@media (max-width: 900px) {
    .cookie-consent__panel {
        gap: 22px;
        padding: 28px 24px;
    }
}

@media (max-width: 620px) {
    .cookie-consent {
        right: 8px;
        bottom: 8px;
        left: 8px;
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 8px;
    }

    .cookie-consent__panel {
        gap: 18px;
        padding: 20px 16px;
    }

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

    .cookie-consent__text {
        margin-top: 10px;
        font-size: 14px;
    }

    .cookie-consent__actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .cookie-consent__button--text {
        min-height: 40px;
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .cookie-consent__category {
        font-size: 15px;
    }

    .cookie-consent__always-on {
        max-width: 82px;
        text-align: right;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent *,
    .cookie-consent *::before,
    .cookie-consent *::after {
        transition-duration: .01ms !important;
    }
}
