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

.cookie-consent {
    position: fixed;
    inset: auto 0 0;
    z-index: 80;
    padding: 1rem;
    background: linear-gradient(to top, rgba(26, 26, 24, 0.2), rgba(26, 26, 24, 0));
}

@supports selector(body:has(.sf-toolbarreset)) {
    body:has(.sf-toolbarreset) .cookie-consent {
        bottom: 36px;
    }

    @media (max-width: 479px) {
        body:has(.sf-toolbarreset) .cookie-consent {
            bottom: 72px;
        }
    }
}

.cookie-consent__panel {
    width: min(100%, 1168px);
    margin-inline: auto;
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e4e4e0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 24px 56px -24px rgba(26, 26, 24, 0.46);
}

.cookie-consent__content {
    display: grid;
    gap: 0.3rem;
}

.cookie-consent__eyebrow {
    display: none;
    color: #3b7468;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.cookie-consent__title {
    color: #1a1a18;
    font-size: 1.125rem;
    line-height: 1.35;
}

.cookie-consent__text {
    color: #555552;
    font-size: 0.875rem;
    line-height: 1.55;
}

.cookie-consent__text a {
    color: #1a1a18;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.cookie-consent__choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    flex-shrink: 0;
}

.cookie-consent__choice {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.5rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid #e4e4e0;
    border-radius: 9999px;
    background: #fbfbf9;
    color: #555552;
    cursor: pointer;
}

.cookie-consent__choice input {
    width: 0.95rem;
    height: 0.95rem;
    margin: 0;
    accent-color: #5ce8c8;
}

.cookie-consent__choice input:disabled {
    cursor: not-allowed;
}

.cookie-consent__choice strong,
.cookie-consent__choice small {
    display: block;
}

.cookie-consent__choice strong {
    color: #1a1a18;
    font-size: 0.8125rem;
    line-height: 1.2;
    white-space: nowrap;
}

.cookie-consent__choice small {
    display: none;
}

@media (max-width: 479px) {
    .cookie-consent__choice--necessary {
        display: none;
    }
}

.cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    min-width: 0;
}

.cookie-consent__button {
    min-height: 3.25rem;
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 14px 30px -18px rgba(26, 26, 24, 0.55);
}

.cookie-consent__text-button {
    justify-self: center;
    padding: 0.25rem 0.35rem;
    border: 0;
    background: transparent;
    color: #555552;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
}

.cookie-consent__text-button:hover {
    color: #1a1a18;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.cookie-consent__text-button:focus-visible,
.cookie-consent__choice input:focus-visible {
    outline: 3px solid #5ce8c8;
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .cookie-consent {
        padding: 1.375rem;
    }

    .cookie-consent__panel {
        grid-template-columns: minmax(0, 1fr) minmax(15rem, 18rem);
        align-items: start;
        gap: 1.125rem;
        min-height: 10.75rem;
        padding: 1.375rem 1.5rem;
    }

    .cookie-consent__content {
        gap: 0.45rem;
    }

    .cookie-consent__title {
        font-size: 1.25rem;
    }

    .cookie-consent__text {
        font-size: 0.9375rem;
    }

    .cookie-consent__choices {
        grid-column: 1;
        grid-row: auto;
        gap: 0.5rem;
    }

    .cookie-consent__choice {
        align-items: flex-start;
        min-height: 3.25rem;
        padding: 0.55rem 0.75rem;
        border-radius: 12px;
    }

    .cookie-consent__choice small {
        display: block;
        max-width: 18rem;
        margin-top: 0.15rem;
        font-size: 0.75rem;
        line-height: 1.35;
    }

    .cookie-consent__actions {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
        width: 100%;
    }

    .cookie-consent__button {
        min-height: 3.75rem;
        width: 100%;
        font-size: 1.0625rem;
    }

}

@media (min-width: 1200px) {
    .cookie-consent__panel {
        grid-template-columns: minmax(0, 1fr) minmax(18rem, 21rem);
        align-items: center;
        column-gap: 1.25rem;
        min-height: 11.25rem;
        padding: 1.5rem 1.75rem;
    }

    .cookie-consent__choices {
        grid-column: 1;
        grid-row: 2;
    }

    .cookie-consent__actions {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent *,
    .cookie-consent *::before,
    .cookie-consent *::after {
        transition: none;
    }
}
