#billing_city_field .woocommerce-input-wrapper,
#shipping_city_field .woocommerce-input-wrapper,
#billing_address_1_field .woocommerce-input-wrapper,
#shipping_address_1_field .woocommerce-input-wrapper {
    position: relative;
}

.w5e-ant-select {
    position: relative;
}

.w5e-ant-select-input {
    position: relative;
}

.w5e-ant-select-input::before {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 2px solid #8c8c8c;
    border-bottom: 2px solid #8c8c8c;
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
}

.w5e-ant-select .input-text,
.w5e-ant-select .wc-block-components-text-input input {
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    padding-right: 36px;
    background-color: #fff;
    box-shadow: none;
    height: 40px;
}

.w5e-ant-select .input-text:focus,
.w5e-ant-select .wc-block-components-text-input input:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 2px rgba(5, 145, 255, 0.1);
}

/* .w5e-ant-select .wc-block-components-text-input label,
.w5e-ant-select label {
    color: #8c8c8c;
    font-size: 12px;
} */

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.woocommerce-billing-fields__field-wrapper>.form-row,
.woocommerce-shipping-fields__field-wrapper>.form-row {
    flex: 1 1 100%;
}

#billing_city_field,
#billing_postcode_field,
#shipping_city_field,
#shipping_postcode_field {
    box-sizing: border-box;
    flex: 1 1 calc(50% - 6px);
}

.wc-block-components-address-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.wc-block-components-address-form>* {
    flex: 1 1 100%;
}

.wc-block-components-address-form__city,
.wc-block-components-address-form__postcode {
    flex: 1 1 calc(50% - 6px);
}

#billing_city_field .woocommerce-input-wrapper::after,
#shipping_city_field .woocommerce-input-wrapper::after,
#billing_address_1_field .woocommerce-input-wrapper::after,
#shipping_address_1_field .woocommerce-input-wrapper::after,
.w5e-loading::after {
    display: none;
    content: '';
    position: absolute;
    right: 3px;
    top: 12px;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border-top-color: #000;
    animation: w5e-spin 1s linear infinite;
}

#billing_city_field .woocommerce-input-wrapper.w5e-loading::after,
#shipping_city_field .woocommerce-input-wrapper.w5e-loading::after,
#billing_address_1_field .woocommerce-input-wrapper.w5e-loading::after,
#shipping_address_1_field .woocommerce-input-wrapper.w5e-loading::after,
.w5e-loading::after {
    display: inline-block;
}

.w5e-loading {
    position: relative;
}

.ui-autocomplete {
    background: #fff;
    color: #000;
    border: 1px solid #d6d6d6;
    z-index: 999999;
    max-height: 260px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ui-autocomplete .ui-menu-item-wrapper {
    color: #000;
    padding: 6px 10px;
}

.ui-autocomplete .ui-state-active {
    background: #0038B8;
    color: #fff;
    border: 0;
}

@media (max-width: 600px) {

    #billing_city_field,
    #billing_postcode_field,
    #shipping_city_field,
    #shipping_postcode_field {
        flex: 1 1 100%;
    }

    .wc-block-components-address-form__city,
    .wc-block-components-address-form__postcode {
        flex: 1 1 100%;
    }
}

@keyframes w5e-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}