.emaura-ab-overview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.emaura-ab-overview-section {
  width: 100%;
}

.emaura-ab-manager {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
}

.emaura-ab-header {
  margin: 0 0 6px;
}

.emaura-ab-header h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
}

.emaura-ab-scroll {
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
  margin-bottom: 8px;
}

.emaura-ab-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.emaura-ab-item {
  margin: 0 0 8px;
  padding: 10px;
  border: 1px solid #d8d8d8;
  border-radius: 5px;
  background: #f5f5f5;
}

.emaura-ab-item:has(input[type="radio"]:checked) {
  border-color: #182a94;
  background: #E1EDEB;
}

.emaura-ab-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  cursor: pointer;
}

.emaura-ab-radio {
  padding-top: 13px;
}

.emaura-ab-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #182a94;
}

.emaura-ab-content {
  flex: 1;
  min-width: 0;
}

/* My Account address cards: keep radio on top-right. */
.emaura-ab-select-form .emaura-ab-card {
  display: flex;
  align-items: flex-start;
}

.emaura-ab-select-form .emaura-ab-content {
  order: 1;
  flex: 1;
  min-width: 0;
}

.emaura-ab-select-form .emaura-ab-radio {
  order: 2;
  margin-left: auto;
  padding-top: 0;
  align-self: flex-start;
  margin-top: 2px;
}

.emaura-ab-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
  color: #172033;
}

.emaura-ab-tag {
  font-size: 13px;
  font-weight: 700;
}

.emaura-ab-sep {
  opacity: 0.45;
}

.emaura-ab-name {
  font-size: 13px;
  font-weight: 700;
}

.emaura-ab-phone {
  font-size: 13px;
  font-weight: 700;
}

.emaura-ab-address,
.emaura-ab-city {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  color: #1f2937;
}

.emaura-ab-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.emaura-ab-actions .button.emaura-ab-edit,
.emaura-ab-actions .button.emaura-ab-delete {
  border: 1px solid #e6e7ea !important;
  padding: 4px 10px !important;
  min-height: 28px !important;
  height: auto !important;
  line-height: 1.15 !important;
  background: #fff !important;
  color: #182a94 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  border-radius: 6px !important;
}

.emaura-ab-actions .button.emaura-ab-delete {
  color: #182a94 !important;
}

.emaura-ab-actions .button.emaura-ab-edit:hover,
.emaura-ab-actions .button.emaura-ab-delete:hover,
.emaura-ab-actions .button.emaura-ab-edit:focus,
.emaura-ab-actions .button.emaura-ab-delete:focus {
  border-color: #d8dbe1 !important;
  background: #fff !important;
  box-shadow: none !important;
  opacity: 1;
}

.emaura-ab-empty {
  margin: 6px 0 10px;
  font-size: 13px;
}

.emaura-ab-new-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  margin-bottom: 8px;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  background: #f3f4f6;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
}

.emaura-ab-select-form .button.emaura-ab-new-block {
  border: 1px solid #d8d8d8 !important;
  background: #f3f4f6 !important;
  color: #1f2937 !important;
  box-shadow: none !important;
  text-transform: none !important;
}

.emaura-ab-plus {
  color: #182a94;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
}

.emaura-ab-submit {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  background: #182a94;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.emaura-ab-select-form .button.emaura-ab-submit,
.emaura-ab-select-form button.emaura-ab-submit {
  background: #182a94 !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: none !important;
  text-transform: none !important;
}

.emaura-ab-checkout-select {
  margin: 0 0 14px;
}

.emaura-ab-checkout-select label {
  display: block;
  margin: 0 0 6px;
  font-weight: 600;
}

.emaura-ab-checkout-select .emaura-ab-select {
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid #dedede;
  padding: 0 12px;
}

/* Checkout cards selector (instead of dropdown) */
.emaura-ab-checkout-cards {
  margin: 0 0 10px;
}

.emaura-ab-checkout-cards > .wd-ms-delivery-heading {
  margin: 0 0 10px;
}

.emaura-ab-checkout-item > .wd-ms-delivery-heading {
  margin: 0 0 10px;
}

.emaura-ab-checkout-cards > .wd-ms-invoice-fields-title {
  margin: 0 0 10px;
}

.emaura-ab-checkout-item > .wd-ms-invoice-fields-title {
  margin: 0 0 10px;
}

.emaura-ab-checkout-head {
  display: flex;
  justify-content: flex-start;
  margin: 0 0 6px;
}

.emaura-ab-checkout-toggle {
  text-decoration: none !important;
}

.emaura-ab-checkout-head-actions {
  justify-content: flex-start;
  margin: 0 0 6px;
}

.emaura-ab-checkout-head-actions .button.emaura-ab-checkout-toggle {
  margin-right: auto;
}

.emaura-ab-checkout-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.emaura-ab-checkout-item {
  margin: 0 0 8px;
  padding: 10px;
  border: 1px solid #d8d8d8;
  border-radius: 5px;
  background: #f5f5f5;
}

.emaura-ab-checkout-item .emaura-ab-card {
  align-items: center;
  gap: 8px;
}

.emaura-ab-checkout-item .emaura-ab-radio {
  order: 2;
  margin-left: auto;
  padding-top: 0;
  align-self: center;
}

.emaura-ab-checkout-item .emaura-ab-content {
  order: 1;
}

/* Checkout form card: force horizontal layout so radio can stay on the right side. */
form.checkout .emaura-ab-checkout-cards .emaura-ab-checkout-item .emaura-ab-card {
  display: flex !important;
  align-items: flex-start !important;
}

body.woocommerce-account .emaura-ab-checkout-cards .emaura-ab-checkout-item .emaura-ab-card,
body.emaura-ab-focus-edit .emaura-ab-checkout-cards .emaura-ab-checkout-item .emaura-ab-card {
  display: flex !important;
  align-items: flex-start !important;
}

form.checkout .emaura-ab-checkout-cards .emaura-ab-checkout-item .emaura-ab-content {
  order: 1;
  flex: 1;
  min-width: 0;
}

body.woocommerce-account .emaura-ab-checkout-cards .emaura-ab-checkout-item .emaura-ab-content,
body.emaura-ab-focus-edit .emaura-ab-checkout-cards .emaura-ab-checkout-item .emaura-ab-content {
  order: 1;
  flex: 1;
  min-width: 0;
}

form.checkout .emaura-ab-checkout-cards .emaura-ab-checkout-item .emaura-ab-radio {
  order: 2;
  margin-left: auto;
  padding-top: 0 !important;
  align-self: flex-start;
  margin-top: 2px;
}

body.woocommerce-account .emaura-ab-checkout-cards .emaura-ab-checkout-item .emaura-ab-radio,
body.emaura-ab-focus-edit .emaura-ab-checkout-cards .emaura-ab-checkout-item .emaura-ab-radio {
  order: 2;
  margin-left: auto;
  padding-top: 0 !important;
  align-self: flex-start;
  margin-top: 2px;
}

.emaura-ab-checkout-item .emaura-ab-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #182a94;
}

