/* Блок чекбоксов согласия (GDPR) */
.consent_block {
    margin: 14px 0 20px 0;
    text-align: left;
}

.consent_block .consent_row {
    margin-bottom: 10px;
}

.consent_block .consent_row:last-child {
    margin-bottom: 0;
}

.consent_block .consent_label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 19px;
    font-weight: 400;
    color: #6D6D6D;
    margin: 0;
    text-align: left;
}

/* Вид как у .check_logo в попапе регистрации (kcss/regpopup.css, add.css): 20px + рамка,
   фирменный градиент, белая галочка. Галочка фоном, а не ::before — псевдоэлементы на input работают не везде */
.consent_block .consent_label input.consent_check {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    width: 20px;
    min-width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    cursor: pointer;
    position: static;
    opacity: 1;
    /* inherit, а не visible: иначе чекбокс просвечивает сквозь закрытые попапы,
       которые прячутся через visibility: hidden, и висит одиноким квадратиком поверх страницы */
    visibility: inherit;
    display: inline-block;
    border: 1px solid #D3D8DD;
    border-radius: 2px;
    background: #FFF;
}

.consent_block .consent_label input.consent_check:checked {
    background: url(../image/add/check.svg) 2px 3px / 16px 12px no-repeat,
                linear-gradient(112deg, #DF2241 0%, #DF2241 0.01%, #F64F45 100%);
}

.consent_block .consent_label input.consent_check:focus-visible {
    outline: 2px solid #DF2040;
    outline-offset: 1px;
}

/* В попапе регистрации текст начинается там же, где у «Adăugați logo» (margin-right 20px) */
.popup_registr .consent_block .consent_label {
    gap: 20px;
}

.popup_registr .consent_block .consent_err {
    margin-left: 42px;
}

.consent_block .consent_text {
    display: block;
    flex: 1 1 auto;
    padding-top: 1px;
}

.consent_block .consent_text a {
    color: #DF2040;
    text-decoration: underline;
}

.consent_block .consent_text a:hover {
    text-decoration: none;
}

.consent_block .consent_err {
    display: none;
    margin: 4px 0 0 34px;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 16px;
    color: #DF2040;
}

.consent_block .consent_row_err .consent_err {
    display: block;
}

.consent_block .consent_row_err input.consent_check {
    outline: 1px solid #DF2040;
}

/* ------------------------------------------------------------------
   Модальное окно для правовых страниц (Условия / Политика)
   ------------------------------------------------------------------ */
.consent_modal_overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.55);
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.consent_modal_overlay.consent_modal_open {
    display: block;
}

.consent_modal {
    position: relative;
    background: #FFF;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 860px;
    margin: 40px auto;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

.consent_modal_close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    line-height: 30px;
    text-align: center;
    font-size: 26px;
    color: #6D6D6D;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    z-index: 2;
}

.consent_modal_close:hover {
    color: #DF2040;
}

.consent_modal_body {
    padding: 30px 30px 30px;
    max-height: 78vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.consent_modal_body h1 {
    margin: 0 0 20px 0;
    padding-right: 30px;
    font-size: 22px;
    line-height: 28px;
    color: #333;
    font-weight: 600;
}

.consent_modal_body .static-page-content,
.consent_modal_body .consent_modal_text {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    white-space: pre-line;
    word-wrap: break-word;
}

.consent_modal_body a {
    color: #DF2040;
}

.consent_modal_loader {
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
    color: #6D6D6D;
}

@media (max-width: 767px) {
    .consent_modal_overlay {
        padding: 0;
    }

    .consent_modal {
        margin: 0;
        min-height: 100%;
        border-radius: 0;
    }

    .consent_modal_body {
        padding: 25px 15px;
        max-height: none;
    }
}
