/* ======================================================================
   KINDRED — MON COMPTE
   ADRESSES

   Page récapitulative des adresses et formulaires de modification.
   Facturation et livraison.
   Desktop, tablette et mobile.
   ====================================================================== */

	/* Phrase d’introduction — page Adresses */
	body.logged-in.woocommerce-account.woocommerce-edit-address
	.kindred-my-account
	.woocommerce-MyAccount-content
	> p:first-of-type {
	  margin: 0 0 28px !important;
	  color: #6F675E !important;
	  font-family: Arial, sans-serif !important;
	  font-size: 20px !important;
	  line-height: 1.6 !important;
	}

	 /* Cartes facturation et livraison */
	 body.logged-in.woocommerce-account.woocommerce-edit-address
	 .kindred-my-account
	 .woocommerce-Address {
	   width: 100% !important;
	   margin: 0 !important;
	   padding: 12px !important;
	   background-color: #FFFFFF !important;
	   border: 1px solid #DDD6CD !important;
	   box-sizing: border-box !important;
	  }


	/* En-tête de chaque carte */
	body.logged-in.woocommerce-account.woocommerce-edit-address
	.kindred-my-account
	.woocommerce-Address-title {
	  display: flex !important;
	  align-items: flex-start !important;
	  justify-content: space-between !important;
	  gap: 20px !important;
	  width: 100% !important;
	  margin: 0 !important;
	  padding: 0 !important;
	  box-sizing: border-box !important;
	}

	/* Retirer les éléments invisibles WooCommerce
	   qui créent des espaces dans l’en-tête flex */
	body.logged-in.woocommerce-account.woocommerce-edit-address
	.kindred-my-account
	.woocommerce-Address-title::before,

	body.logged-in.woocommerce-account.woocommerce-edit-address
	.kindred-my-account
	.woocommerce-Address-title::after {
	  display: none !important;
	  content: none !important;
	}

	/* Titre de l’adresse */
	body.logged-in.woocommerce-account.woocommerce-edit-address
	.kindred-my-account
	.woocommerce-Address-title
	h2 {
	  flex: 1 1 auto !important;
	  float: none !important;
	  width: auto !important;
	  margin: 0 0 16px !important;
	  padding: 0 !important;
	  color: #1F1F1F !important;
	  font-family: Arial, sans-serif !important;
	  font-size: 22px !important;
	  font-weight: 500 !important;
	  line-height: 1.2 !important;
	  white-space: nowrap !important;
	}

	/* Lien « Modifier » */
	body.logged-in.woocommerce-account.woocommerce-edit-address
	.kindred-my-account
	.woocommerce-Address-title
	a.edit {
	  display: block !important;
	  flex: 0 0 auto !important;
	  float: none !important;
	  width: auto !important;
	  margin: 3px 0 0 !important;
	  padding: 0 !important;
	  font-size: 0 !important;
	  line-height: 1.4 !important;
	  text-decoration: none !important;
	}

	/* Texte personnalisé du lien */
	body.logged-in.woocommerce-account.woocommerce-edit-address
	.kindred-my-account
	.woocommerce-Address-title
	a.edit::after {
	  content: "Modifier";
	  color: #6F675E !important;
	  font-family: Arial, sans-serif !important;
	  font-size: 15px !important;
	  font-weight: 400 !important;
	  line-height: 1.4 !important;
	  text-decoration: underline !important;
	  text-underline-offset: 3px !important;
	}
	
	/* Coordonnées */
	body.logged-in.woocommerce-account.woocommerce-edit-address
	.kindred-my-account
	.woocommerce-Address address {
	  margin: 0 !important;
	  color: #6F675E !important;
	  font-size: 18px !important;
	  font-style: normal !important;
	  line-height: 1.65 !important;
	}


/* =========================================================
   
	KINDRED — ADRESSES - DESKTOP

   ========================================================= */

@media (min-width: 981px) {

	
	/* Réduire l’espace intérieur de la partie droite */
	  body.logged-in.woocommerce-account.woocommerce-edit-address
	  .kindred-account-section
	  .kindred-my-account
	  .woocommerce
	  .woocommerce-MyAccount-content {
		padding: 20px 40px 25px !important;
		background-color: #FBFAF7 !important;
	  }
	
  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-account-section
  .kindred-my-account
  .woocommerce
  .woocommerce-MyAccount-content
  form > h2 {
    padding-top: 12px !important;
  }

	/* Phrase d’introduction — page Adresses */
	body.logged-in.woocommerce-account.woocommerce-edit-address
	.kindred-my-account
	.woocommerce-MyAccount-content
	> p:first-of-type {
	  margin: 0  !important;
	}

	/* Garder les titres d’adresses sur une seule ligne — desktop */
	  body.logged-in.woocommerce-account.woocommerce-edit-address
	  .kindred-my-account
	  .woocommerce-Address-title
	  h2 {
		white-space: nowrap !important;
	  }
}

