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

.cookie-consent {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: end center;
    padding: 18px;
}

.cookie-consent-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 31, 38, .58);
    backdrop-filter: blur(5px);
}

.cookie-consent-panel {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    padding: 24px;
    border: 1px solid rgba(15, 118, 110, .16);
    border-radius: 27px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(8, 36, 43, .28);
}

.cookie-consent-close {
    position: absolute;
    top: 13px;
    right: 13px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 11px;
    background: #eef6f4;
    color: #587077;
    cursor: pointer;
    font-size: 1.3rem;
}

.cookie-consent-heading {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding-right: 30px;
}

.cookie-consent-heading img {
    width: 105px;
    max-height: 112px;
    object-fit: contain;
}

.cookie-consent-heading h2 {
    margin: 4px 0 7px;
    color: #10243a;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.cookie-consent-heading p {
    margin: 0;
    color: #63777d;
    line-height: 1.55;
}

.cookie-consent-categories {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.cookie-consent-categories article,
.cookie-consent-categories label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid #e1eaea;
    border-radius: 16px;
    background: #fbfdfc;
}

.cookie-consent-categories div,
.cookie-consent-categories label > span {
    display: grid;
    gap: 3px;
}

.cookie-consent-categories strong {
    color: #10243a;
}

.cookie-consent-categories span,
.cookie-consent-categories small {
    color: #667a80;
    font-size: .86rem;
    line-height: 1.4;
}

.cookie-consent-categories input {
    width: 24px;
    min-height: 24px;
    flex: 0 0 auto;
    accent-color: #0f766e;
}

.cookie-required {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    background: #dff5f0;
    color: #0f766e !important;
    font-size: .74rem !important;
    font-weight: 850;
}

.cookie-consent-more {
    margin: 15px 0 0;
    color: #687b81;
    font-size: .84rem;
}

.cookie-consent-more a {
    color: #0f766e;
    font-weight: 800;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.cookie-consent-open {
    overflow: hidden;
}

.footer-cookie-settings {
    width: fit-content;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

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

@media (max-width: 620px) {
    .cookie-consent {
        align-items: end;
        padding: 8px;
    }

    .cookie-consent-panel {
        max-height: calc(100vh - 16px);
        padding: 20px 16px 16px;
        border-radius: 22px;
    }

    .cookie-consent-heading {
        grid-template-columns: 1fr;
        justify-items: center;
        padding-right: 0;
        text-align: center;
    }

    .cookie-consent-heading img {
        width: 88px;
        max-height: 90px;
    }

    .cookie-consent-categories article,
    .cookie-consent-categories label {
        align-items: flex-start;
    }

    .cookie-required {
        max-width: 95px;
        text-align: center;
    }

    .cookie-consent-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cookie-consent-actions .button {
        width: 100%;
    }
}