.delivery-to {
  display: none;
}

.delivery-to > h3 {
  margin-bottom: 5px;
  font-size: 18px;
}

#nele_ship_to_field {
  display: none !important;
}

.delivery-to .delivery-to--content {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 4px;
}

.delivery-to .delivery-to--content li {
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
}

.delivery-to .delivery-to--content li label {
  display: flex;
}

.delivery-to .delivery-to--content li label > div {
  margin-left: 6px;
}

.delivery-to .delivery-to--content li .select2-container {
  width: 100% !important;
}

#nele_office_field > label > span.optional, #nele_place_field > label > span.optional, #nele_street_field > label > span.optional, #nele_district_field > label > span.optional {
  display: none;
}

#nele_office_field > label:after, #nele_place_field > label:after, #nele_street_field > label:after, #nele_district_field > label:after {
  content: " *";
  color: red;
}

.woocommerce-shipping-totals.shipping, #nele_place_id_field, #nele_office_id_field {
  display: none;
}

#custom_shipping_field label {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 18px;
}

.delivery-to--content .headings {
  color: #585858;
}

.delivery-to--content .headings span {
  font-weight: 700;
  display: block;
  color: black;
}

.woocommerce-checkout .select2-dropdown {
  background: #f2f2f2;
  padding: 8px;
  -webkit-box-shadow: 0px 6px 19px 0px rgba(0, 0, 0, 0.23);
  -moz-box-shadow: 0px 6px 19px 0px rgba(0, 0, 0, 0.23);
  box-shadow: 0px 6px 19px 0px rgba(0, 0, 0, 0.23);
}

.woocommerce-checkout .select2-dropdown .select2-results__option--highlighted {
  background: rgba(0, 0, 0, 0.1);
}

.woocommerce-checkout .select2-dropdown .select2-search {
  padding: 0;
}

.woocommerce-checkout .select2-dropdown .select2-search input {
  padding: 8px 16px;
}

form.woocommerce-checkout .to-address #nele_place_field,
form.woocommerce-checkout .to-address #nele_street_field {
  width: 75% !important;
  float: left !important;
  clear: inherit !important;
  margin-right: 0;
}

form.woocommerce-checkout .to-address #billing_postcode_field,
form.woocommerce-checkout .to-address #nele_street_num_field {
  width: 20% !important;
  float: right !important;
  clear: inherit !important;
}

form.woocommerce-checkout .to-address #nele_district_field {
  width: 100%;
  clear: both;
}

form.woocommerce-checkout .to-address .district-detailed-fields {
  display: flex;
  gap: 24px;
  clear: both;
}

form.woocommerce-checkout .to-address .district-detailed-fields p {
  flex: 1;
}

form.woocommerce-checkout .to-address .district-detailed-fields p .optional {
  display: none;
}

form.woocommerce-checkout p .optional {
  display: none;
}

.delivery-to--content {
  padding-left: 0;
}

.delivery-to--content .to-office > label,
.delivery-to--content .to-address > label {
  display: flex;
  align-items: start;
  width: 100%;
}

.delivery-to--content .to-office #to-office-fields,
.delivery-to--content .to-address #to-address-fields {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid white;
}

.delivery-to--content .to-office > label input[type="radio"],
.delivery-to--content .to-address > label input[type="radio"] {
  width: 16px;
  height: 16px;
  margin-top: 6px;
}

.delivery-to--content .headings {
  color: #585858;
  font-size: 15px;
  margin-left: 16px;
}

.delivery-to--content .headings span {
  font-weight: 700;
  display: block;
  color: black;
  font-size: 16px;
}

@media only screen and (max-width: 678px) {
  form.woocommerce-checkout .to-address #nele_place_field,
  form.woocommerce-checkout .to-address #nele_street_field {
    width: 70% !important;
    float: left !important;
    clear: inherit !important;
  }
  form.woocommerce-checkout .to-address #billing_postcode_field,
  form.woocommerce-checkout .to-address #nele_street_num_field {
    width: 26% !important;
    float: right !important;
    clear: inherit !important;
  }
  .delivery-to .delivery-to--content li label {
    line-height: 18px;
    margin-bottom: 6px;
    font-size: 13px;
  }
  form.woocommerce-checkout .to-address #nele_place_field label,
  form.woocommerce-checkout .to-address #nele_street_field label {
    line-height: 12px;
  }
  form.woocommerce-checkout .to-address .district-detailed-fields {
    gap: 4px;
  }
}

.loader {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  position: relative;
  left: 90%;
  margin-top: -35px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.ui-menu.ui-autocomplete {
  padding: 6px 0;
  max-height: 320px;
  overflow-y: auto;
}

.ui-menu.ui-autocomplete .ui-menu-item {
  padding: 4px 12px;
  margin: 0;
  cursor: pointer !important;
  transition: all 0.3s ease-out;
  font-size: 15px;
}

.ui-menu.ui-autocomplete .ui-menu-item:hover {
  background: #f2f2f2;
  cursor: pointer !important;
  transition: all 0.3s ease-in;
}

.ui-menu.ui-autocomplete .ui-menu-item .ui-menu-item-wrapper {
  font-size: 15px;
  color: black;
  cursor: pointer;
}

.ui-menu.ui-autocomplete .ui-menu-item div.ui-menu-item-wrapper:hover,
.ui-menu.ui-autocomplete .ui-menu-item div.ui-menu-item-wrapper.ui-state-active {
  border: none !important;
  background: transparent !important;
  cursor: pointer !important;
}