.emaura-ab-checkout-item .emaura-ab-name {
  font-size: 13px;
}

.emaura-ab-checkout-item .emaura-ab-address,
.emaura-ab-checkout-item .emaura-ab-city {
  font-size: 14px;
}

.emaura-ab-checkout-item.is-new-option {
  border-style: dashed;
  background: #fff;
}

.emaura-ab-checkout-item.is-selected,
.emaura-ab-checkout-item:has(input[type="radio"]:checked) {
  border-color: #182a94;
  background: #E1EDEB;
}

.emaura-ab-checkout-item.is-new-summary {
  border-style: dashed;
  background: #fff;
}

.emaura-ab-checkout-item.is-new-summary .emaura-ab-checkout-edit {
  display: none !important;
}

.emaura-ab-checkout-item.is-new-summary .emaura-ab-checkout-delete {
  display: none !important;
}

.emaura-ab-checkout-item .emaura-ab-actions {
  margin-top: 6px;
}

.emaura-ab-checkout-item .wd-ms-inline-invoice-toggle-host {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e6d6df;
}

.emaura-ab-checkout-item .wd-ms-inline-invoice-toggle-host .wd-ms-invoice-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.emaura-ab-checkout-item .emaura-ab-checkout-toggle {
  display: none;
}

.emaura-ab-checkout-item.is-selected .emaura-ab-checkout-toggle,
.emaura-ab-checkout-item:has(input[type="radio"]:checked) .emaura-ab-checkout-toggle {
  display: inline-flex;
}

.emaura-ab-checkout-item.is-selected .emaura-ab-checkout-delete,
.emaura-ab-checkout-item:has(input[type="radio"]:checked) .emaura-ab-checkout-delete {
  display: none !important;
}

/* Main checkout card should only keep "Adresi Değiştir"; edit/delete live in picker modal. */
.emaura-ab-checkout-cards > .emaura-ab-checkout-list .emaura-ab-checkout-edit,
.emaura-ab-checkout-cards > .emaura-ab-checkout-list .emaura-ab-checkout-delete {
  display: none !important;
}

.emaura-ab-checkout-cards:not(.is-expanded) .emaura-ab-checkout-item {
  display: none;
}

.emaura-ab-checkout-cards:not(.is-expanded) .emaura-ab-checkout-item.is-selected,
.emaura-ab-checkout-cards:not(.is-expanded) .emaura-ab-checkout-item:has(input[type="radio"]:checked) {
  display: block;
}

/* Checkout address picker modal (triggered by "Adresi Değiştir"). */
.emaura-ab-checkout-picker {
  position: fixed;
  inset: 0;
  z-index: 100210;
  display: none;
}

.emaura-ab-checkout-picker.is-open {
  display: block;
}

.emaura-ab-checkout-picker__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
}

.emaura-ab-checkout-picker__dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 720px);
  max-height: 90vh;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.emaura-ab-checkout-picker__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #ececf2;
}

.emaura-ab-checkout-picker__head h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.emaura-ab-checkout-picker__close {
  border: 0 !important;
  background: transparent !important;
  color: #6b7280 !important;
  font-size: 24px !important;
  line-height: 1 !important;
  padding: 0 !important;
  min-height: 0 !important;
  box-shadow: none !important;
}

.emaura-ab-checkout-picker__body {
  padding: 12px 14px 14px;
  max-height: calc(90vh - 58px);
  overflow: auto;
}

.emaura-ab-checkout-picker__new {
  margin: 0 0 10px !important;
}

.emaura-ab-checkout-picker .button.emaura-ab-new-block {
  border: 1px solid #d8d8d8 !important;
  background: #f3f4f6 !important;
  color: #1f2937 !important;
  box-shadow: none !important;
  text-transform: none !important;
}

.emaura-ab-checkout-picker__list .emaura-ab-checkout-toggle {
  display: none !important;
}

.emaura-ab-checkout-picker__list .emaura-ab-checkout-pick {
  display: inline-flex;
}

.emaura-ab-checkout-picker__list .emaura-ab-checkout-edit,
.emaura-ab-checkout-picker__list .emaura-ab-checkout-delete {
  display: inline-flex !important;
}

.emaura-ab-new-save {
  display: none !important;
  width: 100%;
  margin-top: 8px;
  min-height: 42px;
}

