.personal-data-consent {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 14px 0;
    color: #5f5f5f;
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
}

.personal-data-consent > input[type="checkbox"] {
    flex: 0 0 18px !important;
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    margin: 1px 0 0 !important;
    padding: 0 !important;
    border-radius: 2px;
    text-align: initial !important;
    accent-color: #7d0808;
}

.personal-data-consent > span {
    min-width: 0;
    color: #5f5f5f;
}

.personal-data-consent a,
.personal-data-consent__link {
    display: inline !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #7d0808 !important;
    text-decoration: underline !important;
}

.footer__form form {
    flex-wrap: wrap;
    align-items: flex-start;
}

.footer__form form > .personal-data-consent {
    flex: 0 0 100%;
    margin: 6px 0 12px;
}

.personal-data-note {
    margin: 10px 0 14px;
    color: #777;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
}

/* Compact cookie notice: small toast that does not cover the page content. */
.af-cookie-consent {
    position: fixed;
    left: 16px;
    right: auto;
    bottom: 16px;
    z-index: 10050;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: min(470px, calc(100vw - 32px));
    box-sizing: border-box;
    padding: 11px 42px 11px 14px;
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 14px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
    color: #333;
    font-size: 12px;
    line-height: 1.35;
}

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

.af-cookie-consent__close {
    position: absolute;
    top: 7px;
    right: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(125, 8, 8, .07);
    color: #7d0808;
    cursor: pointer;
    font-size: 19px;
    font-weight: 500;
    line-height: 1;
    transition: background-color .2s ease, color .2s ease;
}

.af-cookie-consent__close:hover {
    background: #7d0808;
    color: #fff;
}

/* The heading is visually redundant in a compact notice; aria text remains in the dialog. */
.af-cookie-consent__title {
    display: none;
}

.af-cookie-consent__text {
    min-width: 0;
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
}

.af-cookie-consent__text a {
    color: #7d0808;
    text-decoration: underline;
}

.af-cookie-consent__actions {
    margin: 0;
}

.af-cookie-consent__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 82px;
    min-height: 34px;
    border: 0;
    border-radius: 9px;
    padding: 8px 13px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: background-color .2s ease, box-shadow .2s ease;
}

.af-cookie-consent__button:hover {
    box-shadow: 0 6px 14px rgba(125, 8, 8, .18);
}

.af-cookie-consent__button--accept {
    background: #7d0808;
    color: #fff;
}

@media (max-width: 575px) {
    /*
     * На мобильных не перекрываем нижнее меню сайта.
     * 58px — высота/зона мобильной sticky-навигации ArtFresco.
     */
    .af-cookie-consent {
        left: 8px;
        right: 8px;
        bottom: calc(58px + env(safe-area-inset-bottom, 0px));
        width: auto;
        gap: 8px;
        padding: 9px 38px 9px 11px;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
    }

    .af-cookie-consent__close {
        top: 6px;
        right: 6px;
        width: 22px;
        height: 22px;
        font-size: 18px;
    }

    .af-cookie-consent__text {
        font-size: 11.5px;
        line-height: 1.32;
    }

    .af-cookie-consent__button {
        min-width: 72px;
        min-height: 32px;
        padding: 7px 10px;
        border-radius: 8px;
        font-size: 11.5px;
    }

    /*
     * Пока уведомление cookies видно, штатный приветственный balloon
     * Bitrix24 скрываем, а саму кнопку чата поднимаем над уведомлением.
     * Чат остаётся доступным и не перекрывает юридический notice.
     */
    body.af-cookie-consent-visible .b24-widget-button-popup {
        display: none !important;
    }

    body.af-cookie-consent-visible .b24-widget-button-wrapper {
        bottom: calc(
            58px
            + env(safe-area-inset-bottom, 0px)
            + var(--af-cookie-consent-height, 76px)
            + 12px
        ) !important;
    }
}

.af-cookie-settings-link {
    position: fixed;
    left: 24px;
    right: auto;
    bottom: 24px;
    z-index: 10040;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100vw - 32px);
    margin: 0;
    padding: 10px 14px;
    border: 1px solid rgba(125, 8, 8, .16);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
    color: #7d0808;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: underline;
    cursor: pointer;
}

.af-cookie-settings-link[hidden] {
    display: none;
}

.af-cookie-settings-link:hover {
    color: #7d0808;
    text-decoration: none;
}