/* =========================================================
   KINDRED — MON COMPTE / ADRESSES — TABLETTE
   De 768 px à 980 px
   ========================================================= */


@media (min-width: 768px) and (max-width: 980px) {

	/* Espace entre le menu et le contenu Adresses */
	body.logged-in.woocommerce-account.woocommerce-edit-address
	.kindred-account-section
	.kindred-my-account
	.woocommerce
	.woocommerce-MyAccount-navigation {
	  margin-bottom: 24px !important;
	}  
		
	/* Fond de la zone de contenu */
   body.logged-in.woocommerce-account
    .kindred-account-section
    .kindred-my-account
    .woocommerce
    .woocommerce-MyAccount-content {
    background-color: #FBFAF7 !important;
  }
	
	body.logged-in.woocommerce-account.woocommerce-edit-address
	.kindred-my-account
	.woocommerce-Address.col-2 {
	  margin-top: 24px !important;
	}	
	
	/* Cartes d’adresses sans bordure — tablette */
	body.logged-in.woocommerce-account.woocommerce-edit-address
	.kindred-account-section
	.kindred-my-account
	.woocommerce
	.woocommerce-MyAccount-content
	.woocommerce-Address {
	  border: none !important;
	}
	
	/* Padding des cartes — tablette */
	body.logged-in.woocommerce-account.woocommerce-edit-address
	.kindred-account-section
	.kindred-my-account
	.woocommerce
	.woocommerce-MyAccount-content
	.woocommerce-Address {
	  padding: 24px !important;
	}	
}

/* =========================================================
   KINDRED — MON COMPTE / ADRESSES — MOBILE
   Jusqu’à 767 px
   ========================================================= */

@media (max-width: 767px) {
 
	
	/* Séparer le menu de la partie contenu */
  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-account-section
  .kindred-my-account
  .woocommerce
  .woocommerce-MyAccount-navigation {
    margin-bottom: 24px !important;
  }

  /* Fond et espacements de la partie contenu */
  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-account-section
  .kindred-my-account
  .woocommerce
  .woocommerce-MyAccount-content {
    padding: 0 !important;
    background-color: transparent !important;
	border: none !important;
    box-sizing: border-box !important;
  }
	
	  /* Titres adaptés au mobile */
  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-my-account
  .woocommerce-Address-title
  h2 {
    margin: 0 !important;
    font-size: 22px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
  }

  /* Phrase d’introduction */
  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-my-account
  .woocommerce-MyAccount-content
  > p:first-of-type {
    margin: 0 0 24px !important;
    line-height: 1.55 !important;
  }

  /* Fond des cartes sans bordure */
  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-my-account
  .woocommerce-Address {
    float: none !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 20px !important;
    background-color: #FFFFFF !important;
    border: none !important;
    box-sizing: border-box !important;
  }

  /* En-tête des cartes */
  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-my-account
  .woocommerce-Address-title {
    gap: 12px !important;
    margin: 0 0 14px !important;
  }

/* Espace entre les deux cartes — mobile */
body.logged-in.woocommerce-account.woocommerce-edit-address
.kindred-my-account
.woocommerce-Address.col-2 {
  margin-top: 25px !important;
	}

}