.emaura-ab-new-save.is-visible {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

body.woocommerce-checkout .button.emaura-ab-new-save {
  border: 0 !important;
  border-radius: 8px !important;
  background: #182a94 !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  min-height: 44px !important;
  padding: 0 16px !important;
  text-transform: none !important;
  box-shadow: none !important;
}

body.woocommerce-checkout .button.emaura-ab-new-save:hover,
body.woocommerce-checkout .button.emaura-ab-new-save:focus {
  background: #182a94 !important;
  color: #fff !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

.emaura-ab-new-save-notice {
  display: none;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.35;
}

.emaura-ab-new-save-notice.is-visible {
  display: block;
}

.emaura-ab-new-save-notice.is-success {
  color: #0f766e;
}

.emaura-ab-new-save-notice.is-info {
  color: #1d4ed8;
}

.emaura-ab-new-save-notice.is-error {
  color: #b91c1c;
}

/* Animated show/hide for checkout address inputs when switching to "Yeni Adres". */
.emaura-ab-checkout-fields {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: none;
  transition: none;
  pointer-events: none;
}

.emaura-ab-checkout-fields.is-open {
  max-height: 1400px;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@media (max-width: 767px) {
  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper.emaura-ab-checkout-fields.is-open,
  body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper.emaura-ab-checkout-fields.is-open {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
  }

  body.woocommerce-checkout .emaura-ab-checkout-fields.is-open .form-row {
    width: 100% !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
  }

  body.woocommerce-checkout .emaura-ab-checkout-fields.is-open #billing_first_name_field,
  body.woocommerce-checkout .emaura-ab-checkout-fields.is-open #billing_last_name_field,
  body.woocommerce-checkout .emaura-ab-checkout-fields.is-open #shipping_first_name_field,
  body.woocommerce-checkout .emaura-ab-checkout-fields.is-open #shipping_last_name_field {
    width: calc(50% - 6px) !important;
    min-width: 0 !important;
  }

  body.woocommerce-checkout .emaura-ab-checkout-fields.is-open #shipping_phone_field,
  body.woocommerce-checkout .emaura-ab-checkout-fields.is-open #wd_ms_invoice_email_ui_field {
    width: 100% !important;
  }
}

/* Checkout popup modal for edit-address */
.emaura-ab-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.emaura-ab-modal.is-open {
  display: block;
}

.emaura-ab-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
}

.emaura-ab-modal-dialog {
  position: absolute;
  inset: 2.5vh 3vw;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
  display: grid;
  grid-template-rows: 46px 1fr;
}

.emaura-ab-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 14px;
  border-bottom: 1px solid #ececf1;
  background: #fbfbfc;
}

.emaura-ab-modal-title {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
}

.emaura-ab-modal-close {
  width: 28px;
  height: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #6b7280;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.emaura-ab-modal-close:hover {
  color: #111827;
  border-color: #d1d5db;
  background: #fff;
}

.emaura-ab-modal-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

@media (max-width: 767px) {
  .emaura-ab-header h3 {
    font-size: 19px;
  }

  .emaura-ab-tag,
  .emaura-ab-name,
  .emaura-ab-phone {
    font-size: 13px;
  }

  .emaura-ab-address,
  .emaura-ab-city {
    font-size: 14px;
  }

  .emaura-ab-new-block {
    font-size: 13px;
  }

  .emaura-ab-submit {
    font-size: 15px;
  }
}

/* Focus mode: /hesabim/edit-address/{fatura|gonderim} only form */
body.emaura-ab-focus-edit .woocommerce-MyAccount-navigation,
body.emaura-ab-focus-edit .wd-my-account-navigation,
body.emaura-ab-focus-edit .account-navigation,
body.emaura-ab-focus-edit .woocommerce-MyAccount-sidebar,
body.emaura-ab-focus-edit .wd-el-my-acc-nav,
body.emaura-ab-focus-edit .elementor-element-7b0353f,
body.emaura-ab-focus-edit .elementor-element-79ce78f,
body.emaura-ab-focus-edit .elementor-element-f909ec4 {
  display: none !important;
}

body.emaura-ab-focus-edit .woocommerce-MyAccount-content,
body.emaura-ab-focus-edit .wd-my-account-content,
body.emaura-ab-focus-edit .woocommerce-MyAccount-content-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  flex: 1 1 100% !important;
}

/* Hide address-book cards above form on direct edit links */
body.emaura-ab-focus-edit .emaura-ab-manager {
  display: none !important;
}

body.emaura-ab-focus-edit .emaura-ab-back-wrap {
  margin: 0 0 10px;
}

body.emaura-ab-focus-edit .emaura-ab-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 5px;
  border: 1px solid #e4e4e4;
  background: #fff;
  color: #1f2937;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

body.emaura-ab-focus-edit a.button.emaura-ab-back-btn {
  border: 1px solid #e4e4e4 !important;
  background: #fff !important;
  color: #1f2937 !important;
  box-shadow: none !important;
  text-transform: none !important;
}

/* Country is fixed to TR, keep hidden inputs but hide the visible row. */
body.emaura-ab-focus-edit #billing_country_field,
body.emaura-ab-focus-edit #shipping_country_field {
  display: none !important;
}

/* Overview page: keep custom address blocks at top, move account nav/hero below. */
body.emaura-ab-overview-page .woocommerce-MyAccount {
  display: flex !important;
  flex-direction: column !important;
}

body.emaura-ab-overview-page .woocommerce-MyAccount-content,
body.emaura-ab-overview-page .woocommerce-MyAccount-content-wrapper {
  order: 1 !important;
}

