#billing_country_field,
.checkout-inline-error-message,
.woocommerce-privacy-policy-text {
  display: none !important;
}
#billing_first_name_field {
  order: 1;
}
#billing_last_name_field {
  order: 2;
}

#billing_phone_field {
  order: 3;
}
#billing_email_field {
  order: 4;
}
#billing_state_field,
#billing_city_fake_field {
  order: 5;
  border: 1px solid #e0e0e0;
  padding: 0.125rem 0;
}
#billing_city_fake_field {
  order: 6;
}

#billing_postcode_field {
  order: 4;
}

#billing_address_1_field {
  order: 8;
  height: 8rem;
  flex: 0 0 calc((100% / 2) - 1rem);
}
#order_comments_field {
  order: 9;
  flex: 0 0 calc((100% / 2) - 1rem);
}
.woocommerce-billing-fields__field-wrapper .form-row input {
  height: 4rem;
  padding: 0.75rem 1.25rem;
  width: 100%;
  border: 1px solid #e0e0e0;
}
.woocommerce-billing-fields__field-wrapper .form-row {
  position: relative;
}
.woocommerce-billing-fields__field-wrapper .form-row label span,
#address-form-container label span,
#info-modal label span {
  color: #ff7800;
}

.woocommerce-billing-fields__field-wrapper .form-row label {
  position: absolute;
  z-index: 5;
  background: #fff;
  top: -1rem;
  right: 1rem;
  color: #666;
  text-align: right;
  font-feature-settings: "ss02" on;

  font-size: 1.25rem;
  font-style: normal;
  font-weight: 400;
  line-height: 2rem; /* 160% */
}
#billing_address_1_field input,
span.woocommerce-input-wrapper,
#billing_city_fake_field span,
#billing_state_field span {
  align-content: center;
  height: 100%;
}
#select2-billing_state-container {
  display: flex;
  align-items: center;
}
.select2-container--default .select2-selection--single {
  border: none !important;
}
.woocommerce-billing-fields__field-wrapper .form-row {
  flex: 0 0 calc((100% / 3) - 1rem);
}
#order_comments_field .woocommerce-input-wrapper textarea {
  width: 100%;
  height: 8rem;
  padding: 1rem;
  border: 0.0625rem solid #e0e0e0;
}

/* برای مرورگرهای قدیمی */
.woocommerce input:-ms-input-placeholder,
.woocommerce textarea:-ms-input-placeholder {
  color: transparent !important;
}
.woocommerce input::-ms-input-placeholder,
.woocommerce textarea::-ms-input-placeholder {
  color: transparent !important;
}
.woo-order-btn-final {
  display: flex;
  height: 3.75rem;
  padding: 0.625rem;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  text-align: center;
  color: #212121;
  font-feature-settings: "ss02" on;

  font-size: 1.25rem;
  font-style: normal;
  font-weight: 400;
  line-height: 2rem; /* 160% */
  border-radius: 0.25rem;

  background-color: #f9e3b3;
  width: 100%;
}
.woocommerce-form-login-toggle {
  display: none !important;
}
#coupon_code {
  height: 3.75rem;
  border: 1px solid #e0e0e0;
}
#coupon_code::placeholder {
  color: #666 !important;
}
.aply-cop {
  display: flex;
  width: 5rem;
  height: 3.75rem;
  padding: 0.5rem 0.75rem;
  justify-content: center;
  align-items: center;
  border-radius: 0.25rem;
  border: 1px solid var(--navy, #f9e3b3);
  color: #212121;
  text-align: center;
  font-feature-settings: "ss02" on;

  font-size: 1.25rem;
  font-style: normal;
  font-weight: 400;
  line-height: 2rem; /* 160% */
}

/* ==================================== payment styles  */
/* استایل کلی لیست روش‌های پرداخت */
.woocommerce-checkout #payment ul.payment_methods {
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 15px;
  background: #fff;
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
  cursor: pointer;
}

/* انتخاب روش فعال */
.woocommerce-checkout
  #payment
  ul.payment_methods
  li.wc_payment_method.selected {
  background: #ebce92; /* آبی ملایم */
  border-color: #90caf9;
}

/* استایل عنوان */
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method label {
  font-weight: bold;
  font-size: 15px;
  margin: 0;
  flex-grow: 1;
}

/* توضیحات زیر عنوان */
.woocommerce-checkout
  #payment
  ul.payment_methods
  li.wc_payment_method
  .payment_box {
  font-size: 13px;
  color: #555;
  margin-top: 5px;
}

/* وقتی فعال میشه */
.woocommerce-checkout
  #payment
  ul.payment_methods
  li.wc_payment_method.selected::after {
  background: #aaa; /* یا تصویر رنگی */
}

