.vf-cookie-banner[hidden],
.vf-cookie-banner__current[hidden] {
    display: none !important;
}

body.vf-cookie-banner-open {
    padding-bottom: var(--vf-cookie-banner-space, 0px) !important;
}

.vf-cookie-banner {
    position: fixed;
    z-index: 100000;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    max-width: 1040px;
    max-height: min(70vh, 520px);
    margin: 0 auto;
    padding: 20px 24px;
    overflow-y: auto;
    border: 1px solid #e5e0eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(29, 22, 53, .16);
    color: #1d1b36;
    font: inherit;
}

.vf-cookie-banner__copy {
    max-width: 700px;
}

.vf-cookie-banner__copy strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
    line-height: 1.35;
}

.vf-cookie-banner__copy p {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.5;
}

.vf-cookie-banner__copy p:last-child {
    margin-bottom: 0;
}

.vf-cookie-banner__policy a,
.vf-cookie-settings-link {
    color: #68219d;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.vf-cookie-banner__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.vf-cookie-banner__button {
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid #68219d;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
}

.vf-cookie-banner__button--accept {
    background: #68219d;
    color: #fff;
}

.vf-cookie-banner__button--necessary {
    background: #fff;
    color: #68219d;
}

.vf-cookie-banner__button:hover,
.vf-cookie-banner__button:focus-visible {
    box-shadow: 0 0 0 3px rgba(104, 33, 157, .18);
}

.vf-cookie-settings-link {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.vf-cookie-login-settings {
    display: none;
}

body.login .vf-cookie-login-settings {
    display: block;
    margin: 14px auto 24px;
    text-align: center;
}

@media (max-width: 700px) {
    .vf-cookie-banner {
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        left: 10px;
        display: block;
        max-height: 75vh;
        padding: 16px;
        border-radius: 14px;
    }

    .vf-cookie-banner__copy strong {
        font-size: 17px;
    }

    .vf-cookie-banner__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 14px;
    }

    .vf-cookie-banner__button {
        min-height: 48px;
        padding: 10px 8px;
    }
}

@media (max-width: 370px) {
    .vf-cookie-banner__actions {
        grid-template-columns: 1fr;
    }
}