body.emaura-ab-overview-page .woocommerce-MyAccount-navigation,
body.emaura-ab-overview-page .wd-el-my-acc-nav,
body.emaura-ab-overview-page .elementor-element-f909ec4 {
  order: 2 !important;
}

/* On /hesabim/edit-address/ overview, hide the hero+account-nav block completely. */
body.emaura-ab-overview-page .elementor-element-f909ec4,
body.emaura-ab-overview-page .elementor-element-79ce78f,
body.emaura-ab-overview-page .elementor-element-7b0353f,
body.emaura-ab-overview-page .wd-el-my-acc-nav,
body.emaura-ab-overview-page .woocommerce-MyAccount-navigation {
  display: none !important;
}

/* Inline editor modal for checkout address cards */
.emaura-ab-inline-editor {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
}

.emaura-ab-inline-editor.is-open {
  display: block;
}

.emaura-ab-inline-editor__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
}

.emaura-ab-inline-editor__dialog {
  --emaura-popup-height-vh: 84;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 760px);
  height: auto;
  max-height: calc(var(--emaura-popup-height-vh) * 1vh);
  overflow: visible;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.28);
  transition: max-height 0.18s ease;
}

.emaura-ab-inline-editor__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #ececf2;
}

.emaura-ab-inline-editor__head h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.emaura-ab-inline-editor__close {
  width: auto;
  height: auto;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: #6b7280 !important;
  font-size: 26px !important;
  line-height: 1 !important;
  padding: 0 !important;
  min-height: 0 !important;
  box-shadow: none !important;
}

.emaura-ab-inline-editor__form {
  padding: 14px;
  max-height: calc((var(--emaura-popup-height-vh) * 1vh) - 64px);
  overflow: auto;
  overscroll-behavior: contain;
}

.emaura-ab-inline-editor__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.emaura-ab-inline-editor__row > .emaura-ab-inline-editor__field {
  min-width: 0 !important;
  max-width: 100% !important;
}

.emaura-ab-inline-editor__row label {
  position: relative;
  display: block;
  margin: 0;
  color: #244878;
}

.emaura-ab-inline-editor__row :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  width: 100%;
  min-height: 52px;
  margin-top: 0;
  padding: 12px 12px 12px 38px;
  border: 1px solid #e2e6ec;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(36, 72, 120, .86);
  background: #fff;
}

.emaura-ab-inline-editor__field-title {
  position: absolute;
  left: 38px;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  max-width: calc(100% - 52px);
  z-index: 3;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(36, 72, 120, .74);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  transition: top .2s ease, transform .2s ease, font-size .2s ease, font-weight .2s ease, padding .2s ease, background-color .2s ease;
}

.emaura-ab-inline-editor__field::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  z-index: 2;
  pointer-events: none;
  background: var(--emaura-ab-field-icon) center / contain no-repeat;
  opacity: .74;
}

.emaura-ab-inline-editor__field :is(input, textarea)::placeholder {
  color: transparent !important;
}

.emaura-ab-inline-editor__field.is-active .emaura-ab-inline-editor__field-title,
.emaura-ab-inline-editor__field:focus-within .emaura-ab-inline-editor__field-title {
  top: -6px;
  transform: none;
  font-size: 12px;
  font-weight: 600;
  color: rgba(36, 72, 120, .86);
  background: var(--emaura-ab-label-bg, #fff);
  padding: 0 4px;
}

.emaura-ab-inline-editor__field.is-active::before,
.emaura-ab-inline-editor__field:focus-within::before {
  opacity: 1;
}

.emaura-ab-inline-editor__field--first-name,
.emaura-ab-inline-editor__field--last-name {
  --emaura-ab-field-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5db8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20c1.5-3.7 4.3-5.5 8-5.5s6.5 1.8 8 5.5'/%3E%3C/svg%3E");
}

.emaura-ab-inline-editor__field--phone {
  --emaura-ab-field-icon: none;
}

.emaura-ab-inline-editor__field--email {
  --emaura-ab-field-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5db8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}

.emaura-ab-inline-editor__field--state {
  --emaura-ab-field-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5db8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11a7 7 0 1 0-14 0c0 4.8 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}

.emaura-ab-inline-editor__field--city {
  --emaura-ab-field-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5db8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6.5 9 3l6 3.5 6-3.5v14L15 20l-6-3.5L3 20z'/%3E%3Cpath d='M9 3v13.5M15 6.5V20'/%3E%3C/svg%3E");
}

.emaura-ab-inline-editor__field--district {
  --emaura-ab-field-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5db8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-5h4v5'/%3E%3C/svg%3E");
}

.emaura-ab-inline-editor__field--address {
  --emaura-ab-field-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5db8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11a7 7 0 1 0-14 0c0 4.8 7 11 7 11z'/%3E%3Cpath d='M9 10.2h6'/%3E%3Cpath d='M9 13.2h4'/%3E%3C/svg%3E");
}

.emaura-ab-inline-editor__field--company {
  --emaura-ab-field-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5db8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21V7l7-4 7 4v14'/%3E%3Cpath d='M9 10h.01M15 10h.01M9 14h.01M15 14h.01'/%3E%3C/svg%3E");
}

.emaura-ab-inline-editor__field--tax-number,
.emaura-ab-inline-editor__field--tax-office,
.emaura-ab-inline-editor__field--invoice-type {
  --emaura-ab-field-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5db8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M8 7h8M8 11h8M8 15h5'/%3E%3C/svg%3E");
}

.emaura-ab-inline-editor__row.emaura-ab-inline-editor__row--single {
  grid-template-columns: 1fr;
}

.emaura-ab-inline-editor__row.emaura-ab-inline-editor__row--invoice-checkbox {
  grid-template-columns: 1fr;
  margin-top: -2px;
}

.emaura-ab-inline-editor__invoice-efatura {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  width: auto;
  font-size: 13px;
  color: #374151;
  line-height: 1.2;
}

.emaura-ab-inline-editor__invoice-efatura input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  flex: 0 0 16px;
}