/* استایل کلی */
.woocommerce-checkout #payment ul.payment_methods {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* پنهان کردن input رادیو */
.line-checkout {
  position: relative;
  height: 0.125rem;
  background-color: #00529b;
  display: flex;
  align-items: center;
}
.line-checkout::after {
  content: "";
  display: block;
  width: 0.6875rem;
  border-radius: 624.9375rem;
  height: 0.6875rem;
  background-color: #00529b;
  position: absolute;
  left: 0;
}
/* حالت انتخاب شده – رنگ آبی */
.woocommerce-checkout
  #payment
  ul.payment_methods
  li.wc_payment_method
  input.input-radio:checked
  + label {
  background: #e3f2fd; /* پس‌زمینه آبی ملایم */
  border-radius: 6px;
  border: 1px solid #90caf9;
  padding: 10px;
  display: block;
  width: 100%;
}
.woocommerce-checkout
  #payment
  ul.payment_methods
  li.wc_payment_method:has(input.input-radio:checked) {
  background: #e3f2fd; /* پس‌زمینه آبی */
  border-color: #90caf9;
}
.woocommerce-checkout
  #payment
  ul.payment_methods
  li.wc_payment_method.selected {
  background: #e3f2fd; /* آبی ملایم */
  border: 1px solid #90caf9;
}

/* توضیحات زیر عنوان */
.woocommerce-checkout
  #payment
  ul.payment_methods
  li.wc_payment_method
  .payment_box {
  font-size: 13px;
  color: #555;
  margin-top: 5px;
}

/* ============================== end payment style  */
.shipping-selected {
  border: 3px solid #60a5fa;
}
tr.fee {
  display: none !important;
}
#billing_city_fake_field span.woocommerce-input-wrapper {
  display: block;
  width: 100%;
}
#billing_city_fake_field select {
  width: 100%;
  height: 100%;
  border: 1px solid #e0e0e0;
  padding: 0.75rem 1.25rem;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__placeholder {
  display: flex;
  align-items: center;
}
#confirm_location {
  border-radius: 0.25rem;
  padding: 1rem;
}
@media screen and (max-width: 1024px) {
  #billing_address_1_field,
  .woocommerce-billing-fields__field-wrapper .form-row,
  #order_comments_field {
    flex: 0 0 100%;
  }
  #confirm_location {
    padding: 0.75rem;
  }
  #billing_state_field,
  #billing_city_fake_field {
    height: 4rem;
  }
}

/*  if checkout have map module  */
.container_search {
  width: 31.25rem;
  display: flex;
  align-items: center;
  position: relative;
  background-color: #fff;
}

#confirm_location:hover {
  background-color: #f9e3b3 !important;
  color: #fff !important;
}
#close_search {
  color: #f40909;
  font-size: 1.25rem;
  position: absolute;
  left: 3%;
}
#search-container {
  width: 100%;
}
#addressInput {
  height: 1.875rem;
  border: 1px solid #6c6c6c;
  width: 90%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-family: Ravi;
  height: 2.8125rem;
}
#results {
  overflow-y: auto;
}
#map {
  height: 500px;
}

#search-container {
  margin: 10px;
}

#results {
  list-style: none;
  background: #fff;
  border-radius: 0.5rem;
  overflow-y: scroll;
}

#results li {
  cursor: pointer;
  background: #fff;
  padding: 5px;
  font-size: 1rem;
  border: 1px solid #f9e3b3;
  margin-bottom: 5px;
  border-radius: 4px;
}

#results li:hover {
  background-color: #f0f0f0;
}
.woocommerce-NoticeGroup-checkout .woocommerce-error {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 0;
}
.woocommerce-invalid {
  border: 1px solid rgb(189, 7, 7) !important;
}
#addressInput::placeholder {
  color: #666 !important;
}
@media screen and (max-width: 1024px) {
  .container_search {
    width: 60vw;
  }
  #search-container {
    width: 100% !important;
  }
  .aply-cop {
    font-size: 0.875rem;
    height: 2.75rem;
  }

  #coupon_code {
    height: 2.75rem;
    border: 1px solid #e0e0e0;
  }
  .woocommerce-billing-fields__field-wrapper .form-row label {
    font-size: 0.85rem;
  }
  .woocommerce-billing-fields__field-wrapper .form-row input {
    height: 3;
    padding: 0.75rem 1.25rem;
  }
}

/* #billing_city_fake_field .woocommerce-input-wrapper span {
  display: block;
  width: 100%;
  height: 100%;
} */
.select2-selection__arrow {
  position: relative;
}

.wc_payment_method img {
  width: 3.125rem;
  height: 3.125rem;
  object-fit: contain;
}

.line-checkout {
  position: relative;
  height: 0.125rem;
  background-color: #00529b;
  display: flex;
  align-items: center;
}
.line-checkout::after {
  content: "";
  display: block;
  width: 0.6875rem;
  border-radius: 624.9375rem;
  height: 0.6875rem;
  background-color: #00529b;
  position: absolute;
  left: 0;
}
.woocommerce .input_custom_address::placeholder {
  color: #666 !important;
}

.new_state .select2 .select2-selection--single,
.new_city .select2 .select2-selection--single {
  height: 2.75rem;
}

.new_state .select2 .select2-selection__rendered,
.new_city .select2 .select2-selection__rendered {
  line-height: 2.75rem;
}

.new_state .select2 .select2-selection__arrow,
.new_city .select2 .select2-selection__arrow {
  height: 2.75rem;
}
