/*
 * Галочки согласий в формах (common/modules/user/helpers/Consent.php).
 * Формы на сайте свёрстаны по-разному, а часть прячет или растягивает input, поэтому
 * чекбокс приводим к обычному виду с запасом специфичности.
 */
.b_consent {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 18px;
    font-weight: normal;
    color: #333;
    text-align: left;
    cursor: pointer;
}

.b_consent input[type="checkbox"] {
    -webkit-appearance: checkbox;
    appearance: auto;
    display: block !important;
    position: static !important;
    opacity: 1 !important;
    flex: 0 0 18px;
    width: 18px !important;
    height: 18px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    accent-color: #F45B50;
    cursor: pointer;
}

/* У некоторых форм у label свой ::before-чекбокс (.el_checkbox) — у нашего не рисуем */
.b_consent::before,
.b_consent::after {
    content: none !important;
    display: none !important;
}

.b_consent span {
    flex: 1 1 auto;
    min-width: 0;
}

.b_consent a {
    color: inherit;
    text-decoration: underline;
}

.b_consent_field {
    margin-bottom: 10px;
}

.b_consent_field .help-block:empty {
    display: none;
}

.b_consent_field .help-block,
.b_consent_field .help-block-error {
    margin: 4px 0 0 28px;
    font-size: 13px;
    color: #E0362C;
}

/* Под кнопкой: «Регистрируясь, вы принимаете Правила продажи» */
.b_consent_note {
    margin-top: 10px;
    font-size: 12px;
    line-height: 17px;
    color: #6B6B6B;
}

.b_consent_note a {
    color: inherit;
    text-decoration: underline;
}

/* Планшет примерки: крупнее, под палец */
.b_consent.m_large {
    gap: 14px;
    font-size: 16px;
    line-height: 22px;
}

.b_consent.m_large input[type="checkbox"] {
    flex-basis: 28px;
    width: 28px !important;
    height: 28px !important;
}

.b_consent_field.m_large .help-block {
    margin-left: 42px;
}

/* Мобильное оформление заказа: текст ошибки виден, пока у поля .has-error */
.b_consent_error {
    display: none;
    margin-left: 28px;
    font-size: 12px;
    line-height: 1.2;
    color: #E0362C;
}

.has-error > .b_consent_error {
    display: block;
}

/* Системная тёмная тема не должна перекрашивать чекбокс в тёмный на светлом сайте */
.b_consent input[type="checkbox"] {
    color-scheme: light;
}

/* ЛК «Личные данные»: галочка рассылок в стиле сайта (.el_checkbox), ссылку выделяем */
.field-consentAds label a {
    color: inherit;
    text-decoration: underline;
}