.emaura-ab-inline-editor__invoice-efatura span {
  display: inline-block;
}

.emaura-ab-inline-editor__phone-label {
  position: relative;
  --emaura-ab-phone-prefix-w: 88px;
}

.emaura-ab-inline-editor__phone-label::before {
  content: "+90";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: var(--emaura-ab-phone-prefix-w);
  height: calc(100% - 2px);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 36px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='600' viewBox='0 0 900 600'%3E%3Cpath d='M0 0h900v600H0z' fill='%23e30a17'/%3E%3Cpath d='m417.504 300 135.68-44.078-83.86 115.41V228.668l83.86 115.41Zm9.25 80.21c-35.7 56.415-104.387 82.446-168.508 63.86C194.125 425.488 150 366.762 150 300s44.125-125.488 108.246-144.07c64.121-18.586 132.809 7.445 168.508 63.86-33.223-36.97-85.797-49.63-132.203-31.84C248.14 205.737 217.5 250.296 217.5 300s30.64 94.262 77.05 112.05c46.407 17.79 98.981 5.13 132.204-31.84' fill='%23fff'/%3E%3C/svg%3E") no-repeat 10px center / 18px 12px,
    #f7f9fc;
  border: 1px solid #d9dde5;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  color: #182a94;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
  box-sizing: border-box;
}

.emaura-ab-inline-editor__phone-label .emaura-ab-inline-editor__field-title {
  left: 102px;
  max-width: calc(100% - 114px);
}

.emaura-ab-inline-editor__phone-input {
  padding-left: 102px !important;
  color: rgba(36, 72, 120, .86) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  border-left: 0 !important;
  border-radius: 8px !important;
  background-image: none !important;
  box-shadow: none !important;
  appearance: none;
  background-color: #fff !important;
}

.emaura-ab-inline-editor__form .select2-container {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-top: 0;
  box-sizing: border-box;
}

.emaura-ab-inline-editor__form .select2-container .select2-selection--single {
  min-height: 52px;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  padding-left: 38px;
  overflow: hidden;
  box-sizing: border-box;
}

.emaura-ab-inline-editor__form .select2-container .select2-selection__rendered {
  min-width: 0 !important;
  max-width: 100% !important;
}

.emaura-ab-inline-editor__form .select2-container .select2-selection__rendered {
  line-height: 52px;
  padding-top: 5px;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 26px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(36, 72, 120, .74);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.emaura-ab-inline-editor__form .select2-container .select2-selection__arrow {
  height: 50px;
  right: 6px;
}

/* For location selects, keep placeholder text hidden while field is empty. */
.emaura-ab-inline-editor__field--state:not(.is-active):not(:focus-within) .select2-selection__rendered,
.emaura-ab-inline-editor__field--city:not(.is-active):not(:focus-within) .select2-selection__rendered,
.emaura-ab-inline-editor__field--district:not(.is-active):not(:focus-within) .select2-selection__rendered {
  color: transparent !important;
}

.emaura-ab-inline-editor .select2-container--open {
  z-index: 100200 !important;
}

body>.select2-container--open {
  z-index: 100200 !important;
}

/* Popup select dropdown: keep compact inside modal */
.emaura-ab-inline-editor__dialog .emaura-ab-select2-dropdown {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
  overflow: hidden;
}

body>.select2-container--open .emaura-ab-select2-dropdown {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
  overflow: hidden;
}

.emaura-ab-inline-editor__dialog .emaura-ab-select2-dropdown .select2-results__option {
  font-size: 13px;
  line-height: 1.25;
  padding: 7px 9px;
}

body>.select2-container--open .emaura-ab-select2-dropdown .select2-results__option {
  font-size: 13px;
  line-height: 1.25;
  padding: 7px 9px;
}

.emaura-ab-inline-editor__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.emaura-ab-inline-editor__actions .button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  text-transform: none !important;
}

.emaura-ab-inline-editor__save {
  background: #182a94 !important;
  border: 0 !important;
  color: #fff !important;
}

