.tm-il-dropdown,
.tm-ilce-dropdown,
.tm-mahalle-dropdown {
  width: 100% !important;
  max-width: 100%;
}


.tm-il-dropdown + .select2-container,
.tm-ilce-dropdown + .select2-container,
.tm-mahalle-dropdown + .select2-container {
  width: 100% !important;
}


.tm-ilce-dropdown:disabled,
.tm-mahalle-dropdown:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}


input[name="billing_postcode"][readonly],
input[name="shipping_postcode"][readonly],
#billing_postcode[readonly],
#shipping_postcode[readonly] {
  background-color: #f5f5f5 !important;
  cursor: not-allowed;
}


.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 8px;
}


.select2-container--default .select2-results__option {
  padding: 8px 12px;
}


.select2-container--default
  .select2-results__option--highlighted[aria-selected] {
  background-color: #96588a;
  color: #fff;
}


.tm-yukleniyor {
  position: relative;
}

.tm-yukleniyor::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #ddd;
  border-top-color: #96588a;
  border-radius: 50%;
  animation: tm-spin 0.8s linear infinite;
}

@keyframes tm-spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}


@media (max-width: 768px) {
  .tm-il-dropdown,
  .tm-ilce-dropdown,
  .tm-mahalle-dropdown {
    font-size: 16px; 
  }

  .select2-container--default .select2-selection--single {
    height: 45px;
    line-height: 45px;
  }

  .select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    line-height: 45px;
  }

  .select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 43px;
  }
}


#billing_state.tm-gizli,
#billing_city.tm-gizli,
#billing_address_1.tm-gizli,
#shipping_state.tm-gizli,
#shipping_city.tm-gizli,
#shipping_address_1.tm-gizli {
  display: none !important;
}


.woocommerce-billing-fields .form-row label,
.woocommerce-shipping-fields .form-row label {
  font-weight: 600;
}


.tm-il-dropdown.tm-hata,
.tm-ilce-dropdown.tm-hata,
.tm-mahalle-dropdown.tm-hata {
  border-color: #e74c3c !important;
}

.tm-il-dropdown.tm-hata + .select2-container .select2-selection,
.tm-ilce-dropdown.tm-hata + .select2-container .select2-selection,
.tm-mahalle-dropdown.tm-hata + .select2-container .select2-selection {
  border-color: #e74c3c !important;
}


.tm-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  border-radius: 4px;
  min-height: 40px;
}

.tm-loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #e0e0e0;
  border-top-color: #96588a;
  border-radius: 50%;
  animation: tm-loading-spin 0.8s linear infinite;
}

.tm-loading-text {
  margin-left: 10px;
  font-size: 13px;
  color: #555;
  font-weight: 500;
}

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


.woocommerce-checkout .form-row {
  position: relative;
}


.form-row:has(.tm-loading-overlay) .select2-container {
  pointer-events: none;
  opacity: 0.6;
}


@media (max-width: 768px) {
  .tm-loading-overlay {
    min-height: 45px;
  }

  .tm-loading-spinner {
    width: 18px;
    height: 18px;
    border-width: 2px;
  }

  .tm-loading-text {
    font-size: 12px;
  }
}
