/* Conteneur principal */

.woocommerce-account .woocommerce {
    background: var(--background-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-content {
    padding: 2rem;
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-content .ast-woo-grid-orders-container {
    grid-row-gap: 1rem;
}

/* Menu de navigation à gauche */
.woocommerce-MyAccount-navigation {
  flex: 1 1 220px;
  background: var(--primary-color);
  height: full;
}

.woocommerce-MyAccount-navigation ul {
  background: var(--primary-color);
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-MyAccount-navigation ul li {
  background: var(--primary-color);
  border: none !important;
  transition: all 0.3s ease;
}

.woocommerce-MyAccount-navigation ul li a {
  color: var(--background-white) !important;
  font-weight: 500 !important;
}

.woocommerce-MyAccount-navigation ul li a .ast-woo-nav-link-name {
  color: var(--background-white) !important;
  font-weight: 500 !important;
}

.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link:after {
    display: none !important;
}

.woocommerce-MyAccount-navigation .is-active, .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link:hover {
    background: var(--secondary-color);
    font-weight: bold;
}

.woocommerce-MyAccount-content .ast-woo-grid-orders-container .ast-orders-table__row {
    background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: var(--border-radius);
}

.woocommerce-MyAccount-content .ast-woo-grid-orders-container .ast-orders-table__row .ast-orders-table__cell-order-status {
    display: none;
}

.woocommerce-MyAccount-content .ast-woo-grid-orders-container .ast-orders-table__row .ast-orders-table__cell-order-actions {
    height: 100%;
    align-content: center;
    justify-content: center;
    top: 0;
}

.woocommerce-MyAccount-content .ast-woo-grid-orders-container .ast-orders-table__row .view {
    background: var(--primary-color);
    color: var(--background-white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.woocommerce-MyAccount-content .ast-woo-grid-orders-container .ast-orders-table__row .view:after {
    content: " la commande";
}

.woocommerce-MyAccount-content .ast-woo-grid-orders-container .ast-orders-table__row .view:hover {
    background: var(--background-beige);
}

/* Conteneur général des adresses */
.woocommerce-account .woocommerce .woocommerce-MyAccount-content .woocommerce-Addresses {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Cartes d'adresse (facturation + livraison) */
.woocommerce-account .woocommerce .woocommerce-MyAccount-content .woocommerce-Address {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  flex: 1 1 300px;
}

/* En-tête des blocs (titre + lien modifier) */
.woocommerce-account .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title {
  background-color: var(--background-beige); /* couleur beige */
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Titre h2 (taille et police secondaire) */
.woocommerce-account .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title h2 {
  font-size: 1.5rem;
  font-family: var(--secondary-font);
  color: var(--text-color);
  margin: 0;
}

/* Bouton "Modifier" */
.woocommerce-account .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title .edit {
  color: var(--secondary-color);
  font-size: 0.85rem;
  padding: 0.3rem 0.75rem;
  transition: background 0.3s ease;
  text-decoration: underline;
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title .edit:hover {
  color: var(--primary-color);
}

/* Adresse : ne pas mettre en italic */
.woocommerce-Address address {
  font-style: normal;
  line-height: 1.6;
  color: var(--text-color);
  border: none !important;
}

/* Conteneur général des adresses */
.woocommerce-account .woocommerce .woocommerce-MyAccount-content .woocommerce-columns.addresses {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Colonnes facturation et livraison */
.woocommerce-account .woocommerce .woocommerce-MyAccount-content .woocommerce-column {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  flex: 1 1 300px;
}

/* Titres (h2) */
.woocommerce-account .woocommerce .woocommerce-MyAccount-content .woocommerce-column__title {
  font-size: 1.5rem;
  font-family: var(--secondary-font);
  color: var(--text-color);
  background-color: var(--background-beige);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: center;
}

/* Adresse (pas en italic, bonne couleur) */
.woocommerce-account .woocommerce .woocommerce-MyAccount-content .woocommerce-column address {
  font-style: normal;
  line-height: 1.6;
  color: var(--text-color);
  font-size: 0.95rem;
  border: none !important;
}

/* Infos complémentaires (téléphone & email) */
.woocommerce-customer-details--phone,
.woocommerce-customer-details--email {
  margin-top: 0.5rem;
  color: var(--secondary-color);
  font-weight: 500;
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-content .wc-pdf-product-vouchers-order-item-voucher a {
    background: var(--background-beige);
  padding: 0.3rem 0.75rem;
  border-radius: var(--border-radius);
}

