/* General */
.form-fields { margin-bottom: 24px; }

.input-mg,
.wc-field { margin-bottom: 24px; }

.input,
.input__label,
.input__field,
.wc-field,
.wc-field label,
.wc-field input,
.wc-field textarea {
    display: block;
    width: 100%;
    position: relative;
}

.wc-field.col-md-auto {
    width: auto;
}

.wc-field .optional { 
    text-indent: -9999px;
}

.wc-field label:not(.checkbox) .optional {
    display: none;
}

.wc-field label.checkbox .optional {
    position: absolute;
    top: 0;
    left: 1px;
    height: 100%;
}

.input__label,
.wc-field label {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    line-height: 21px;
    color: var(--color-dark);
}

.wc-field label { margin-bottom: 15px; }

.wc-field label.checkbox {
    line-height: normal;
    font-weight: 500;
    position: relative;
    padding-left: 27px;
}

.wc-field > label:not(.error, .checkbox),
.input__label {
    position: absolute;
    top: 16.5px;
    left: 36px;
    display: inline-block !important;
    /* width: auto !important; */
    pointer-events: none;
    z-index: 1;
    transition: all 0.3s ease-in-out;
}

.input__label {
    left: 16px;
}

.wc-field.focused>label:not(.error),
label.focused .input__label {
    font-size: 12px;
    top: -9px;
}

.wc-field label[for=billing_country] {
    opacity: 0;
}

/* .wc-field.focused>label {
    top: -9px;
} */

.input__required,
.wc-field .required {
    position: relative;
    top: -3px;
    margin-left: 0px;
    vertical-align: middle;
    font-size: 100%;
    text-decoration: none;
    color: var(--color-secondary);
}


/* Text inputs */
.input__field,
.wc-field input,
.wc-field textarea {
    padding: 16px;
    font-size: 14px;
    line-height: 21px;
    background: #EFF1F4;
    border: 0;
    border-radius: 4px;
}

textarea.input__field { height: 152px; }
.wc-field textarea { height: 159px; } 



/* Radio buttons */
.radio,
.radio__label,
.woocommerce-shipping-methods label,
.wc_payment_methods label {
    display: block;
    overflow: hidden;
}

.woocommerce-shipping-methods li,
.wc_payment_methods li {
    position: relative;
    overflow: hidden;
}

.radio input,
.woocommerce-shipping-methods li input,
.wc_payment_methods li input {
    position: absolute;
    top: 0;
    left: -999px;
}

.radio__label,
.woocommerce-shipping-methods label,
.wc_payment_methods label {
    font-size: 14px;
    position: relative;
    padding-left: 28px;
}

.radio__label::before,
.woocommerce-shipping-methods label::before,
.wc_payment_methods label::before,
.wc_payment_methods label.paysera-payment-active::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 16px;
    height: 16px;
    border: 1px solid #96999D;
    border-radius: 50%;
    transform: translateY(-50%);
    content: '';
}


.radio input:checked + .radio__label,
.woocommerce-shipping-methods li input:checked + label,
.wc_payment_methods li input:checked + label { font-weight: 500; }

.radio input:checked + .radio__label::before,
.woocommerce-shipping-methods li input:checked + label::before,
.wc_payment_methods li input:checked + label::before,
.wc_payment_methods label.paysera-payment-active::before {
    background: transparent;
    border: 2px solid var(--color-primary);
}

.radio input:checked + .radio__label::after,
.woocommerce-shipping-methods li input:checked + label::after,
.wc_payment_methods li input:checked + label::after,
.wc_payment_methods label.paysera-payment-active::after {
    position: absolute;
    top: 50%;
    left: 5px;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    transform: translateY(-50%);
    content: '';
}

.radio input[disabled] + .radio__label,
.woocommerce-shipping-methods li input[disabled] + label,
.wc_payment_methods li input[disabled] + label {
    opacity: .5;
    pointer-events: none;
}

.SumoSelect>.CaptionCont>span.placeholder {
    opacity: 0 !important;
}

/* Checkboxes */
.checkbox,
.checkbox span {
    position: relative;
    display: block;
    /* overflow: hidden; */
}

.checkbox input {
    position: absolute;
    top: 0;
    left: -99999px;
}

.checkbox span { padding-left: 28px; }

.checkbox span a {
    font-weight: 700;
    color: var(--color-primary);
}

.checkbox span::before,
.checkbox span::after {
    position: absolute;
    top: 50%;
    left: 0;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 1px solid #96999D;
    border-radius: 2px;
    content: '';
    transition: all .2s;
    transform: translateY(-50%);
}

.checkbox span::after {
    background-color: transparent;
    background-image: url('../../img/check.svg');
    background-position: center;
    background-repeat: no-repeat;
    border-color: var(--color-primary);
    opacity: 0;
}


.checkbox:hover span::before { border-color: #BCB5B2; }

.checkbox input:checked + span::before {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox input:checked + span::after { opacity: 1; }

/* Validation */

.is-error .input__field,
label.error {
    color: var(--color-error);
}

.wpcf7-not-valid-tip {
    font-size: 12px;
}


.wpcf7-response-output {
    text-align: center;
    padding: 20px 20px 0 4px;
}
/* Responsive */

@media (max-width: 1099px) {
    .b-ps__filter {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {

    .form-fields {
        margin-bottom: 17px;
    }

    .radio__label {
        font-size: 12px;
        padding-left: 23px;
    }

    .input__field, .wc-field input, .wc-field textarea {
        padding: 10px;
    }

    .input-mg, .wc-field {
        margin-bottom: 7px;
    }

    .wc-field > label:not(.error,.checkbox), 
    .input__label {
        font-size: 12px;
        top: 11px;
        left: 16px;
    }
    .wc-field.focused>label, 
    .wc-field label[for=billing_country], 
    label.focused .input__label {
        font-size: 12px;
        top: -9px;
    }

    .input__label {
        left: 16px;
    }

    textarea.input__field {
        height: 93px;
    }

    .wc-field label {
        margin-bottom: 12px;
    }

    .input__label, .wc-field label {
        font-size: 12px;
    }

    .checkbox span::before,
    .checkbox span::after {
        top: 50%;
        transform: translateY(-50%);
    }

    .input__field,
    .wc-field input,
    .wc-field textarea {
        font-size: 12px;
    }

    .wc-field textarea {
        height: 80px;
    }

    .checkbox span {
        padding-left: 28px;
    }

}