/* Titre */
	  body.logged-in.woocommerce-account.woocommerce-edit-address
	  .kindred-my-account
	  .woocommerce-MyAccount-content
	  form h2 {
		margin: 0 0 24px !important;
		padding: 0 !important;
		color: #1F1F1F !important;
		font-family: Arial, sans-serif !important;
		font-size: 26px !important;
		font-weight: 500 !important;
		line-height: 1.2 !important;
	  }

  /* -------------------------------------------------------
     1. Espacement entre les champs
     ------------------------------------------------------- */

  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-my-account
  .woocommerce-address-fields
  .form-row {
    margin: 0 0 25px !important;
    padding: 0 !important;
  }

  /* -------------------------------------------------------
     2. Libellés
     ------------------------------------------------------- */

  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-my-account
  .woocommerce-address-fields
  .form-row label {
    display: block !important;
    margin-bottom: 8px !important;
    color: #5F5953 !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
  }

  /* Astérisques obligatoires */
  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-my-account
  .woocommerce-address-fields
  .required {
    color: #1F1F1F !important;
    opacity: 1 !important;
    text-decoration: none !important;
  }

  /* Mention facultatif */
  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-my-account
  .woocommerce-address-fields
  .optional {
    color: #8A837B !important;
    font-size: 15px !important;
  }

  /* -------------------------------------------------------
     3. Champs et liste Pays/région
     ------------------------------------------------------- */

  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-my-account
  .woocommerce-address-fields
  input.input-text,
  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-my-account
  .woocommerce-address-fields
  select {
    width: 100% !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 11px 14px !important;
    background-color: #FFFFFF !important;
    border: 1px solid #DDD6CD !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #1F1F1F !important;
    font-size: 18px !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
  }

		/* Espace sous le champs Pays */

	body.logged-in.woocommerce-account.woocommerce-edit-address
	.kindred-my-account
	#billing_country_field,
	body.logged-in.woocommerce-account.woocommerce-edit-address
	.kindred-my-account
	#shipping_country_field {
	  margin-bottom: 30px !important;
	}

  /* -------------------------------------------------------
     4. Select2 WooCommerce, s’il est utilisé
     ------------------------------------------------------- */

  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-my-account
  .select2-container {
    width: 100% !important;
  }

  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-my-account
  .select2-selection--single {
    height: 52px !important;
    background-color: #FFFFFF !important;
    border: 1px solid #DDD6CD !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-my-account
  .select2-selection__rendered {
    padding: 11px 40px 11px 14px !important;
    color: #5F5953 !important;
    font-size: 18px !important;
    line-height: 28px !important;
  }
  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-my-account
  .select2-selection__arrow {
    height: 50px !important;
  }

  /* -------------------------------------------------------
     5. Focus des champs
     ------------------------------------------------------- */

  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-my-account
  .woocommerce-address-fields
  input.input-text:focus,
  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-my-account
  .woocommerce-address-fields
  select:focus,
  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-my-account
  .select2-container--focus
  .select2-selection--single {
    background-color: #FFFFFF !important;
    border-color: #1F1F1F !important;
    outline: none !important;
    box-shadow: none !important;
	font-size: 18px !important;
  }

  /* -------------------------------------------------------
     7. Bouton Enregistrer l’adresse
     ------------------------------------------------------- */

  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-my-account
  button.button {
    width: 100% !important;
    min-height: 50px !important;
    margin: 4px 0 0 !important;
    padding: 14px 24px !important;
    background-color: #1F1F1F !important;
    border: 1px solid #1F1F1F !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #FCF5EC !important;
    font-size: 18px !important;
    font-weight: 400 !important;
  }

  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-my-account
  button.button:hover {
    background-color: #333333 !important;
    border-color: #333333 !important;
    color: #FCF5EC !important;
  }

  /* Supprimer l’icône automatique Divi */
  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-my-account
  button.button::before,
  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-my-account
  button.button::after {
    display: none !important;
    content: none !important;
  }

/* =========================================================
   KINDRED — MESSAGE DE CONFIRMATION MON COMPTE
   ========================================================= */

body.logged-in.woocommerce-account
.kindred-my-account
.woocommerce-message {
  margin: 0 0 36px !important;
  padding: 16px 18px !important;
  background-color: #F0EBE4 !important;
  border: 1px solid #DDD6CD !important;
  border-left: 2px solid #1F1F1F !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #5F5953 !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;

  box-sizing: border-box !important;
}

/* Supprimer l’icône WooCommerce */
body.logged-in.woocommerce-account
.kindred-my-account
.woocommerce-message::before {
  display: none !important;
  content: none !important;
}

/* =========================================================
   KINDRED — MODIFIER UNE ADRESSE — TABLETTE
   Réduire l’espace au-dessus du titre
   ========================================================= */

@media (min-width: 768px) and (max-width: 980px) {

  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-account-section
  .kindred-my-account
  .woocommerce
  .woocommerce-MyAccount-content {
    padding-top: 25px !important;
  }

}


/* =========================================================
   KINDRED — MODIFIER UNE ADRESSE MOBILE
   Finitions
   ========================================================= */

@media (max-width: 767px) {

  /* Titre mieux proportionné */
  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-my-account
  .woocommerce-MyAccount-content form h2 {
    font-size: 26px !important;
    line-height: 1.12 !important;
    margin-bottom: 24px !important;
  }
 /* Fond et padding du formulaire */	
  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-my-account
  .woocommerce-MyAccount-content
  form {
    margin: 0 !important;
    padding: 20px !important;
    background-color: #FBFAF7 !important;
    border: none !important;
    box-sizing: border-box !important;
  }

  /* Espacement régulier entre les champs */
  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-my-account
  .woocommerce-address-fields
  .form-row {
    margin-bottom: 18px !important;
  }

  /* Placeholder du complément d’adresse entièrement lisible */
  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-my-account
  #billing_address_2::placeholder,
  body.logged-in.woocommerce-account.woocommerce-edit-address
  .kindred-my-account
  #shipping_address_2::placeholder {
    color: #8A837B !important;
    font-size: 14px !important;
    opacity: 1 !important;
  }
}