/* =========================================================
   KINDRED — HISTORIQUE DES COMMANDES
   
   Version complète : desktop, tablette et mobile
   ========================================================= */

/* ---------------------------------------------------------
    Tableau des commandes — styles communs
   --------------------------------------------------------- */

/* Retirer le cadre */
body.logged-in.woocommerce-account.woocommerce-orders
.kindred-my-account
.woocommerce-MyAccount-content {
  padding: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

body.logged-in.woocommerce-account
.kindred-my-account
table.woocommerce-orders-table {
  width: 100% !important;
  margin: 0 !important;
  background-color: #FFFFFF !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}


/* =========================================================
   COMMANDES — ÉTAT VIDE
   Message par défaut WooCommerce quand le client n'a jamais
   passé de commande. Non stylé par défaut (fond noir brut,
   bouton mal positionné) — on l'aligne sur le design du site.
   ========================================================= */

body.woocommerce-orders
.kindred-my-account
.woocommerce-info {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 24px !important;
  background-color: #FFFFFF !important;
  border: 1px solid #DDD6CD !important;
  border-radius: 12px !important;
  color: #6F675E !important;
  font-size: 18px !important;
  line-height: 1.5 !important;
}

/* Neutraliser l'icône par défaut de WooCommerce sur ce message */
body.woocommerce-orders
.kindred-my-account
.woocommerce-info::before {
  display: none !important;
  content: none !important;
}

/* Bouton "Parcourir les produits" */
body.woocommerce-orders
.kindred-my-account
.woocommerce-info
a.woocommerce-Button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  height: 44px !important;
  padding: 0 24px !important;
  margin: 0 !important;
  background-color: #1F1F1F !important;
  border: 1px solid #1F1F1F !important;
  border-radius: 8px !important;
  color: #FCF5EC !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background-color 0.2s ease !important;
}

body.woocommerce-orders
.kindred-my-account
.woocommerce-info
a.woocommerce-Button:hover {
  background-color: #333333 !important;
  border-color: #333333 !important;
  color: #FCF5EC !important;
}

/* Neutraliser l'icône/flèche ajoutée automatiquement par Divi */
body.woocommerce-orders
.kindred-my-account
.woocommerce-info
a.woocommerce-Button::before,
body.woocommerce-orders
.kindred-my-account
.woocommerce-info
a.woocommerce-Button::after,
body.woocommerce-orders
.kindred-my-account
.woocommerce-info
a.woocommerce-Button:hover::before,
body.woocommerce-orders
.kindred-my-account
.woocommerce-info
a.woocommerce-Button:hover::after {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  content: none !important;
  opacity: 0 !important;
}

/* Version mobile : bouton en dessous, pleine largeur */
@media (max-width: 767px) {

  body.woocommerce-orders
  .kindred-my-account
  .woocommerce-info {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  body.woocommerce-orders
  .kindred-my-account
  .woocommerce-info
  a.woocommerce-Button {
    width: 100% !important;
  }

}


/* =========================================================
   KINDRED — COMMANDES
   Alignement du tableau uniquement sur desktop
   ========================================================= */

@media (min-width: 981px) {

  /* Réduire la padding du tableau */

  body.logged-in.woocommerce-account.woocommerce-orders
  .kindred-account-section
  .kindred-my-account
  .woocommerce
  .woocommerce-MyAccount-content {
    padding: 18px !important;
  }

  /* ---------------------------------------------------------
     Numéro de commande
     Centrage et apparence du lien
     --------------------------------------------------------- */

  /* Apparence et centrage du numéro de commande */
  body.logged-in.woocommerce-account
  .kindred-my-account
  table.woocommerce-orders-table
  .woocommerce-orders-table__cell-order-number a {
    display: block !important;
    width: 100% !important;
    color: #1F1F1F !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    text-align: center !important;
    text-decoration: underline !important;
    text-underline-offset: 5px !important;
  }
	
  /* Afficher le numéro de commande sur desktop */
  body.logged-in.woocommerce-account
  .kindred-my-account
  table.woocommerce-orders-table
  tbody th.woocommerce-orders-table__cell-order-number {
    display: table-cell !important;
    border-bottom: none !important;
  }

  body.logged-in.woocommerce-account
  .kindred-my-account
  table.woocommerce-orders-table {
    border-collapse: collapse !important;
  }

  /* ---------------------------------------------------------
      En-tête du tableau
     --------------------------------------------------------- */

  body.logged-in.woocommerce-account
  .kindred-my-account
  table.woocommerce-orders-table thead th {
    background-color: #F0EBE4 !important;
    color: #6F675E !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    text-align: center !important;
    vertical-align: middle !important;
    padding: 14px 0 !important;
  }


  /* ---------------------------------------------------------
      Cellules du tableau
     --------------------------------------------------------- */

  /*body.logged-in.woocommerce-account
  .kindred-my-account
  table.woocommerce-orders-table th,*/

  body.logged-in.woocommerce-account
  .kindred-my-account
  table.woocommerce-orders-table td {
    padding: 15px 0 !important;
	font-size: 18px !important;
    color: #6F675E !important;
    line-height: 1.5 !important;
	font-weight: 500 !important;
  }

  /* ---------------------------------------------------------
     4. Retirer la dernière bordure horizontale
     --------------------------------------------------------- */

  body.logged-in.woocommerce-account
  .kindred-my-account
  table.woocommerce-orders-table tbody tr:last-child td {
    border-bottom: 0 !important;
  }

  /* ---------------------------------------------------------
     6. Bouton « Voir »
     --------------------------------------------------------- */

  body.logged-in.woocommerce-account
  .kindred-my-account
  table.woocommerce-orders-table
  .woocommerce-button {
    display: inline-block !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #6F675E !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition:
      color 0.2s ease,
      opacity 0.2s ease !important;
  }


  /* Survol et focus du bouton */
  body.logged-in.woocommerce-account
  .kindred-my-account
  table.woocommerce-orders-table
  a.woocommerce-button.button:hover,
  body.logged-in.woocommerce-account
  .kindred-my-account
  table.woocommerce-orders-table
  a.woocommerce-button.button:focus {
	color: #1F1F1F !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
    opacity: 1 !important;
  }
	
/* ---------------------------------------------------------
   Supprimer l’icône ajoutée par Divi au bouton « Voir »
   --------------------------------------------------------- */

body #page-container
.kindred-my-account
table.woocommerce-orders-table
a.woocommerce-button.button::before,

body #page-container
.kindred-my-account
table.woocommerce-orders-table
a.woocommerce-button.button::after,

body #page-container
.kindred-my-account
table.woocommerce-orders-table
a.woocommerce-button.button:hover::before,

body #page-container
.kindred-my-account
table.woocommerce-orders-table
a.woocommerce-button.button:hover::after,

body #page-container
.kindred-my-account
table.woocommerce-orders-table
a.woocommerce-button.button:focus::before,

body #page-container
.kindred-my-account
table.woocommerce-orders-table
a.woocommerce-button.button:focus::after {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  content: none !important;
  opacity: 0 !important;
}


  /* Séparation entre les commandes */

  body.logged-in.woocommerce-account
  .kindred-my-account
  table.woocommerce-orders-table
  tbody tr {
    border-bottom: 1px solid #DDD6CD !important;
  }

  body.logged-in.woocommerce-account
  .kindred-my-account
  table.woocommerce-orders-table
  tbody tr:last-child {
    border-bottom: 0 !important;
  }


  /* Masquer pour 1 article */
  body.logged-in.woocommerce-account
  .kindred-my-account
  table.woocommerce-orders-table
  td.woocommerce-orders-table__cell-order-total {
    font-size: 0 !important;
  }


  /* Réafficher uniquement le montant */

  body.logged-in.woocommerce-account
  .kindred-my-account
  table.woocommerce-orders-table
  td.woocommerce-orders-table__cell-order-total
  .woocommerce-Price-amount {
    display: inline-block !important;
    margin: 0 !important;
    font-size: 18px !important;
	color: #1F1F1F !important;
	font-weight: 600 !important;
  }


  body.logged-in.woocommerce-account
  .kindred-my-account
  table.woocommerce-orders-table
  th,
  body.logged-in.woocommerce-account
  .kindred-my-account
  table.woocommerce-orders-table
  td {
    text-align: center !important;
    vertical-align: middle !important;
  }

  body.logged-in.woocommerce-account
  .woocommerce-orders-table
  td.woocommerce-orders-table__cell-order-number {
    text-align: center !important;
    vertical-align: middle !important;
  }
}


/* =========================================================
   KINDRED — HISTORIQUE DES COMMANDES TABLETTE + MOBILE
   Chaque commande est présentée sous forme de carte
   ========================================================= */

@media (max-width: 980px) {
  /* ---------------------------------------------------------
     1. Structure générale du tableau
     --------------------------------------------------------- */

	/* ---------------------------------------------------------
	   Retirer le grand cadre extérieur
	   --------------------------------------------------------- */

	body.logged-in.woocommerce-account.woocommerce-orders
	.kindred-account-section
	.kindred-my-account
	.woocommerce
	.woocommerce-MyAccount-content {
	  padding: 0 !important;
	  background: transparent !important;
	  background-color: transparent !important;
	  border: 0 !important;
	  outline: 0 !important;
	  box-shadow: none !important;
	}
	
	  /* Transformer le tableau en conteneur de cartes */
	  body.logged-in.woocommerce-account
	  .kindred-my-account
	  table.woocommerce-orders-table {
		display: block !important;
		background-color: transparent !important;
		border: 0 !important;
	  }

	  /* Masquer l’en-tête desktop */
	  body.logged-in.woocommerce-account
	  .kindred-my-account
	  table.woocommerce-orders-table
	  thead {
		display: none !important;
	  }

	  /* Transformer le corps du tableau en conteneur pleine largeur */
	  body.logged-in.woocommerce-account
	  .kindred-my-account
	  table.woocommerce-orders-table
	  tbody {
		display: block !important;
		width: 100% !important;
	  }
	
	/* Séparer le menu de l’historique des commandes */
	body.logged-in.woocommerce-account.woocommerce-orders
	.kindred-account-section
	.kindred-my-account
	.woocommerce-MyAccount-navigation {
	  margin-bottom: 25px !important;
	}


	  /* ---------------------------------------------------------
		 2. Carte individuelle de chaque commande
		 --------------------------------------------------------- */

	  body.logged-in.woocommerce-account
	  .kindred-my-account
	  table.woocommerce-orders-table
	  tbody tr {
		display: block !important;
		width: 100% !important;
		margin: 0 0 25px !important;
		background-color: #FFFFFF !important;
		border: 0 !important;
		box-sizing: border-box !important;
	  }

	  /* Retirer la marge sous la dernière commande */
	  body.logged-in.woocommerce-account
	  .kindred-my-account
	  table.woocommerce-orders-table
	  tbody tr:last-child {
		margin-bottom: 0 !important;
	  }


	  /* ---------------------------------------------------------
		 3. Cellules de chaque commande
		 --------------------------------------------------------- */

		  body.logged-in.woocommerce-account
		  .kindred-my-account
		  table.woocommerce-orders-table
		  td {
		  display: flex !important;
		  align-items: center !important;
		  justify-content: space-between !important;
		  gap: 18px !important;
		  width: 100% !important;
		  padding: 12px 14px !important;
		  font-size: 18px !important;
		  color: #1F1F1F !important;
		  text-align: right !important;
		  box-sizing: border-box !important;
		  }


	  /* ---------------------------------------------------------
		 4. Numéro de commande
		 --------------------------------------------------------- */

	/* Numéro de commande - Retirer la bordure parasite de la cellule */

	body.logged-in.woocommerce-account
	.kindred-my-account
	table.woocommerce-orders-table
	tbody th.woocommerce-orders-table__cell-order-number {
	  display: block !important;
	  padding: 12px 14px !important;
	  border: 0 !important;
	  box-shadow: none !important;
	  
	}
	
	/* Taille Numéro de commande */
	  body.logged-in.woocommerce-account
	  .kindred-my-account
	  table.woocommerce-orders-table
	  .woocommerce-orders-table__cell-order-number a {
		display: block !important;
		width: 100% !important;
		color: #1F1F1F !important;
		font-size: 18px !important;
		font-weight: 500 !important;
		text-decoration: underline !important;
		text-underline-offset: 5px !important;
	  }
	



	  /* ---------------------------------------------------------
		 5. Titres générés dans les cellules
		 DATE — ÉTAT — TOTAL
		 --------------------------------------------------------- */

	  body.logged-in.woocommerce-account
	  .kindred-my-account
	  table.woocommerce-orders-table
	  tbody td::before {
		color: #1F1F1F !important;
		font-size: 16px !important;
		font-weight: 400 !important;
		line-height: 1.4 !important;
		letter-spacing: 0 !important;
		text-transform: uppercase !important;
	  }


	  /* ---------------------------------------------------------
		 6. Masquer « pour 1 article » et conserver le montant
		 --------------------------------------------------------- */

	  body.logged-in.woocommerce-account
	  .kindred-my-account
	  table.woocommerce-orders-table
	  td.woocommerce-orders-table__cell-order-total {
	    display: grid !important;
	    grid-template-columns: 1fr auto !important;
	    align-items: center !important;
	    width: 100% !important;
	    font-size: 0 !important;
	    white-space: nowrap !important;
	  }
	
	/* ---------------------------------------------------------
	   Libellés des informations
	   --------------------------------------------------------- */

	/* DATE et ÉTAT uniquement */
	body.logged-in.woocommerce-account
	.kindred-my-account
	table.woocommerce-orders-table
	tbody td::before {
	  font-size: 15px !important;
	  font-weight: 500 !important;
	}
	
	/* Libellé « TOTAL » en gras et a gauche */
	body.logged-in.woocommerce-account
	.kindred-my-account
	table.woocommerce-orders-table
	td.woocommerce-orders-table__cell-order-total::before{
		font-weight: 600 !important;
		text-align: left !important;
	}

	  /* Montant aligné à droite et en gras */
	  body.logged-in.woocommerce-account
	  .kindred-my-account
	  table.woocommerce-orders-table
	  td.woocommerce-orders-table__cell-order-total
	  .woocommerce-Price-amount {
	    display: block !important;
	    grid-column: 2 !important;
	    justify-self: end !important;
	    margin: 0 !important;
	    color: #1F1F1F !important;
	    font-size: 18px !important;
	    font-weight: 600 !important;
	    text-align: right !important;
	  }

	  /* ---------------------------------------------------------
		 7. Cellule des actions
		 --------------------------------------------------------- */

	  /* Masquer le libellé « Actions » */
	  body.logged-in.woocommerce-account
	  .kindred-my-account
	  table.woocommerce-orders-table
	  td.woocommerce-orders-table__cell-order-actions::before {
		display: none !important;
		content: none !important;
	  }


	  /* ---------------------------------------------------------
		 8. Bouton « Voir »
		 --------------------------------------------------------- */

	  body.logged-in.woocommerce-account
	  .kindred-my-account
	  table.woocommerce-orders-table
	  td.woocommerce-orders-table__cell-order-actions
	  a.woocommerce-button.button {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 100% !important;
		height: 44px !important;
		min-height: 44px !important;
		margin: 0 !important;
		padding: 12px 16px !important;
		background-color: #1F1F1F !important;
		border: 1px solid #1F1F1F !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		color: #FCF5EC !important;
		font-size: 17px !important;
		font-weight: 400 !important;
		line-height: 1.2 !important;
		text-decoration: none !important;
		box-sizing: border-box !important;
	  }

	  /* Survol et focus du bouton */
	  body.logged-in.woocommerce-account
	  .kindred-my-account
	  table.woocommerce-orders-table
	  td.woocommerce-orders-table__cell-order-actions
	  a.woocommerce-button.button:hover,
	  body.logged-in.woocommerce-account
	  .kindred-my-account
	  table.woocommerce-orders-table
	  td.woocommerce-orders-table__cell-order-actions
	  a.woocommerce-button.button:focus {
		background-color: #333333 !important;
		border-color: #333333 !important;
		color: #FCF5EC !important;
	  }


	  /* ---------------------------------------------------------
		 9. Retirer l’icône ajoutée par Divi
		 --------------------------------------------------------- */

	  body.logged-in.woocommerce-account
	  .kindred-my-account
	  table.woocommerce-orders-table
	  td.woocommerce-orders-table__cell-order-actions
	  a.woocommerce-button.button::before,
	  body.logged-in.woocommerce-account
	  .kindred-my-account
	  table.woocommerce-orders-table
	  td.woocommerce-orders-table__cell-order-actions
	  a.woocommerce-button.button::after {
		display: none !important;
		content: none !important;
	  }
	}

/* ---------------------------------------------------------
		 MOBILE _ C0MMANDES
--------------------------------------------------------- */

	@media (max-width: 767px){

		/* Conteneur */
		table.woocommerce-orders-table {
		  width: 100% !important;
		}

}



/* =========================================================
   KINDRED — DÉTAIL D’UNE COMMANDE
   
   Style communs : desktop, tablette et mobile
   ========================================================= */

	/* ---------------------------------------------------------
	   Retirer le cadre extérieur sur le détail d’une commande
	   --------------------------------------------------------- */

	body.logged-in.woocommerce-account.woocommerce-view-order
	.kindred-my-account
	.woocommerce-MyAccount-content {
	  background-color: transparent !important;
	  border: 0 !important;
	  box-shadow: none !important;
	}

	/* ---------------------------------------------------------
	   1. Phrase d’introduction de la commande
	   --------------------------------------------------------- */

	/* Phrase d’introduction de la commande */
	body.logged-in.woocommerce-account.woocommerce-view-order
	.kindred-my-account
	.woocommerce-MyAccount-content
	> p:first-of-type {
	  margin: 0 0 22px !important;
	  color: #6F675E !important;
	  font-size: 18px !important;
	  line-height: 1.6 !important;
	}

	/* Numéro, date et état dans la phrase d’introduction */
	body.logged-in.woocommerce-account.woocommerce-view-order
	.kindred-my-account
	.woocommerce-MyAccount-content
	> p:first-of-type mark {
	  padding: 0 !important;
	  background-color: transparent !important;
	  color: #1F1F1F !important;
	  font-weight: 500 !important;
	}


	/* ---------------------------------------------------------
	   2. Section « Détails de la commande »
	   --------------------------------------------------------- */

	body.woocommerce-view-order
	.kindred-my-account
	.woocommerce-order-details {
	  width: 100% !important;
	  margin: 0 !important;
	  box-sizing: border-box !important;
	}


	/* Titre principal */
	body.logged-in.woocommerce-account.woocommerce-view-order
	.kindred-my-account
	.woocommerce-order-details
	h2.woocommerce-order-details__title {
	  font-family: Arial, sans-serif !important;
	  color: #1F1F1F !important;
	  font-size: 28px !important;
	  font-weight: 500 !important;
	  line-height: 1.2 !important;
	  margin: 0 0 22px !important;
	}


/* ---------------------------------------------------------
   3. Tableau récapitulatif de la commande
   --------------------------------------------------------- */

	body.woocommerce-view-order
	.kindred-my-account
	table.woocommerce-table--order-details {
	  width: 100% !important;
	  margin: 0 !important;
	  background-color: #FFFFFF !important;
	  border: 1px solid #DDD6CD !important;
	  border-collapse: collapse !important;
	  border-radius: 0 !important;
	  box-shadow: none !important;
	  box-sizing: border-box !important;
	}


	/* Cellules du tableau */
	body.woocommerce-view-order
	.kindred-my-account
	table.woocommerce-table--order-details th,
	body.woocommerce-view-order
	.kindred-my-account
	table.woocommerce-table--order-details td {
	  padding: 15px 16px !important;
	  color: #6F675E !important;
	  border: 0 !important;
	  border-bottom: 1px solid #DDD6CD !important;
	  font-size: 18px !important;
	  line-height: 1.5 !important;
	  vertical-align: middle !important;
	}


	/* En-tête Produit / Total */
	body.woocommerce-view-order
	.kindred-my-account
	table.woocommerce-table--order-details thead th {
	  padding: 15px 16px !important;
	  background-color: #F0EBE4 !important;
	  color: #1F1F1F !important;
	  font-size: 15px !important;
	  font-weight: 500 !important;
	  letter-spacing: 0.04em !important;
	  text-transform: uppercase !important;
	}


	/* Montants secondaires : sous-total, expédition et paiement */
	body.woocommerce-view-order
	.kindred-my-account
	table.woocommerce-table--order-details
	.product-total,

	body.woocommerce-view-order
	.kindred-my-account
	table.woocommerce-table--order-details
	tfoot td {
	  text-align: right !important;
	  white-space: nowrap !important;
	  font-weight: 500 !important;
	}


	/* Libellés Sous-total, Expédition, Total et Paiement */
	body.woocommerce-view-order
	.kindred-my-account
	table.woocommerce-table--order-details tfoot th {
	  color: #1F1F1F !important;
	  font-weight: 500 !important;
	}

	/* Mettre en valeur uniquement la ligne Total */
	body.woocommerce-view-order
	.kindred-my-account
	table.woocommerce-table--order-details
	tfoot tr:nth-last-child(2) th,

	body.woocommerce-view-order
	.kindred-my-account
	table.woocommerce-table--order-details
	tfoot tr:nth-last-child(2) td {
	  color: #1F1F1F !important;
	  font-weight: 600 !important;
	}


	/* Retirer la bordure de la dernière ligne */
	body.woocommerce-view-order
	.kindred-my-account
	table.woocommerce-table--order-details
	tfoot tr:last-child th,
	body.woocommerce-view-order
	.kindred-my-account
	table.woocommerce-table--order-details
	tfoot tr:last-child td {
	  font-weight: 400 !important;
	  border-bottom: 0 !important;
	}


	/* Lien du produit */
	body.woocommerce-view-order
	.kindred-my-account
	table.woocommerce-table--order-details
	.woocommerce-table__product-name a {
      font-size: 18px !important;
	  color: #1F1F1F !important;
	  font-weight: 500 !important;
	  text-decoration: none !important;
	}

	/* Quantité du produit plus discret */
	body.woocommerce-view-order
	.kindred-my-account
	table.woocommerce-table--order-details
	.product-quantity {
	  font-size: 18px !important;
	  color: #1F1F1F !important;
	  font-weight: 500 !important;
	}

	/*Retirer VIA Livraison Standars*/
	body.woocommerce-view-order
	.kindred-my-account
	small.shipped_via {
	  display: none !important;
	}

/* =========================================================
   ADRESSES DE FACTURATION ET DE LIVRAISON
   Styles visuels communs
   ========================================================= */

	body.logged-in.woocommerce-account.woocommerce-view-order
	.kindred-my-account
	.woocommerce-MyAccount-content {
	  padding-top: 0 !important;
	  padding-bottom: 0 !important;
	}


	body.woocommerce-view-order
	.kindred-my-account
	.woocommerce-customer-details {
	  width: 100% !important;
	  margin-top: 40px !important;
	  box-sizing: border-box !important;
	}


	/* Conteneur général */
	body.woocommerce-view-order
	.kindred-my-account
	.woocommerce-columns--addresses {
	  width: 100% !important;
	  margin: 0 !important;
	  clear: both !important;
	  box-sizing: border-box !important;
	}


	/* Supprimer le clearfix WooCommerce */
	body.woocommerce-view-order
	.kindred-my-account
	.woocommerce-columns--addresses::before,
	body.woocommerce-view-order
	.kindred-my-account
	.woocommerce-columns--addresses::after {
	  display: none !important;
	  content: none !important;
	}


	/* Neutraliser les largeurs WooCommerce */
	body.woocommerce-view-order
	.kindred-my-account
	.woocommerce-columns--addresses
	.woocommerce-column {
	  float: none !important;
	  width: 100% !important;
	  max-width: none !important;
	  margin: 0 !important;
	  padding: 0 !important;
	  box-sizing: border-box !important;
	}


	/* ---------------------------------------------------------
	   5. Titres des adresses
	   --------------------------------------------------------- */

	body.woocommerce-view-order
	.kindred-my-account
	.woocommerce-columns--addresses
	.woocommerce-column__title {
	  font-family: Arial, sans-serif !important;
	  font-size: 22px !important;
	  color: #1F1F1F !important;
	  font-weight: 500 !important;
	  line-height: 1.2 !important;
	  padding-bottom: 0 !important;
	  margin: 0 0 16px !important;
	}


/* ---------------------------------------------------------
   6. Cartes contenant les coordonnées
   --------------------------------------------------------- */

	body.woocommerce-view-order
	.kindred-my-account
	.woocommerce-columns--addresses
	address {
	  width: 100% !important;
	  margin: 0 !important;
	  padding: 20px !important;
	  background-color: #FFFFFF !important;
	  border: 1px solid #DDD6CD !important;
	  border-radius: 0 !important;
	  box-shadow: none !important;
	  color: #6F675E !important;
	  font-size: 18px !important;
	  font-style: normal !important;
	  line-height: 1.65 !important;
	  box-sizing: border-box !important;
	}

	/* Téléphone de facturation */
	body.logged-in.woocommerce-account.woocommerce-view-order
	.kindred-my-account
	.woocommerce-column--billing-address
	p.woocommerce-customer-details--phone {
	  margin: auto 0 0 !important;
	  padding-bottom : 0 !important;
	  color: #6F675E !important;
	  font-size: 18px !important;
	  line-height: 1.65 !important;
	}

	/* E-mail de facturation */
	body.logged-in.woocommerce-account.woocommerce-view-order
	.kindred-my-account
	.woocommerce-column--billing-address
	p.woocommerce-customer-details--email {
	  margin: 0 !important;
	  color: #6F675E !important;
	  font-size: 18px !important;
	}

	/* Téléphone de livraison */
	body.logged-in.woocommerce-account.woocommerce-view-order
	.kindred-my-account
	.woocommerce-column--shipping-address
	p.woocommerce-customer-details--phone {
	  margin: auto 0 0 !important;
	  color: #6F675E !important;
	  font-size: 18px !important;
	}

	/*Retirer le soulignement du telephone*/
	body.logged-in.woocommerce-account.woocommerce-view-order
	.kindred-my-account
	.woocommerce-column--billing-address
	p.woocommerce-customer-details--phone a {
	  font-size: 18px !important;
	  color: #6F675E !important;
	  text-decoration: none !important;
	  -webkit-text-decoration: none !important;
	  border-bottom: 0 !important;
	  box-shadow: none !important;
	}

	/* Taille du numéro de telephone */
	body.logged-in.woocommerce-account.woocommerce-view-order
	.kindred-my-account
	.woocommerce-column--shipping-address
	p.woocommerce-customer-details--phone a {
	  font-size: 18px !important;
	  color: #6F675E !important;
	  text-decoration: none !important;
	  -webkit-text-decoration: none !important;
	  border-bottom: 0 !important;
	  box-shadow: none !important;
	}

	/* Téléphone de livraison placé en bas de la carte */
    body.logged-in.woocommerce-account.woocommerce-view-order
    .kindred-my-account
    .woocommerce-column--shipping-address
    p.woocommerce-customer-details--phone {
      margin: auto 0 0 !important;
  }


/* =========================================================
   KINDRED — DÉTAIL D’UNE COMMANDE DESKTOP
   Uniquement la structure propre au desktop
   ========================================================= */

@media (min-width: 981px) {

  /* Adresses disposées en deux colonnes */
  body.woocommerce-view-order
  .kindred-my-account
  .woocommerce-columns--addresses {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px !important;
    align-items: stretch !important;
  }

  /* Colonnes étirées à la même hauteur */
  body.woocommerce-view-order
  .kindred-my-account
  .woocommerce-columns--addresses
  .woocommerce-column {
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
  }

  /* Cartes d’adresses de même hauteur */
  body.woocommerce-view-order
  .kindred-my-account
  .woocommerce-columns--addresses
  address {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    height: 100% !important;
  }
}



/* =========================================================
   KINDRED — DÉTAIL D’UNE COMMANDE
   TABLETTE
   De 768 px à 980 px
   ========================================================= */

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

	
	/* Réduire l’espace sous la dernière adresse — tablette */
	body.logged-in.woocommerce-account.woocommerce-view-order
	.kindred-account-section
	.kindred-my-account
	.woocommerce
	.woocommerce-MyAccount-content {
	  margin-top: 25px !important;
	  padding-bottom: 0 !important;
	}
	
	/* Espacement entre les titres d’adresses et les cartes — tablette */
	body.woocommerce-view-order
	.kindred-my-account
	.woocommerce-columns--addresses
	.woocommerce-column__title {
	  margin-bottom: 12px !important;
	}
	
	/* Cartes d’adresses plus compactes — tablette */
	body.woocommerce-view-order
	.kindred-my-account
	.woocommerce-columns--addresses
	address {
	  padding: 16px 18px !important;
	}

  /* Espace avant l’adresse de livraison */
  body.woocommerce-view-order
  .kindred-my-account
  .woocommerce-column--shipping-address.col-2 {
    margin-top: 28px !important;
  }
	
	/* Espacer les coordonnées téléphoniques de l’adresse */
	body.logged-in.woocommerce-account.woocommerce-view-order
	.kindred-my-account
	.woocommerce-column--billing-address
	p.woocommerce-customer-details--phone,

	body.logged-in.woocommerce-account.woocommerce-view-order
	.kindred-my-account
	.woocommerce-column--shipping-address
	p.woocommerce-customer-details--phone {
	  margin-top: 12px !important;
	}
}


/* =========================================================
   KINDRED — DÉTAIL D’UNE COMMANDE
   MOBILE
   Jusqu’à 767 px
   ========================================================= */

@media (max-width: 767px) {


	/* Menu et détail de commande — même largeur */
	body.logged-in.woocommerce-account.woocommerce-view-order
	.kindred-account-section
	.kindred-my-account
	.woocommerce-MyAccount-navigation {
	  width: calc(100% - 40px) !important;
	  margin-left: auto !important;
	  margin-right: auto !important;
	}	
	
	/* Contenu principal */
	body.logged-in.woocommerce-account.woocommerce-view-order
	.kindred-account-section
	.kindred-my-account
	.woocommerce
	.woocommerce-MyAccount-content {
	  width: calc(100% - 40px) !important;
	  margin: 24px auto 0 !important;
	  padding: 0 !important;
	  border: 0 !important;
	  background-color: transparent !important;
      outline: 0 !important;
      box-shadow: none !important;
	  box-sizing: border-box !important;
	}
	

	  /* Phrase d’introduction uniquement */
	  body.logged-in.woocommerce-account.woocommerce-view-order
	  .kindred-my-account
	  .woocommerce-MyAccount-content
	  > p:first-of-type {
		line-height: 1.65 !important;
	  }

	  /* Titre principal */
	  body.logged-in.woocommerce-account.woocommerce-view-order
	  .kindred-my-account
	  .woocommerce-order-details
	  h2.woocommerce-order-details__title {
		padding-top: 10px !important;
		padding-bottom: 0 !important;
		line-height: 1.15 !important;
	  }

  /* Autoriser les textes longs à revenir à la ligne */
  body.woocommerce-view-order
  .kindred-my-account
  table.woocommerce-table--order-details th,
  body.woocommerce-view-order
  .kindred-my-account
  table.woocommerce-table--order-details td,
  body.woocommerce-view-order
  .kindred-my-account
  table.woocommerce-table--order-details th *,
  body.woocommerce-view-order
  .kindred-my-account
  table.woocommerce-table--order-details td * {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  /* Cellules du tableau */
  body.woocommerce-view-order
  .kindred-my-account
  table.woocommerce-table--order-details th,
  body.woocommerce-view-order
  .kindred-my-account
  table.woocommerce-table--order-details td {
    padding: 14px 15px !important;
  }
	
	/* Quantité du produit — troisième ligne */
	body.woocommerce-view-order
	.kindred-my-account
	table.woocommerce-table--order-details
	.product-quantity {
	  display: block !important;
	}

  /* Cartes d’adresses */
  body.woocommerce-view-order
  .kindred-my-account
  .woocommerce-columns--addresses
  address {
    padding: 18px !important;
  }

  /* Empêcher l’adresse e-mail de sortir de la carte */
  body.woocommerce-view-order
  .kindred-my-account
  .woocommerce-customer-details--email,
  body.woocommerce-view-order
  .kindred-my-account
  .woocommerce-customer-details--email a {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
	
	/* Espacement entre les titres d’adresses et les cartes */
	body.woocommerce-view-order
	.kindred-my-account
	.woocommerce-columns--addresses
	.woocommerce-column__title {
	  margin-bottom: 10px !important;
	}


  /* Espace avant l’adresse de livraison */
  body.woocommerce-view-order
  .kindred-my-account
  .woocommerce-column--shipping-address.col-2 {
    margin-top: 28px !important;
  }
	
	/* Espace téléphone de l'adresse */
	body.logged-in.woocommerce-account.woocommerce-view-order
	.kindred-my-account
	.woocommerce-column--billing-address
	p.woocommerce-customer-details--phone {
	  margin-top: 12px !important;
	}

	/* Espaces téléphone de livraison */
	body.logged-in.woocommerce-account.woocommerce-view-order
	.kindred-my-account
	.woocommerce-column--shipping-address
	p.woocommerce-customer-details--phone {
	  margin-top: 12px !important;
	}	
}
