html {
    --cookie-browser-ui-offset: 0px;
    --cookie-mobile-bottom-inset: calc(env(safe-area-inset-bottom, 0px) + var(--cookie-browser-ui-offset));
}

.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0;
    z-index: 1000000001;
}

.cookie-notice--hidden {
    display: none;
}

.cookie-notice__panel {
    position: relative;
}

.cookie-notice__tint {
    display: none;
}

.cookie-notice__content {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: center;
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 56px;
    padding: 12px clamp(24px, 21.32vw, 320px) calc(12px + env(safe-area-inset-bottom, 0px));
    border: 0;
    border-radius: 0;
    background: #9C82D1;
    backdrop-filter: blur(24px);
}

.cookie-notice__text {
    flex: 0 1 760px;
    max-width: 760px;
    color: #FFFFFF;
    font-family: 'RFDewi', Arial, sans-serif;
    font-size: 14px;
    line-height: 16px;
    font-weight: 400;
    letter-spacing: 0.07px;
}

.cookie-notice__link {
    color: #FFFFFF;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.cookie-notice__button {
    flex: 0 0 auto;
    min-width: 77px;
    min-height: 32px;
    padding: 9px 14px;
    border: 0;
    border-radius: 999px;
    background: #FFFFFF;
    font-family: 'RFDewi', Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
    white-space: nowrap;
    transition: opacity 0.15s ease-in-out;
}

.cookie-notice__button:hover,
.cookie-notice__button:focus {
    opacity: 0.9;
}

@media (max-width: 767px) {
    html {
        --cookie-browser-ui-offset: 56px;
        --cookie-mobile-separator-offset: calc(var(--cookie-mobile-bottom-inset) - 37px);
    }

    .cookie-notice {
        bottom: 0;
        padding: 0;
        overflow: visible;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        transform: none;
        z-index: 999999998;
    }

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

    .cookie-notice__panel::before {
        content: '';
        position: absolute;
        right: 0;
        bottom: -8px;
        left: 0;
        height: 14px;
        border-radius: 0;
        pointer-events: none;
        z-index: 0;
    }

    .cookie-notice__panel::after {
        content: '';
        position: absolute;
        right: 12px;
        bottom: calc(var(--cookie-mobile-separator-offset) + 48px);
        left: 12px;
        height: 1px;
        background: rgba(255, 255, 255, 0.45);
        pointer-events: none;
        z-index: 2;
    }

    .cookie-notice__tint {
        display: block;
        height: calc(var(--cookie-mobile-bottom-inset) - 37px);
        background: rgba(156, 130, 209, 0.72);
        transform: translateZ(0);
        z-index: 1;
    }

    .cookie-notice__content {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 16px;
        max-width: none;
        min-height: 72px;
        padding: 14px 12px 80px;
        border-radius: 24px 24px 0 0;
        background: rgba(156, 130, 209, 0.72);
        backdrop-filter: blur(12px);
        transform: none;
        z-index: 1;
    }

    .cookie-notice__text {
        font-size: 10px;
        line-height: 14px;
        letter-spacing: 0;
    }

    .cookie-notice__button {
        width: auto;
        min-width: 77px;
        min-height: 32px;
        padding: 9px 14px;
        font-size: 12px;
        line-height: 14px;
    }
}
