.cookie-consent {
    position: fixed;
    left: 50%;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    width: min(calc(100vw - 2rem), 980px);
    transform: translateX(-50%);
    z-index: 19000;
    color: #111;
}

.cookie-consent,
.cookie-consent *,
.cookie-consent *::before,
.cookie-consent *::after {
    box-sizing: border-box;
}

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

.cookie-consent__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    width: 100%;
    margin-inline: auto;
    padding: 1rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

.cookie-consent__copy {
    display: grid;
    gap: .45rem;
    min-width: 0;
}

.cookie-consent__copy h2 {
    font-size: var(--fs-600);
    line-height: 1.2;
}

.cookie-consent__copy p {
    max-width: 62rem;
    font-size: var(--font-base);
    line-height: 1.55;
    overflow-wrap: break-word;
}

.cookie-consent__privacy {
    width: fit-content;
    color: var(--webpage-main-color);
    font-size: var(--fs-300);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .18em;
}

.cookie-consent__actions {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    min-width: 0;
}

.cookie-consent__button {
    min-height: 44px;
    padding: .65rem 1rem;
    border-radius: 6px;
    border: 1px solid #111;
    cursor: pointer;
    font: inherit;
    font-size: var(--font-base);
    font-weight: 700;
    width: 100%;
}

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

.cookie-consent__button--secondary {
    background: #fff;
    color: #111;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible,
.cookie-consent__privacy:focus-visible {
    outline: 3px solid rgba(72, 87, 171, .35);
    outline-offset: 3px;
}

@media (min-width: 760px) {
    .cookie-consent__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        padding: 1rem 1.15rem;
    }

    .cookie-consent__actions {
        min-width: 13rem;
    }
}

@media (max-width: 820px) and (min-width: 521px) {
    .cookie-consent {
        width: min(calc(100vw - 2rem), 42rem);
    }

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

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

    .cookie-consent__copy,
    .cookie-consent__actions {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .cookie-consent {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100vw;
        transform: none;
    }

    .cookie-consent__inner {
        grid-template-columns: minmax(0, 1fr);
        padding: 1rem max(1rem, env(safe-area-inset-right))
            calc(1rem + env(safe-area-inset-bottom))
            max(1rem, env(safe-area-inset-left));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 12px 12px 0 0;
    }

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

    .cookie-consent__copy,
    .cookie-consent__actions {
        width: 100%;
    }
}
