/* Основной контейнер - точка отсчёта для абсолютного позиционирования */
.nan-consent-checkbox {
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.4;
    display: block;
    position: relative; /* Важно! Становится anchor для абсолютного позиционирования ошибки */
    width: 100%;
}

/* Переопределяем label.error только внутри нашего компонента */
.nan-consent-checkbox label.error {
    /* Отменяем глобальные стили */
    position: relative !important; /* Вместо absolute */
    top: auto !important;
    right: auto !important;
    display: block !important;
    width: 100% !important;
    margin: 8px 0 0 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    color: #e02222 !important;
    z-index: auto !important;
    order: 3 !important;
    flex-basis: 100% !important; /* Занимает всю ширину, переносит на новую строку */

}

/* Родительский label переводим в flex-колонку */
.nan-consent-checkbox__label {
    display: flex !important;
    flex-direction: row !important; /* Горизонтально */
    flex-wrap: wrap !important; /* Разрешаем перенос */
    align-items: flex-start !important;
    gap: 8px !important;
    cursor: pointer;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Убираем фиксированную высоту, если есть */
.nan-consent-checkbox__label.error {
    height: auto !important;
}

/* Контейнер для чекбокса и текста (горизонтальная часть) */
.nan-consent-checkbox__label .checkbox-inner {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}



/* Чекбокс и текст в одной строке */
.nan-consent-checkbox__input {
    margin-top: 2px;
    flex-shrink: 0;
    order: 1;
}

.nan-consent-checkbox__text {
    flex: 1;
    order: 2;
}

.nan-consent-checkbox__input {
    margin-top: 2px;
    margin-left: 4px !important;
}

/* Дополнительно — сбрасываем возможные влияния на сам чекбокс */
.nan-consent-checkbox__input {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
}

.nan-consent-checkbox__text a {
    text-decoration: underline;
}

.nan-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}

.nan-consent-modal.is-open {
    display: block;
}

.nan-consent-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.nan-consent-modal__dialog {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 8vh auto;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    padding: 20px;
    max-height: 84vh;
    overflow: auto;
}

.nan-consent-modal__close {
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    position: absolute;
    right: 10px;
    top: 8px;
    cursor: pointer;
}

.nan-consent-modal__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.nan-consent-modal__content {
    font-size: 14px;
    line-height: 1.5;
}