@media (max-width: 767px) {
  .emaura-ab-inline-editor__dialog {
    --emaura-popup-height-vh: 92;
    width: 96vw;
    border-radius: 8px;
  }

  .emaura-ab-inline-editor__form {
    max-height: calc((var(--emaura-popup-height-vh) * 1vh) - 56px);
  }

  .emaura-ab-inline-editor__row {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }

  .emaura-ab-inline-editor__row.emaura-ab-inline-editor__row--name {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  /* Mobile: force Sehir/Ilce/Mahalle/Adres to stack with wider vertical spacing. */
  .emaura-ab-inline-editor__field--state,
  .emaura-ab-inline-editor__field--city,
  .emaura-ab-inline-editor__field--district,
  .emaura-ab-inline-editor__field--address {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 0;
  }

  .emaura-ab-inline-editor__field--state .select2-container,
  .emaura-ab-inline-editor__field--city .select2-container,
  .emaura-ab-inline-editor__field--district .select2-container {
    width: 100% !important;
  }

}

/* Popup mode inside checkout iframe: show only address form area. */
body.emaura-ab-popup-view #wpadminbar,
body.emaura-ab-popup-view header,
body.emaura-ab-popup-view footer,
body.emaura-ab-popup-view .main-header,
body.emaura-ab-popup-view .whb-header,
body.emaura-ab-popup-view .wd-header-wrapper,
body.emaura-ab-popup-view .site-header,
body.emaura-ab-popup-view .site-footer,
body.emaura-ab-popup-view .wd-footer-container,
body.emaura-ab-popup-view .woocommerce-breadcrumb,
body.emaura-ab-popup-view .page-title,
body.emaura-ab-popup-view .wd-page-title,
body.emaura-ab-popup-view .woocommerce-MyAccount-navigation,
body.emaura-ab-popup-view .wd-el-my-acc-nav,
body.emaura-ab-popup-view .elementor-element-f909ec4,
body.emaura-ab-popup-view .elementor-element-79ce78f,
body.emaura-ab-popup-view .elementor-element-7b0353f,
body.emaura-ab-popup-view .emaura-ab-manager,
body.emaura-ab-popup-view .emaura-ab-back-wrap {
  display: none !important;
}

body.emaura-ab-popup-view .site-content,
body.emaura-ab-popup-view .main-page-wrapper,
body.emaura-ab-popup-view .woocommerce-MyAccount,
body.emaura-ab-popup-view .woocommerce-MyAccount-content,
body.emaura-ab-popup-view .wd-my-account-content,
body.emaura-ab-popup-view .woocommerce-address-fields {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.emaura-ab-popup-view {
  background: #fff !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.emaura-ab-popup-view html,
html body.emaura-ab-popup-view {
  margin: 0 !important;
  padding: 0 !important;
}

body.emaura-ab-popup-view .website-wrapper,
body.emaura-ab-popup-view .main-page-wrapper,
body.emaura-ab-popup-view .content-layout-wrapper,
body.emaura-ab-popup-view .wd-content-layout,
body.emaura-ab-popup-view .site-content,
body.emaura-ab-popup-view .container,
body.emaura-ab-popup-view .wd-container,
body.emaura-ab-popup-view .row,
body.emaura-ab-popup-view .vc_row,
body.emaura-ab-popup-view .elementor-section,
body.emaura-ab-popup-view .elementor-container,
body.emaura-ab-popup-view .elementor-column,
body.emaura-ab-popup-view .elementor-widget-wrap {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

body.emaura-ab-popup-view .woocommerce {
  margin: 0 !important;
}

body.emaura-ab-popup-view .woocommerce-address-fields {
  padding: 10px 14px 12px !important;
}

body.emaura-ab-popup-view .woocommerce-address-fields h2 {
  margin: 0 0 8px !important;
  font-size: 16px !important;
}

body.emaura-ab-popup-view .woocommerce-address-fields p:last-child {
  margin-bottom: 0 !important;
}

@media (max-width: 767px) {
  .emaura-ab-modal-dialog {
    inset: 1.5vh 2vw;
    border-radius: 10px;
    grid-template-rows: 42px 1fr;
  }
}

/* Minimal edit form: tighter spacing and smaller controls */
body.emaura-ab-focus-edit .woocommerce-address-fields {
  max-width: 780px;
}

body.emaura-ab-focus-edit .woocommerce-address-fields h2 {
  font-size: 18px;
  line-height: 1.2;
  margin: 0 0 8px;
}

body.emaura-ab-focus-edit .woocommerce-address-fields .form-row {
  margin-bottom: 14px !important;
}

body.emaura-ab-focus-edit .woocommerce-address-fields label {
  font-size: 12px;
  margin-bottom: 3px;
}

body.emaura-ab-focus-edit .woocommerce-address-fields :is(input.input-text, select, textarea) {
  min-height: 38px;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 6px;
}

body.emaura-ab-focus-edit .woocommerce-address-fields textarea {
  min-height: 70px;
}

body.emaura-ab-focus-edit .woocommerce-address-fields #billing_first_name_field,
body.emaura-ab-focus-edit .woocommerce-address-fields #billing_last_name_field,
body.emaura-ab-focus-edit .woocommerce-address-fields #shipping_first_name_field,
body.emaura-ab-focus-edit .woocommerce-address-fields #shipping_last_name_field {
  width: calc(50% - 6px);
  float: left;
  clear: none;
}

body.emaura-ab-focus-edit .woocommerce-address-fields #billing_last_name_field,
body.emaura-ab-focus-edit .woocommerce-address-fields #shipping_last_name_field {
  margin-left: 12px;
}

body.emaura-ab-focus-edit .woocommerce-address-fields .button,
body.emaura-ab-focus-edit .woocommerce-address-fields button[type="submit"] {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: 6px;
}

/* Compact select2 controls used by city/district/neighborhood providers */
body.emaura-ab-focus-edit .woocommerce-address-fields .select2-container .select2-selection--single {
  min-height: 38px;
  height: 38px;
  border-radius: 6px;
}

body.emaura-ab-focus-edit .woocommerce-address-fields .select2-container .select2-selection__rendered {
  line-height: 36px;
  font-size: 13px;
  padding-left: 10px;
}

body.emaura-ab-focus-edit .woocommerce-address-fields .select2-container .select2-selection__arrow {
  height: 36px;
}

@media (max-width: 767px) {

  body.emaura-ab-focus-edit .woocommerce-address-fields #billing_first_name_field,
  body.emaura-ab-focus-edit .woocommerce-address-fields #billing_last_name_field,
  body.emaura-ab-focus-edit .woocommerce-address-fields #shipping_first_name_field,
  body.emaura-ab-focus-edit .woocommerce-address-fields #shipping_last_name_field {
    width: calc(50% - 5px);
    float: left;
    clear: none;
  }

  body.emaura-ab-focus-edit .woocommerce-address-fields #billing_last_name_field,
  body.emaura-ab-focus-edit .woocommerce-address-fields #shipping_last_name_field {
    margin-left: 10px;
  }
}

