/*
Theme Name: Sah in Scoala
Description: Child theme for Avada theme
Author: Nicu BARBU
Author URI: https://sitexdesign.ro
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/



/* Checkout Blocks - reordonare campuri facturare */
body.woocommerce-checkout .wc-block-components-address-form {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 14px;
}

/* Prenume | Nume */
body.woocommerce-checkout .wc-block-components-address-form__first_name {
  order: 1;
}

body.woocommerce-checkout .wc-block-components-address-form__last_name {
  order: 2;
}

/* Tara pe rand intreg */
body.woocommerce-checkout .wc-block-components-address-form__country {
  order: 3;
  grid-column: 1 / -1;
}

/* Judet | Localitate */
body.woocommerce-checkout .wc-block-components-address-form__state {
  order: 4;
}

body.woocommerce-checkout .wc-block-components-address-form__city {
  order: 5;
}

/* Adresa pe rand intreg */
body.woocommerce-checkout .wc-block-components-address-form__address_1 {
  order: 6;
  grid-column: 1 / -1;
}

/* Ascunde campul optional apartament / complex */
body.woocommerce-checkout .wc-block-components-address-form__address_2,
body.woocommerce-checkout .wc-block-components-address-form__address_2-toggle {
  display: none !important;
}

/* Cod postal | Telefon */
body.woocommerce-checkout .wc-block-components-address-form__postcode {
  order: 7;
}

body.woocommerce-checkout .wc-block-components-address-form__phone {
  order: 8;
}

/* Corectie pentru labelurile din selecturi: Tara / Judet */
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control label {
  top: 7px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}

body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
  min-height: 56px !important;
  padding-top: 20px !important;
  padding-bottom: 6px !important;
}

/* Mobile */
@media (max-width: 767px) {
  body.woocommerce-checkout .wc-block-components-address-form {
    grid-template-columns: 1fr;
  }

  body.woocommerce-checkout .wc-block-components-address-form > * {
    grid-column: 1 / -1 !important;
  }
}