#add_review_item_form .review_consent_group,
.form_consent {
    width: 100%;
    margin: 10px 0;
    clear: both;
    position: relative;
}

.form_consent .decor_checkbox {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}
#add_review_item_form .review_consent_group {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 0;
    float: left;
    font-size: 14px;
}

.form_consent .decor_checkbox > span:first-child {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    background: none;
    width: auto;
    height: auto;
    float: none;
    cursor: default;
}

/* Чекбокс */
#add_review_item_form .review_consent_group input[type="checkbox"],
.form_consent .decor_checkbox span input[type="checkbox"],
#opc_account_form .form_consent .decor_checkbox span input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 1px 10px 0 0;
    padding: 0;
    background: #fff;
    border: 1px solid #ffd02d;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    text-indent: 0;
    display: inline-block;
    box-sizing: border-box;
    vertical-align: middle;
    opacity: 1;
    float: none;
}
#add_review_item_form .review_consent_group input[type="checkbox"]:hover,
.form_consent .decor_checkbox span input[type="checkbox"]:hover,
#opc_account_form .form_consent .decor_checkbox span input[type="checkbox"]:hover {
    border-color: #faa322;
}
#add_review_item_form .review_consent_group input[type="checkbox"]:checked::before,
.form_consent .decor_checkbox span input[type="checkbox"]:checked::before,
#opc_account_form .form_consent .decor_checkbox span input[type="checkbox"]:checked::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: #faa322;
    border-radius: 1px;
}

.pfg-consent .jcf-checkbox {
    vertical-align: middle;
    display: inline-block;
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ffd02d;
    box-sizing: border-box;
    margin: 0 10px 0 0;
    height: 16px;
    width: 16px;
    cursor: pointer;
    border-radius: 2px;
}
.pfg-consent .jcf-checkbox > span {
    background: #ffd02d;
    position: absolute;
    width: auto;
    height: auto;
    border: none;
    display: none;
    top: 2px;
    left: 2px;
    bottom: 2px;
    right: 2px;
    cursor: pointer;
    margin: 0;
    transform: rotate(0deg);
}
.pfg-consent .jcf-checkbox input[type="checkbox"] {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0;
    left: 0;
    top: 0;
}
.pfg-consent .jcf-checkbox.jcf-checked > span { display: block; }

/* Текст */
.form_consent .decor_checkbox .terms_conditions,
#add_review_item_form .review_consent_group label.terms_conditions {
    flex: 1;
    padding: 0;
    font-size: 13px;
    line-height: 1.3;
    cursor: pointer;
    color: inherit;
}
.form_consent .terms_conditions a,
#add_review_item_form .review_consent_group .terms_conditions a {
    color: inherit;
    text-decoration: underline;
}
.form_consent .terms_conditions a:hover,
#add_review_item_form .review_consent_group .terms_conditions a:hover {
    text-decoration: none;
}

.pfg-popup .terms_conditions {
    color: #4e4e4e;
}
.pfg-popup .terms_conditions a {
    color: inherit;
    text-decoration: underline;
}
.pfg-popup .terms_conditions a:hover {
    text-decoration: none;
}

/* Ошибка */
.form_consent .terms_conditions .required,
.form_consent .decor_checkbox > .required,
#add_review_item_form .review_consent_group .required {
    display: none;
}
.form_consent  .required {
    flex: 0 0 100%;
    margin: 4px 0 0;
    color: #e32330;
    font-size: 13px;
}

.bonorder-consent .decor_checkbox > .required {
    text-align: left;
}

.form_consent.input_empty .terms_conditions .required,
.form_consent.input_empty .decor_checkbox > .required,
.form_consent.checkbox_required .terms_conditions .required,
.form_consent.checkbox_required .decor_checkbox > .required,
#add_review_item_form .review_consent_group.input_empty .required,
#add_review_item_form .review_consent_group.checkbox_required .required {
    display: block;
}

/* Обводка ошибки */
.form_consent.input_empty .decor_checkbox span input[type="checkbox"],
.form_consent.checkbox_required .decor_checkbox span input[type="checkbox"],
#add_review_item_form .review_consent_group.input_empty input[type="checkbox"],
#add_review_item_form .review_consent_group.checkbox_required input[type="checkbox"] {
    border-color: #f66f79;
    border-width: 1.2px;
}
.form_consent .decor_checkbox span input[type="checkbox"]:user-invalid,
#add_review_item_form .review_consent_group input[type="checkbox"]:user-invalid {
    border-color: #f66f79;
    border-width: 1.2px;
}
.form_consent .decor_checkbox:has(input:user-invalid) .jcf-checkbox,
.form_consent.checkbox_required .decor_checkbox .jcf-checkbox,
.form_consent.input_empty .decor_checkbox .jcf-checkbox,
.form_consent .decor_checkbox:has(input:user-invalid) > span,
.form_consent.checkbox_required .decor_checkbox > span,
.form_consent.input_empty .decor_checkbox > span {
    border-color: #f66f79;
    border-width: 1.2px;
}
}
