/* General */
.entity-switch { margin-bottom: 27px; }
.entity-switch.inactive {
    opacity: 0.5;
    pointer-events: none;
}

.error-tip {
    margin-top: 4px;
    font-size: 12px;
    line-height: 18px;
    color: #FF0000;
}

.form-error {
    margin-top: 14px;
    font-size: 14px;
    text-align: center;
    color: #ff0000;
}



/* Checkboxes */
.widget_pdgc_product_brands li {
    margin-bottom: 4px;
}
.bapf_ckbox .bapf_body li,
ul.product-brands li,
label.checkbox {
    position: relative;
    overflow: hidden;
}
.bapf_ckbox .bapf_body li:not(:last-child) { margin-bottom: 12px; }

.bapf_ckbox .bapf_body li:nth-child(n+5),
label.checkbox abbr,
label.checkbox .optional { display: none; }

.bapf_ckbox.show-all .bapf_body li:nth-child(n+5),
label.checkbox { display: block; }

label.checkbox { min-height: 22px; }


.bapf_ckbox .bapf_body input,
ul.product-brands input[type="checkbox"],
label.checkbox input {
    position: absolute;
    left: -9999px;
}

.bapf_ckbox .bapf_body label,
ul.product-brands label,
label.checkbox .field-label {
    position: relative;
    min-height: 20px;
    padding-left: 30px;
    display: block;
    font-size: 12px;
    line-height: 18px;
    cursor: pointer;
}
label.checkbox .field-label { padding-left: 32px; }

.bapf_ckbox .bapf_body label::before,
ul.product-brands label > span::before,
label.checkbox .field-label::before {
    position: absolute;
    top: 0;
    left: 2px;
    width: 20px;
    height: 20px;
    border: 2px solid #000;
    border-radius: 3px;
    transition: all .2s;
    content: '';
}
label.checkbox .field-label::before { top: 2px; }
ul.product-brands label > span::before { top: 0; }

label.checkbox .field-label a { color: #FF5330; }

.bapf_ckbox .bapf_body label:hover::before,
ul.product-brands label:hover > span::before,
label.checkbox:hover .field-label::before { border-color: #FF5330; }

.bapf_ckbox .bapf_body input:checked + label::before,
ul.product-brands input[type="checkbox"]:checked + span::before,
label.checkbox input:checked + .field-label::before {
    background: #FF5330 url('../img/check.svg') center no-repeat;
    border-color: #FF5330;
}

label.checkbox.error .field-label::before { border-color: #FF5330; }



/* Radio buttons */
.radio-list li {
    position: relative;
    overflow: visible !important;
}

.radio-list > li > input {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.radio-list > li > label {
    position: relative;
    display: block;
    min-height: 20px;
    padding-left: 32px;
    padding-top: 2px;
    font-size: 14px;
    line-height: 18px;
    cursor: pointer;
}

.radio-list > li > label::before {
    position: absolute;
    top: 0;
    left: 2px;
    width: 20px;
    height: 20px;
    border: 2px solid #000;
    border-radius: 50%;
    transition: all .2s;
    content: '';
}

.radio-list > li > label:hover::before,
.radio-list > li > input:checked + label::before { border-color: #FF5330; }

.radio-list > li > input:checked + label::after {
    position: absolute;
    top: 5px;
    left: 7px;
    width: 10px;
    height: 10px;
    background: #FF5330;
    border-radius: 50%;
    content: '';
}

@media ( min-width: 581px ) {
    .radio-list.flex li:not(:last-child) { margin-right: 28px; }

    .radio-list:not(.flex) li:not(:last-child) { margin-bottom: 14px; }

    .radio-list.wc_payment_methods:not(.flex) li:not(:last-child) { margin-bottom: 18px; }
}

@media ( max-width: 580px ) {
    .radio-list.flex li { width: 100%; }

    .radio-list.flex li:not(:last-child),
    .radio-list:not(.flex) li:not(:last-child) {
        margin-right: 0;
        margin-bottom: 14px;
    }

    .radio-list.wc_payment_methods:not(.flex) li:not(:last-child) { margin-bottom: 18px; }
}



/* Inputs */
.field-mg { margin-bottom: 14px; }
.field-mg-lg { margin-bottom: 24px; }


.checkout-step .wc-field label,
.checkout-step .wc-field input[type="text"],
.checkout-step .wc-field input[type="email"],
.checkout-step .wc-field input[type="tel"],
.field label,
.woocommerce-input-wrapper { display: block; }

.checkout-step .wc-field label,
.field label {
    margin-bottom: 9px;
    padding-left: 2px;
    font-weight: 900;
    font-size: 12px;
    line-height: 18px;
}

.checkout-step .wc-field label abbr { display: none; }

.checkout-step .wc-field input[type="text"],
.checkout-step .wc-field input[type="email"],
.checkout-step .wc-field input[type="tel"],
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 21px;
    border: 1px solid #828282;
    border-radius: 4px;
}

.checkout-step .wc-field input[type="text"]::placeholder,
.checkout-step .wc-field input[type="email"]::placeholder,
.checkout-step .wc-field input[type="tel"]::placeholder,
.field input[type="text"]::placeholder,
.field input[type="email"]::placeholder,
.field input[type="tel"]::placeholder,
.field input[type="password"]::placeholder { color: #B5B5B5; }

.field.error label,
.wc-field.error label { color: #FF0000; }

.field.error input[type="text"],
.field.error input[type="email"],
.field.error input[type="tel"],
.field.error input[type="password"],
.wc-field.error input[type="text"],
.wc-field.error input[type="email"],
.wc-field.error input[type="tel"],
.wc-field.error input[type="password"] { border-color: #FF0000; }



/* Popup */
.ajax-popup {
    position: fixed;
    top: 200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 460px;
    max-width: 100%;
    padding: 28px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.ajax-popup__icon,
.ajax-popup__title { margin-bottom: 14px; }

.ajax-popup .fancybox-button { display: none !important; }
