:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .woocommerce-billing-fields {
  text-align: start;
}

:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .woocommerce-billing-fields h3 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
}

@media (min-width: 640px) {

  :is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .woocommerce-billing-fields h3 {
    font-size: 20px;
  }
}

@media (min-width: 1400px) {

  :is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .woocommerce-billing-fields h3 {
    font-size: var(--h2-font-size);
    margin-bottom: 31px;
  }
}

:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .woocommerce-billing-fields .woocommerce-billing-fields__field-wrapper .form-row {
  display: none;
}

:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .woocommerce-billing-fields .woocommerce-billing-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  column-gap: 0;
  row-gap: 16px;
}

:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .woocommerce-billing-fields.tm-billing-grid-columns:not(.floating) .woocommerce-billing-fields__field-wrapper #billing_address_2_field {
  padding-top: 30px;
}

@media (min-width: 768px) {

  :is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .woocommerce-billing-fields .woocommerce-billing-fields__field-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 32px;
  }
}

:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .woocommerce-billing-fields .woocommerce-billing-fields__field-wrapper p {
  float: none;
  width: 100%;
  margin-bottom: 0 !important;
  padding: 0;
}

@media (min-width: 1024px) {

  :is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .woocommerce-billing-fields .woocommerce-billing-fields__field-wrapper p {
    margin-bottom: 0 !important;
  }
}

@media (min-width: 768px) {

  :is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .woocommerce-billing-fields.default-columns .woocommerce-billing-fields__field-wrapper p.form-row:not(:first-child, :nth-child(2)) {
    grid-column: 1 / -1;
  }

  :is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .woocommerce-billing-fields.one-column .woocommerce-billing-fields__field-wrapper p.form-row {
    grid-column: 1 / -1;
  }

  :is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .woocommerce-billing-fields.two-columns .woocommerce-billing-fields__field-wrapper p.form-row {
    grid-column: span 1 / span 1;
  }
}

:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .woocommerce-billing-fields .form-row label {
  display: block;
}

.woocommerce-billing-fields .form-row :is(input.input-text, textarea) {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  outline: 0;
  line-height: normal;
  border-color: transparent;
}

label {
  color: var(--dark-text-color);
  margin-bottom: 4px;
}

:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .woocommerce-billing-fields.form-row .required {
  color: red;
  font-weight: 700;
  border: 0 !important;
  text-decoration: none;
  visibility: visible;
}

:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .woocommerce-billing-fields label {
  font-size: var(--body-font-size);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-color);
}

:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .woocommerce-billing-fields :is(input, textarea, .country_select, .state_select, .select2 .select2-selection) {
  background: var(--dark-bg-color);
  border-radius: 8px;
  padding: 14px 24px;
  font-size: var(--body-font-size);
  line-height: 18px;
  letter-spacing: -0.05em;
  color: var(--light-text-color);
  border-color: var(--light-border-color);
  min-height: 48px;
}

.country_select,
.state_select {
  width: 100%;
}

:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .woocommerce-billing-fields .input-checkbox {
  min-height: auto !important;
}

/* Floating Layout */
:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .woocommerce-billing-fields.floating .form-row {
  position: relative;
}

:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .woocommerce-billing-fields.floating label:not(.woocommerce-form__label-for-checkbox) {
  position: absolute;
  margin-bottom: 0;
  top: 50%;
  inset-inline-start: 24px;
  z-index: 10;
  transform: translateY(-50%);
  transition: all .3s ease;
  text-transform: capitalize;
  cursor: pointer;
}

:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .woocommerce-billing-fields.floating :is(input:not(.input-checkbox), input, textarea, .country_select, .state_select, .select2 .select2-selection) {
  min-height: 68px;
  padding: 20px 24px 0;
  color: var(--h3-color, --brand-color);
  font-weight: 500;
  border: 1px solid var(--light-border-color);
}

:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) :is(.woocommerce-billing-fields.floating, .woocommerce-billing-fields) .select2 .select2-selection.select2-selection--single .select2-selection__rendered {
  padding-left: 0;
}

:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .woocommerce-billing-fields.floating .form-row {
  position: relative;
}

:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .woocommerce-billing-fields.floating .is-active label {
  color: var(--light-text-color);
  font-size: 14px;
  top: 8px !important;
  transform: translateY(0%) !important;
}

:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .woocommerce-billing-fields.floating .form-row:is(#billing_address_1_field, #shipping_address_1_field) input::placeholder {
  visibility: hidden;
}

:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .woocommerce-billing-fields.floating .form-row:is(#billing_address_2_field, #shipping_address_2_field) input {
  padding: 14px 24px;
}

:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .select2-container .select2-dropdown .select2-search {
  border-bottom: 1px solid var(--light-border-color);
}

:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .form-row .select2-container {
  width: 100% !important;
}

:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .select2 .select2-selection.select2-selection--single .select2-selection__arrow {
  transform: translateY(-50%);
  top: 50%;
}

:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .select2 .select2-selection.select2-selection--single .select2-selection__arrow b {
  transform: rotate(45deg) translate(-40%, -30%);
  top: 50%;
}

:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .select2.select2-container--open .select2-selection.select2-selection--single .select2-selection__arrow b {
  transform: rotate(-135deg) translate(-15%, -15%);
  top: 50%;
}

:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .form-row.create-account {
  padding-top: 20px;
}

:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .create-account .checkbox {
  cursor: pointer;
  display: flex;
  position: relative;
  align-items: flex-start;
  line-height: 1.6;
  margin-bottom: 20px;
  padding-inline-start: 30px;
}

.create-account .checkbox input[type=checkbox] {
  opacity: 0;
  position: absolute;
  visibility: hidden;
  width: 0;
  z-index: -1;
}

:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .create-account .checkbox input[type="checkbox"] {
  opacity: 0;
  width: 0;
  position: absolute;
  visibility: hidden;
  z-index: -1;
}

.create-account .checkbox::before {
  border: 1px solid var(--main-border-color);
  border-radius: 4px;
  content: "";
  position: absolute;
  display: inline-block;
  flex-shrink: 0;
  height: 20px;
  margin-right: 10px;
  margin-top: 2px;
  transition: all .2s ease;
  width: 20px;
  inset-inline-start: 0px;
}

:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page).rtl .create-account .checkbox::before {
  margin-right: 0;
  margin-left: 10px;
}

:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .create-account label.checkbox:has(input:checked)::before {
  background-color: #111827;
  border-color: #dfdfdf;
}

:is(.elementor-editor-active, .turbo_builder-template, .turbo-checkout-page) .create-account label.checkbox:has(input:checked)::after {
  content: "";
  display: block;
  width: 6px;
  height: 12px;
  border-left: 2px solid var(--main-border-color);
  border-top: 2px solid var(--main-border-color);
  transform: rotate(225deg);
  position: absolute;
  top: 2px;
  left: 7px;
}