body .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Focus edit page: keep new floating-label + icon input UI active. */
body.emaura-ab-focus-edit .woocommerce-address-fields .emaura-ma-auth-field {
  position: relative;
  overflow: visible;
  margin-bottom: 10px !important;
}

body.emaura-ab-focus-edit .woocommerce-address-fields .emaura-ma-auth-field > label {
  position: absolute !important;
  left: 42px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  z-index: 4;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;
  color: rgba(36, 72, 120, .74) !important;
  background: transparent !important;
  padding: 0 !important;
  pointer-events: none;
}

body.emaura-ab-focus-edit .woocommerce-address-fields .emaura-ma-auth-field.emaura-ma-float-active > label,
body.emaura-ab-focus-edit .woocommerce-address-fields .emaura-ma-auth-field.emaura-ma-float-focus > label {
  top: -9px !important;
  transform: none !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 600 !important;
  color: rgba(36, 72, 120, .86) !important;
  background: var(--emaura-ma-label-bg, #fff) !important;
  padding: 0 4px !important;
}

body.emaura-ab-focus-edit .woocommerce-address-fields .emaura-ma-auth-field .woocommerce-input-wrapper::before {
  opacity: .74;
}

body.emaura-ab-focus-edit .woocommerce-address-fields .emaura-ma-auth-field.emaura-ma-float-active .woocommerce-input-wrapper::before,
body.emaura-ab-focus-edit .woocommerce-address-fields .emaura-ma-auth-field.emaura-ma-float-focus .woocommerce-input-wrapper::before {
  opacity: 1;
}

body.emaura-ab-focus-edit .woocommerce-address-fields .emaura-ma-auth-field :is(input.input-text, select, textarea) {
  min-height: 52px !important;
  line-height: 24px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: rgba(36, 72, 120, .86) !important;
  padding: 14px 12px 14px 42px !important;
  border-radius: 8px !important;
}

body.emaura-ab-focus-edit .woocommerce-address-fields .emaura-ma-auth-field .select2-container .select2-selection--single {
  min-height: 52px !important;
  height: auto !important;
  border-radius: 8px !important;
  padding-left: 42px !important;
}

body.emaura-ab-focus-edit .woocommerce-address-fields .emaura-ma-auth-field .select2-container .select2-selection__rendered {
  line-height: 24px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: rgba(36, 72, 120, .86) !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  padding-left: 0 !important;
}

/* Focus-edit account address phone fields: isolated rebuild for billing/shipping phone rows. */
body.emaura-ab-focus-edit .woocommerce-address-fields :is(#billing_phone_field, #shipping_phone_field) .woocommerce-input-wrapper {
  position: relative;
  display: block;
  width: 100%;
  min-height: 52px;
}

body.emaura-ab-focus-edit .woocommerce-address-fields :is(#billing_phone_field, #shipping_phone_field) > label {
  left: 102px !important;
  max-width: calc(100% - 114px);
}

body.emaura-ab-focus-edit .woocommerce-address-fields :is(#billing_phone_field, #shipping_phone_field) .woocommerce-input-wrapper::before {
  content: "+90" !important;
  position: absolute;
  inset: 0 auto 0 0;
  width: 88px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 34px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='600' viewBox='0 0 900 600'%3E%3Cpath d='M0 0h900v600H0z' fill='%23e30a17'/%3E%3Cpath d='m417.504 300 135.68-44.078-83.86 115.41V228.668l83.86 115.41Zm9.25 80.21c-35.7 56.415-104.387 82.446-168.508 63.86C194.125 425.488 150 366.762 150 300s44.125-125.488 108.246-144.07c64.121-18.586 132.809 7.445 168.508 63.86-33.223-36.97-85.797-49.63-132.203-31.84C248.14 205.737 217.5 250.296 217.5 300s30.64 94.262 77.05 112.05c46.407 17.79 98.981 5.13 132.204-31.84' fill='%23fff'/%3E%3C/svg%3E") no-repeat 10px center / 18px 12px,
    #f7f9fc;
  border: 1px solid #d9dde5;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  color: #182a94;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 3;
  opacity: 1 !important;
}

body.emaura-ab-focus-edit .woocommerce-address-fields :is(#billing_phone_field, #shipping_phone_field) :is(input.input-text, input[type="tel"], input[type="text"]) {
  padding-left: 102px !important;
  border-left: 0 !important;
  border-radius: 0 8px 8px 0 !important;
  min-height: 52px !important;
  line-height: 24px !important;
  width: 100% !important;
  display: block !important;
  margin: 0 !important;
}

/* Account edit-address phone fallback (when emaura-ab-focus-edit body class is absent). */
body.woocommerce-account.woocommerce-edit-address .woocommerce-address-fields :is(#billing_phone_field, #shipping_phone_field) {
  position: relative;
}

body.woocommerce-account.woocommerce-edit-address .woocommerce-address-fields :is(#billing_phone_field, #shipping_phone_field) > label {
  position: absolute !important;
  top: 50% !important;
  left: 102px !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  max-width: calc(100% - 114px);
  z-index: 4;
}

body.woocommerce-account.woocommerce-edit-address .woocommerce-address-fields :is(#billing_phone_field, #shipping_phone_field).emaura-ma-float-active > label,
body.woocommerce-account.woocommerce-edit-address .woocommerce-address-fields :is(#billing_phone_field, #shipping_phone_field).emaura-ma-float-focus > label {
  top: -9px !important;
  transform: none !important;
}

body.woocommerce-account.woocommerce-edit-address .woocommerce-address-fields :is(#billing_phone_field, #shipping_phone_field) .woocommerce-input-wrapper {
  position: relative;
  display: block;
  width: 100%;
  min-height: 52px;
}

body.woocommerce-account.woocommerce-edit-address .woocommerce-address-fields :is(#billing_phone_field, #shipping_phone_field) .woocommerce-input-wrapper::before {
  content: "+90" !important;
  position: absolute;
  inset: 0 auto 0 0;
  width: 88px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 34px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='600' viewBox='0 0 900 600'%3E%3Cpath d='M0 0h900v600H0z' fill='%23e30a17'/%3E%3Cpath d='m417.504 300 135.68-44.078-83.86 115.41V228.668l83.86 115.41Zm9.25 80.21c-35.7 56.415-104.387 82.446-168.508 63.86C194.125 425.488 150 366.762 150 300s44.125-125.488 108.246-144.07c64.121-18.586 132.809 7.445 168.508 63.86-33.223-36.97-85.797-49.63-132.203-31.84C248.14 205.737 217.5 250.296 217.5 300s30.64 94.262 77.05 112.05c46.407 17.79 98.981 5.13 132.204-31.84' fill='%23fff'/%3E%3C/svg%3E") no-repeat 10px center / 18px 12px,
    #f7f9fc;
  border: 1px solid #d9dde5;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  color: #182a94;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 3;
}

body.woocommerce-account.woocommerce-edit-address .woocommerce-address-fields :is(#billing_phone_field, #shipping_phone_field) :is(input.input-text, input[type='tel'], input[type='text']) {
  padding-left: 102px !important;
  border-left: 0 !important;
  border-radius: 0 8px 8px 0 !important;
  min-height: 52px !important;
  line-height: 24px !important;
  width: 100% !important;
  display: block !important;
  margin: 0 !important;
}

/* Hard override: account edit-address phone label float state must always win. */
.woocommerce-account .woocommerce-address-fields :is(#billing_phone_field, #shipping_phone_field) > label {
  left: 102px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.woocommerce-account .woocommerce-address-fields :is(#billing_phone_field, #shipping_phone_field).emaura-ma-float-active > label,
.woocommerce-account .woocommerce-address-fields :is(#billing_phone_field, #shipping_phone_field).emaura-ma-float-focus > label {
  top: -9px !important;
  transform: none !important;
}

/* Account edit-address: increase vertical spacing for location/address stack. */
body.woocommerce-account .woocommerce-address-fields :is(
  #shipping_state_field,
  #shipping_city_field,
  #shipping_address_1_field,
  #shipping_address_2_field,
  #billing_state_field,
  #billing_city_field,
  #billing_address_1_field,
  #billing_address_2_field
) {
  width: 100% !important;
  clear: both !important;
  margin-bottom: 18px !important;
}

/* Modal select2 safety: never show known placeholder texts for state/city/district. */
.emaura-ab-inline-editor__field--state .select2-selection__rendered:is([title="Lütfen seçiniz"], [title="Bir seçenek belirleyin…"], [title="Bir seçenek belirleyin..."], [title="Bir seçenek belirleyin"]),
.emaura-ab-inline-editor__field--city .select2-selection__rendered:is([title="Lütfen seçiniz"], [title="Bir seçenek belirleyin…"], [title="Bir seçenek belirleyin..."], [title="Bir seçenek belirleyin"]),
.emaura-ab-inline-editor__field--district .select2-selection__rendered:is([title="Lütfen seçiniz"], [title="Bir seçenek belirleyin…"], [title="Bir seçenek belirleyin..."], [title="Bir seçenek belirleyin"]) {
  color: transparent !important;
}

/* Account edit-address phone: enforce full rounded outer corners like other inputs. */
body.woocommerce-account .woocommerce-address-fields :is(#billing_phone_field, #shipping_phone_field) .woocommerce-input-wrapper,
body.emaura-ab-focus-edit .woocommerce-address-fields :is(#billing_phone_field, #shipping_phone_field) .woocommerce-input-wrapper {
  border-radius: 8px !important;
  overflow: hidden;
}

body.woocommerce-account .woocommerce-address-fields :is(#billing_phone_field, #shipping_phone_field) :is(input.input-text, input[type='tel'], input[type='text']),
body.emaura-ab-focus-edit .woocommerce-address-fields :is(#billing_phone_field, #shipping_phone_field) :is(input.input-text, input[type='tel'], input[type='text']) {
  border-radius: 8px !important;
}

/* Edit-address phone label: keep centered while empty, float only when active/focus. */
body.woocommerce-account.woocommerce-edit-address .woocommerce-address-fields :is(#billing_phone_field, #shipping_phone_field) {
  position: relative !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  display: block !important;
}

body.woocommerce-account.woocommerce-edit-address .woocommerce-address-fields :is(#billing_phone_field, #shipping_phone_field):not(.emaura-ma-float-active):not(.emaura-ma-float-focus) > label {
  top: 50% !important;
  transform: translateY(-50%) !important;
}

/* Edit-address phone hard layout reset: prevent theme/plugin top offsets. */
body.woocommerce-account.woocommerce-edit-address .woocommerce-address-fields :is(#billing_phone_field, #shipping_phone_field) {
  padding-top: 0 !important;
}

body.woocommerce-account.woocommerce-edit-address .woocommerce-address-fields :is(#billing_phone_field, #shipping_phone_field) .woocommerce-input-wrapper {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.woocommerce-account.woocommerce-edit-address .woocommerce-address-fields :is(#billing_phone_field, #shipping_phone_field) :is(input.input-text, input#billing_phone, input#shipping_phone, input[type='tel'], input[type='text']) {
  margin-top: 0 !important;
  top: auto !important;
  transform: none !important;
  position: relative !important;
}
