.woocommerce-billing-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.woocommerce-shipping-fields__field-wrapper p.form-row,
.woocommerce-billing-fields__field-wrapper p.form-row,
.woocommerce-shipping-fields__field-wrapper p.form-row,
.woocommerce-billing-fields__field-wrapper p.form-row {
    width: 100%;
    margin-bottom: 0;
}

.woocommerce-shipping-fields__field-wrapper #shipping_first_name_field,
.woocommerce-shipping-fields__field-wrapper #shipping_last_name_field,
.woocommerce-shipping-fields__field-wrapper #billing_first_name_field,
.woocommerce-shipping-fields__field-wrapper #billing_last_name_field,
.woocommerce-billing-fields__field-wrapper #shipping_first_name_field,
.woocommerce-billing-fields__field-wrapper #shipping_last_name_field,
.woocommerce-billing-fields__field-wrapper #billing_first_name_field,
.woocommerce-billing-fields__field-wrapper #billing_last_name_field,
.woocommerce-shipping-fields__field-wrapper #shipping_first_name_field,
.woocommerce-shipping-fields__field-wrapper #shipping_last_name_field,
.woocommerce-shipping-fields__field-wrapper #billing_first_name_field,
.woocommerce-shipping-fields__field-wrapper #billing_last_name_field,
.woocommerce-billing-fields__field-wrapper #shipping_first_name_field,
.woocommerce-billing-fields__field-wrapper #shipping_last_name_field,
.woocommerce-billing-fields__field-wrapper #billing_first_name_field,
.woocommerce-billing-fields__field-wrapper #billing_last_name_field {
    width: calc(50% - var(--bde-woo-forms__spacing-between-fields) / 2);
    min-width: 140px;
    flex-grow: 1;
}

.woocommerce-shipping-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.shipping_address {
    margin-top: 20px;
}

p.form-row {
    display: flex;
    flex-direction: column;
}

p.form-row label {
    font-weight: 600;
    color: var(--color-text);
    font-size: var(--font-size);
}

p.form-row.woocommerce-invalid input,
p.form-row.woocommerce-invalid .woocommerce-form__label-for-checkbox.checkbox span:before {
    outline: solid 1px var(--color-error);
}

.woocommerce-input-wrapper input {
    border: solid 1px var(--color-border-colored);
    border-radius: var(--border-radius-input);
    padding: 10px 15px;
    width: 100%;
}

.select2-container--default .select2-selection--single,
select {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    height: auto;
}

.woocommerce-billing-fields__field-wrapper .select2-container--default .select2-selection--single {
    height: 100%;
    border: none;
}

.woocommerce-billing-fields__field-wrapper .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 10px 15px;
    border: solid 1px var(--color-border);
    border-radius: var(--border-radius-input);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    width: 40px;
}

.woocommerce-input-wrapper textarea {
    border: solid 1px var(--color-border);
    border-radius: var(--border-radius-input);
    padding: 10px 15px;
    width: 100%
}

.woocommerce-input-wrapper select {
    border: solid 1px var(--color-border);
    border-radius: var(--border-radius-input);
    padding: 10px 15px;
    width: 100%;
    background-image: url(/wp-content/themes/webko-b2b/assets/images/icons/chevron-down.svg);
    background-size: 25px;
    background-repeat: no-repeat;
    background-position-y: center;
    background-position-x: calc(100% - 10px);
    color: var(--color-text);
    background-color: var(--color-white);
}

.woocommerce-form__label-for-checkbox.checkbox input {
    display: none;
}

.woocommerce-terms-and-conditions-wrapper abbr.required {
    display: none;
}

.woocommerce-terms-and-conditions-wrapper label.woocommerce-form__label.woocommerce-form__label-for-checkbox.checkbox {
    display: flex;
    margin-bottom: 20px;
    justify-content: center;
    align-items: center;
}

span.woocommerce-terms-and-conditions-checkbox-text:after {
    content: "*";
    margin-left: 3px;
}

.woocommerce-form__label-for-checkbox.checkbox span {
    display: block;
    position: relative;
    padding-left: 30px;
}

.woocommerce-form__label-for-checkbox.checkbox span:before {
    content: '';
    display: flex;
    width: 25px;
    height: 25px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-checkbox);
    background-color: var(--color-white);
    transition: background-color 100ms ease;
    margin-right: 6px;
    position: absolute;
    left: 0;
}

.woocommerce-form__label-for-checkbox.checkbox input:checked+span:before {
    background-color: var(--color-primary);
    background-image: url(../../images/icons/checkmark.svg);
    background-size: 17px;
    background-position: center;
    background-repeat: no-repeat;
    border-color: var(--color-primary);
}

@media (max-width:767px) {

    .woocommerce-shipping-fields__field-wrapper #shipping_first_name_field,
    .woocommerce-shipping-fields__field-wrapper #shipping_last_name_field,
    .woocommerce-shipping-fields__field-wrapper #billing_first_name_field,
    .woocommerce-shipping-fields__field-wrapper #billing_last_name_field,
    .woocommerce-billing-fields__field-wrapper #shipping_first_name_field,
    .woocommerce-billing-fields__field-wrapper #shipping_last_name_field,
    .woocommerce-billing-fields__field-wrapper #billing_first_name_field,
    .woocommerce-billing-fields__field-wrapper #billing_last_name_field,
    .woocommerce-shipping-fields__field-wrapper #shipping_first_name_field,
    .woocommerce-shipping-fields__field-wrapper #shipping_last_name_field,
    .woocommerce-shipping-fields__field-wrapper #billing_first_name_field,
    .woocommerce-shipping-fields__field-wrapper #billing_last_name_field,
    .woocommerce-billing-fields__field-wrapper #shipping_first_name_field,
    .woocommerce-billing-fields__field-wrapper #shipping_last_name_field,
    .woocommerce-billing-fields__field-wrapper #billing_first_name_field,
    .woocommerce-billing-fields__field-wrapper #billing_last_name_field {
        width: 100%;
    }
}

#billing_country_field,
#shipping_country_field {
    display: none;
}