.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
}

/* =========================
   LAYOUT GLOBAL
   ========================= */
.ple-account-layout {
  display: flex;
  gap: 50px;
  align-items: stretch;
}

/* Sidebar */
.ple-account-sidebar {
  width: 300px;
  background: #f4f5f7;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 100px;
}

.ple-account-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ple-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 14px;
  text-decoration: none;
  color: #6b7280;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.ple-nav-link span,
.ple-account-logout span {
  font-size: 20px;
}

.ple-nav-link.is-active {
  background: #fc7a22;
  color: #ffffff;
}

.ple-nav-link:hover:not(.is-active),
.ple-account-logout:hover {
  background: #fc7a22;
  color: #ffffff;
}

.ple-account-logout {
  margin-top: 18px;
}

/* Contenu droite */
.ple-account-main {
  flex: 1;
}

/* Header contenu */
.ple-account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.ple-account-header-left h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #111827;
}

.ple-account-header-left p {
  margin: 4px 0 0;
  font-size: 14px;
  color: #6b7280;
}

/* Cartes dashboard */
.ple-account-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ple-card {
  background: #ffffff;
  padding: 18px 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid #ffffff;
}

.ple-card:hover {
  border: 1px solid #fc7a22;
  transition: 0.4s ease;
}

.ple-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.ple-card-icon {
  padding: 13px;
  background: #fff3e7;
  margin-right: 12px;
  display: flex;
  justify-content: center;
}

.ple-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.ple-card-subtitle {
  margin: 0;
  font-size: 17px;
  color: #6b7280;
}

.ple-card-body {
  font-size: 17px;
  color: #4b5563;
}

.ple-card-body p {
  margin: 2px 0;
}

.ple-status-ok {
  color: #15803d;
  font-weight: 500;
}

/* Bouton principal */
.ple-primary-btn {
  margin-top: 12px;
  width: 100%;
  border: none;
  background: #fc7a22;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.18s ease, box-shadow 0.18s ease;
}

.ple-primary-btn span {
  margin-right: 6px;
}

.ple-primary-btn:hover {
  opacity: 0.9;
  box-shadow: 0 8px 20px rgba(252, 122, 34, 0.35);
  color: #ffffff;
}

/* Contenu Woo (tous les endpoints sauf dashboard) */
.ple-account-content {
  background: #ffffff;
  padding: 24px;
  border: 1px solid #e5e7eb;
  box-shadow: none;
}

/* =========================
   RESPONSIVE GLOBAL (> tablette)
   ========================= */
@media (max-width: 1024px) {
  .ple-account-layout {
    flex-direction: column;
    gap: 20px;
  }

  .ple-account-sidebar {
    position: static;
    top: auto;
    width: 100%;
    min-height: auto;
    padding: 0 0 10px;
    background: transparent;
  }

  .ple-account-nav {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 4px;
  }

  .ple-account-nav::-webkit-scrollbar {
    height: 4px;
  }

  .ple-account-nav::-webkit-scrollbar-thumb {
    background: #d1d5db;
  }

  .ple-nav-link,
  .ple-account-logout {
    white-space: nowrap;
    background: #f4f5f7;
  }

  .ple-nav-link.is-active {
    background: #fc7a22;
    color: #ffffff;
  }

  .ple-account-main {
    width: 100%;
    margin-top: 20px;
  }

  .ple-account-cards {
    grid-template-columns: 1fr;
  }
}

/* ================================
   PAGE COMMANDES (liste) – DESKTOP
   ================================ */

.ple-account-content table.woocommerce-MyAccount-orders {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 14px;
  margin: 0;
}

/* Reset thème */
.ple-account-content table.woocommerce-MyAccount-orders th,
.ple-account-content table.woocommerce-MyAccount-orders td {
  border: none !important;
  background: transparent;
}

/* En-tête */
.ple-account-content table.woocommerce-MyAccount-orders thead tr th {
  background: #f5f7fb !important;
  padding: 16px 24px;
  font-weight: 600;
  color: #111827;
  text-align: left;
}

/* Lignes desktop */
.ple-account-content table.woocommerce-MyAccount-orders tbody tr {
  transition: background-color 0.15s ease;
}

.ple-account-content table.woocommerce-MyAccount-orders tbody tr:nth-child(odd) td,
.ple-account-content table.woocommerce-MyAccount-orders tbody tr:nth-child(odd) th {
  background: #ffffff;
  vertical-align: middle;
}

.ple-account-content table.woocommerce-MyAccount-orders tbody tr:nth-child(even) td,
.ple-account-content table.woocommerce-MyAccount-orders tbody tr:nth-child(even) th {
  background: #fafbff;
  vertical-align: middle;
}

.ple-account-content table.woocommerce-MyAccount-orders tbody tr:hover td,
.ple-account-content table.woocommerce-MyAccount-orders tbody tr:hover th {
  background: #f5f7fb;
}

/* Cellules */
.ple-account-content table.woocommerce-MyAccount-orders tbody td,
.ple-account-content table.woocommerce-MyAccount-orders tbody th {
  padding: 16px 24px;
  color: #111827;
}

/* Numéro de commande */
.ple-account-content .woocommerce-orders-table__cell-order-number a {
  font-weight: 700;
  text-decoration: none;
  color: #111827;
}

.ple-account-content .woocommerce-orders-table__cell-order-number {
  text-align: left;
}

/* Total */
.ple-account-content .woocommerce-orders-table__cell-order-total {
  color: #4b5563;
}

/* Statut centré */
.ple-account-content td.woocommerce-orders-table__cell-order-status {
  text-align: center;
}

/* Badge statut (liste) */
.ple-status-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 20px 6px 32px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.ple-status-pill::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* couleurs statuts */
.ple-account-content tr.woocommerce-orders-table__row--status-completed .ple-status-pill {
  background: #d9fbe3;
  color: #15803d;
}

.ple-account-content tr.woocommerce-orders-table__row--status-processing .ple-status-pill {
  background: #e0ecff;
  color: #1d4ed8;
}

.ple-account-content tr.woocommerce-orders-table__row--status-on-hold .ple-status-pill {
  background: #fff7d6;
  color: #92400e;
}

.ple-account-content tr.woocommerce-orders-table__row--status-pending .ple-status-pill {
  background: #e0ecff;
  color: #1d4ed8;
}

.ple-account-content tr.woocommerce-orders-table__row--status-cancelled .ple-status-pill,
.ple-account-content tr.woocommerce-orders-table__row--status-refunded .ple-status-pill,
.ple-account-content tr.woocommerce-orders-table__row--status-failed .ple-status-pill {
  background: #ffe1e1;
  color: #b91c1c;
}

/* Actions – desktop : boutons empilés */
.ple-account-content .woocommerce-orders-table__cell-order-actions .button,
.ple-account-content .woocommerce-orders-table__cell-order-actions .button.view {
  background: #fc7a22;
  color: #ffffff;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
  text-decoration: none;
  border: none;
  box-shadow: none;
  display: block;
  /* empile les boutons */
  width: 100%;
  /* plein largeur de la cellule */
  text-align: center;
  margin: 0;
  /* reset */
}

/* espace uniquement entre Voir et Facture */
.ple-account-content .woocommerce-orders-table__cell-order-actions .button+.button {
  margin-top: 6px;
}

.ple-account-content .woocommerce-orders-table__cell-order-actions .button:hover {
  background: #ff8c35;
  color: #ffffff;
}

/* Pagination */
.ple-account-content .woocommerce-Pagination {
  margin-top: 16px;
  text-align: center;
}

.ple-account-content .woocommerce-Pagination .woocommerce-Button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border: 1px solid #e5e7eb;
  background: #fc7a22;
  color: #ffffff;
  font-size: 17px;
  text-decoration: none;
}

.ple-account-content .woocommerce-Pagination .woocommerce-Button:hover {
  border-color: #fc7a22;
  background: #fc7a22;
  color: #ffffff;
}

/* ===========================================
   LISTE COMMANDES – MODE CARTE (≤ 1024px)
   =========================================== */
@media (max-width: 1024px) {

  /* Cache l’en-tête */
  .ple-account-content table.woocommerce-MyAccount-orders thead,
  .ple-account-content table.woocommerce-MyAccount-orders thead tr,
  .ple-account-content table.woocommerce-MyAccount-orders thead th {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
  }

  .ple-account-content table.woocommerce-MyAccount-orders {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    /* plus d’espace entre les cartes */
  }

  .ple-account-content table.woocommerce-MyAccount-orders tbody {
    display: block;
  }

  /* Chaque commande = carte */
  .ple-account-content table.woocommerce-MyAccount-orders tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "num   date"
      "stat  total"
      "act   act";
    row-gap: 10px;
    /* plus d’espace entre lignes dans la carte */
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    padding: 16px 18px 14px;
    margin-bottom: 15px;
  }

  .ple-account-content table.woocommerce-MyAccount-orders tbody th,
  .ple-account-content table.woocommerce-MyAccount-orders tbody td {
    display: block;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
  }

  /* ---------- Colonne gauche : n° + statut ---------- */

  .ple-account-content .woocommerce-orders-table__cell-order-number {
    grid-area: num;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px;
    /* plus d’espace avec le statut */
    text-align: left;
  }

  .ple-account-content .woocommerce-orders-table__cell-order-number a {
    color: #111827;
    text-decoration: none;
  }

  .ple-account-content td.woocommerce-orders-table__cell-order-status {
    grid-area: stat;
    margin: 0;
    text-align: left;
  }

  .ple-account-content td.woocommerce-orders-table__cell-order-status .ple-status-pill {
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
  }

  .ple-account-content td.woocommerce-orders-table__cell-order-status .ple-status-pill::before {
    display: none;
  }

  /* ---------- Colonne droite : date + montant ---------- */

  .ple-account-content .woocommerce-orders-table__cell-order-date {
    grid-area: date;
    font-size: 13px;
    color: #6b7280;
    text-align: right !important;
    justify-self: end;
    /* force l’alignement à droite dans la grille */
    margin: 0 0 6px;
    /* plus d’espace avec le prix */
  }

  .ple-account-content .woocommerce-orders-table__cell-order-total {
    grid-area: total;
    text-align: right !important;
    justify-self: end;
    margin: 0;
    font-size: 0;
    /* masque “pour X articles” */
  }

  .ple-account-content .woocommerce-orders-table__cell-order-total .woocommerce-Price-amount {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
  }

  /* ---------- Bas de carte : boutons pleine largeur ---------- */

  .ple-account-content .woocommerce-orders-table__cell-order-actions {
    grid-area: act;
    margin-top: 12px;
  }

  .ple-account-content .woocommerce-orders-table__cell-order-actions .button,
  .ple-account-content .woocommerce-orders-table__cell-order-actions .button.view {
    display: block;
    width: 100%;
    text-align: center;
    border-radius: 0;
    margin: 0;
  }

  .ple-account-content .woocommerce-orders-table__cell-order-actions .button+.button {
    margin-top: 6px;
    /* Facture sous Voir */
  }
}

/* =========================
   PAGE DETAIL COMMANDE
   ========================= */

.ple-order-single {
  margin-top: 8px;
}

/* Lien retour */
.ple-order-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 17px;
  color: #fc7a22;
  text-decoration: none;
  margin-bottom: 16px;
}

.ple-order-back-link:hover {
  text-decoration: underline;
}

/* Carte entête */
.ple-order-header-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 18px 22px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ple-order-header-label {
  font-size: 17px;
  color: #6b7280;
  margin: 0 0 4px;
}

.ple-order-header-number {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #fc7a22;
}

.ple-order-header-right {
  text-align: right;
}

.ple-order-header-date {
  margin: 0 0 4px;
  font-size: 17px;
  color: #6b7280;
}

/* Pastilles statut détail */
.ple-status-pill--completed {
  background: #d9fbe3;
  color: #15803d;
}

.ple-status-pill--processing,
.ple-status-pill--pending {
  background: #e0ecff;
  color: #1d4ed8;
}

.ple-status-pill--on-hold {
  background: #fff7d6;
  color: #92400e;
}

.ple-status-pill--cancelled,
.ple-status-pill--refunded,
.ple-status-pill--failed {
  background: #ffe1e1;
  color: #b91c1c;
}

/* Carte articles commandés */
.ple-order-items-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  margin-bottom: 24px;
}

.ple-order-items-header {
  padding: 18px 22px;
  border-bottom: 1px solid #e5e7eb;
}

.ple-order-items-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.ple-order-items-table-wrapper {
  overflow-x: auto;
}

.ple-order-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ple-order-items-table thead tr {
  background: #f5f7fb;
}

.ple-order-items-table th {
  padding: 12px 22px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #6b7280;
  font-weight: 600;
}

.ple-order-items-table td {
  padding: 14px 22px;
  border-top: 1px solid #e5e7eb;
  vertical-align: middle;
}

.ple-order-item-product-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ple-order-item-thumb {
  width: 64px;
  height: 64px;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ple-order-item-thumb-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.ple-order-item-title {
  font-size: 17px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}

/* meta produit */
.ple-order-item-meta {
  font-size: 13px;
  color: #6b7280;
}

.ple-order-item-meta dl {
  margin: 0;
}

.ple-order-item-meta dt {
  display: inline;
  font-weight: 400;
}

.ple-order-item-meta dd {
  display: inline;
  margin: 0 6px 0 0;
}

/* quantité & prix */
.ple-order-item-qty {
  text-align: center;
  color: #4b5563;
}

.ple-order-item-price {
  text-align: right;
  font-weight: 600;
}

/* Grille bas de page */
.ple-order-bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ple-order-address-card,
.ple-order-summary-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 18px 22px;
}

.ple-order-address-card h3,
.ple-order-summary-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
  color: #111827;
}

.ple-order-address {
  font-size: 15px;
  color: #4b5563;
}

.ple-order-address p {
  margin: 2px 0;
}

.ple-order-address-extra {
  margin-top: 6px;
}

/* Résumé commande */
.ple-order-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin-bottom: 4px;
  color: #4b5563;
}

.ple-order-summary-divider {
  border-top: 1px solid #e5e7eb;
  margin: 10px 0;
}

.ple-order-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}

.ple-order-summary-total span:last-child {
  color: #fc7a22 !important;
}

/* Responsive détail commande (cartes) */
@media (max-width: 1024px) {
  .ple-order-bottom-grid {
    grid-template-columns: 1fr;
  }
}

/* Détail commande mobile */
@media (max-width: 768px) {

  .ple-account-content .woocommerce-Address-title .edit {
    right: 20px !important;
    bottom: 7px !important;
  }

  /* On garde un layout en ligne, pas en colonne */
  .ple-order-header-card {
    position: relative;
    display: block;
    padding: 18px 110px 18px 22px;
    /* marge à droite pour la pastille */
  }

  .ple-order-header-label,
  .ple-order-header-number,
  .ple-order-header-date {
    display: block;
    text-align: left;
  }

  .ple-order-header-label {
    margin-bottom: 2px;
  }

  .ple-order-header-number {
    margin-bottom: 2px;
  }

  .ple-order-header-date {
    margin-top: 0;
  }

  .ple-order-header-card .ple-status-pill {
    position: absolute;
    top: 16px;
    right: 22px;
    margin: 0;
  }

  /* Bloc de droite repoussé à droite */
  .ple-order-header-right {
    margin-left: auto;
    text-align: right;
    width: 125%;
  }


  /* Le pill reste juste sous la date, bien collé au coin droit */
  .ple-order-header-right .ple-status-pill {
    margin-top: 0;
    display: inline-flex;
  }

  .ple-order-items-table {
    border-collapse: separate;
    border-spacing: 0;
  }

  .ple-order-items-table thead {
    display: none;
  }

  .ple-order-items-table tbody tr {
    display: block;
    border-top: 1px solid #e5e7eb;
    padding: 12px 18px;
  }

  .ple-order-items-table tbody tr:first-child {
    border-top: none;
  }

  .ple-order-items-table td {
    display: block;
    padding: 0;
    border: 0;
  }

  .ple-order-item-product-inner {
    gap: 10px;
  }

  .ple-order-item-title {
    font-size: 15px;
  }

  .ple-order-item-meta {
    font-size: 13px;
  }

  .ple-order-item-qty {
    margin-top: 4px;
    text-align: left;
    font-size: 13px;
    color: #6b7280;
  }

  .ple-order-item-qty::before {
    content: "Qté : ";
    font-weight: 600;
  }

  .ple-order-item-price {
    margin-top: 4px;
    text-align: right;
    font-weight: 600;
    font-size: 15px;
  }

  .ple-order-bottom-grid {
    grid-template-columns: 1fr;
  }

  .ple-order-address-card,
  .ple-order-summary-card {
    padding: 16px 18px;
  }
}

/* =========================
   TÉLÉCHARGEMENTS
   ========================= */

.ple-account-content .woocommerce-order-downloads {
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.ple-account-content table.woocommerce-table--order-downloads {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 14px;
  margin: 0;
}

.ple-account-content table.woocommerce-table--order-downloads th,
.ple-account-content table.woocommerce-table--order-downloads td {
  border: none !important;
  background: transparent;
}

.ple-account-content table.woocommerce-table--order-downloads thead tr {
  background: #f5f7fb;
}

.ple-account-content table.woocommerce-table--order-downloads thead th {
  padding: 16px 24px;
  font-weight: 600;
  color: #111827;
  text-align: left;
}

.ple-account-content table.woocommerce-table--order-downloads thead th.download-file {
  text-align: left;
}

.ple-account-content table.woocommerce-table--order-downloads tbody tr:nth-child(odd) td {
  background: #ffffff;
  width: 70%;
}

.ple-account-content table.woocommerce-table--order-downloads tbody tr:nth-child(even) td {
  background: #fafbff;
}

.ple-account-content table.woocommerce-table--order-downloads tbody tr:hover td {
  background: #f5f7fb;
}

.ple-account-content table.woocommerce-table--order-downloads tbody td {
  padding: 16px 24px;
  color: #111827;
}

.ple-account-content table.woocommerce-table--order-downloads td.download-product a {
  font-weight: 500;
  text-decoration: none;
  color: #111827;
}

.ple-account-content table.woocommerce-table--order-downloads td.download-product a:hover {
  text-decoration: underline;
}

.ple-account-content table.woocommerce-table--order-downloads td.download-file {
  text-align: right !important;
}

.ple-account-content .woocommerce-MyAccount-downloads-file.button.alt {
  background: #fc7a22 !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 24px;
  text-transform: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: none;
  width: 100%;
}

.ple-account-content .woocommerce-MyAccount-downloads-file.button.alt::after {
  content: "⎙";
  font-size: 17px;
  line-height: 1;
}

.ple-account-content .woocommerce-MyAccount-downloads-file.button.alt:hover {
  background: #ff8c35 !important;
}

/* =========================
   ADRESSES
   ========================= */

.ple-account-content .woocommerce-Addresses.col2-set.addresses {
  display: grid !important;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 24px;
  margin-top: 24px;
}

.ple-account-content .woocommerce-Addresses .woocommerce-Address {
  margin: 0 !important;
  float: none !important;
  width: auto !important;
}

.ple-account-content .woocommerce-Address {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 24px 24px 64px;
  display: flex;
  flex-direction: column;
}

.ple-account-content .woocommerce-Address:hover {
  border: 1px solid #fc7a22;
  transition: 0.4s ease;
}

.ple-account-content .woocommerce-Address-title {
  margin: 0 0 12px;
}

.ple-account-content .woocommerce-Address-title h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #111827;
}

.ple-account-content .woocommerce-Address address {
  font-style: normal;
  margin: 0;
  font-size: 17px;
  color: #4b5563;
  line-height: 1.6;
}

.ple-account-content .woocommerce-Address-title .edit {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid #fc7a22;
  background: #ffffff;
  color: #fc7a22;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.ple-account-content .woocommerce-Address-title .edit:hover {
  background: #fc7a22;
  color: #ffffff;
  border-color: #fc7a22;
}

.ple-account-content>p {
  font-size: 14px;
  color: #6b7280;
}

@media (max-width: 900px) {
  .ple-account-content .woocommerce-Addresses.col2-set.addresses {
    grid-template-columns: 1fr;
  }
}

/* =========================
   DIVERS / FORMULAIRES
   ========================= */

.woocommerce-MyAccount-navigation ul li a {
  color: #222222;
}

.woocommerce-MyAccount-navigation ul li a:hover {
  color: #fc7a22;
}

.woocommerce form.register {
  text-align: left !important;
}

div.nsl-container.nsl-container-block .nsl-container-buttons {
  display: block !important;
}

div.nsl-container[data-align="left"] {
  padding-bottom: 20px !important;
}

span.nobr {
  color: #000000;
}

th.download-file {
  width: 30%;
  text-align: left !important;
}

th.download-product {
  width: 70%;
}

a.woocommerce-MyAccount-downloads-file.button.alt {
  width: 76%;
  justify-content: center;
}

table.woocommerce-MyAccount-paymentMethods.shop_table.shop_table_responsive.account-payment-methods-table {
  width: 100%;
}

th.woocommerce-PaymentMethod.woocommerce-PaymentMethod--method.payment-method-method span {
  display: flex;
  justify-content: flex-start;
}

th.woocommerce-PaymentMethod.woocommerce-PaymentMethod--expires.payment-method-expires span {
  display: flex;
  justify-content: flex-start;
}

td.woocommerce-PaymentMethod.woocommerce-PaymentMethod--actions.payment-method-actions {
  text-align: right !important;
  width: 30%;
}

table:not(:where([class*=tribe-events])) th {
  color: #000000;
  background: #f5f7fb;
}

.woocommerce-EditAccountForm fieldset {
  padding: 0;
}

.woocommerce-EditAccountForm fieldset legend {
  padding: 0;
}

/* Page Moyens de paiement : espacement */
.ple-ep-payment-methods {
  text-align: center;
}

.ple-ep-payment-methods .woocommerce-info {
  margin-bottom: 24px;
}

.ple-ep-payment-methods .woocommerce-info::before {
  display: none;
}

.ple-ep-payment-methods .button {
  margin-top: 0;
}

/* État vide : Mes commandes + Mes téléchargements
   -> même présentation que Moyens de paiement */
.ple-tab-orders .woocommerce-info,
.ple-tab-downloads .woocommerce-info {
  display: flex;
  flex-direction: column;
  /* texte au-dessus, bouton en dessous */
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
}

.ple-tab-orders .woocommerce-info::before,
.ple-tab-downloads .woocommerce-info::before {
  display: none;
}

/* Bouton centré, sans marge à gauche */
.ple-tab-orders .woocommerce-info .button,
.ple-tab-downloads .woocommerce-info .button {
  margin: 0;
}

.ple-tab-orders .woocommerce-info::before,
.ple-tab-downloads .woocommerce-info::before {
  display: none;
}



/* =======================================
   FIX DÉTAIL COMMANDE (table + boutons)
   ======================================= */

/* En-tête du tableau produits : gris clair, pas noir */
.ple-order-items-card .ple-order-items-table thead tr,
.ple-order-items-card .ple-order-items-table thead th {
  background: #f5f7fb !important;
  color: #111827 !important;
}

/* Alignement des titres de colonnes comme avant */
.ple-order-items-table th.ple-col-product {
  text-align: left;
}

.ple-order-items-table th.ple-col-qty {
  text-align: center;
}

.ple-order-items-table th.ple-col-total {
  text-align: right;
}

/* Bloc d’actions (Commander une nouvelle fois + Facture)
   remis en ligne, comme sur ta 2e capture */
.ple-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

/* Boutons de ce bloc (NE PAS toucher aux boutons de la liste de commandes) */
.ple-order-actions .button,
.ple-order-actions .woocommerce-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 0;
  border: none;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  width: auto;
  /* évite le plein écran */
}

/* Commander une nouvelle fois */
.ple-order-actions .order-again .button {
  background: #fc7a22;
  color: #ffffff;
}

.ple-order-actions .order-again .button:hover {
  background: #ff8c35;
}

/* Bouton Facture à droite, même style qu’avant */
.ple-order-actions .button.invoice,
.ple-order-actions .woocommerce-button.invoice {
  background: #fc7a22;
  border: 1px solid #e5e7eb;
  color: #ffffff;
  font-weight: 500;
}

.ple-order-actions .button.invoice:hover,
.ple-order-actions .woocommerce-button.invoice:hover {
  background: #ff8c35;
  color: #ffffff;
}

/* Responsive détail commande : scroll horizontal uniquement sur le tableau produits */
@media (max-width: 1024px) {
  .ple-order-items-table {
    min-width: 600px;
  }

  .ple-order-items-table-wrapper {
    overflow-x: auto;
  }
}

/* ===========================
   RÉCAP : moyen de paiement
   =========================== */

.ple-order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

/* libellé sur une seule ligne */
.ple-order-summary-row span:first-child {
  white-space: nowrap;
}

/* valeur alignée à droite comme avant */
.ple-order-summary-row span:last-child {
  text-align: right;
}


/* =========================================
   BLOC "Ajouter un message" – style carte
   ========================================= */

.ple-order-message {
  margin-top: 32px;
  padding: 20px 24px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.ple-order-message h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

/* zone de texte comme avant */
.ple-order-message textarea {
  width: 100%;
  min-height: 100px;
  border-radius: 0;
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 12px;
}

.ple-order-message textarea:focus {
  outline: none;
  border-color: #fc7a22;
}

/* bouton d’envoi : largeur auto, pas plein écran */
.ple-order-message .ple-order-message-btn,
.ple-order-message button,
.ple-order-message .button {
  width: auto;
  padding: 17px 47px;
  background: #fc7a22;
  color: #ffffff;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.ple-order-message .ple-order-message-btn:hover,
.ple-order-message button:hover,
.ple-order-message .button:hover {
  background: #ff8c35;
}

/* =========================================
   DÉTAIL COMMANDE – Articles commandés
   Empêcher le scroll horizontal + texte à la ligne
   ========================================= */

/* On laisse la carte prendre toute la largeur disponible,
   sans forcer de largeur mini énorme */
.ple-order-items-table-wrapper {
  overflow-x: visible;
  /* plus de scroll horizontal */
}

/* On annule les min-width définis plus haut (600 / 720 px) */
.ple-order-items-table {
  width: 100%;
  min-width: 0 !important;
  table-layout: auto;
}

/* Le nom du produit doit pouvoir revenir à la ligne */
.ple-order-item-title {
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
}

/* Sur mobile/tablette, on force aussi l'annulation des min-width globales */
@media (max-width: 1024px) {
  .ple-order-items-card .ple-order-items-table {
    min-width: 0 !important;
  }

  .ple-order-items-card .ple-order-items-table-wrapper {
    overflow-x: visible;
  }
}

/* Téléchargements - affichage mobile en cartes */
@media (max-width: 768px) {

  .ple-tab-downloads .woocommerce-order-downloads .shop_table {
    width: 100%;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: none;
  }

  .woocommerce #payment #place_order,
  .woocommerce-page #payment #place_order {
    font-size: 12px !important;
  }

  .ple-account-content {
    padding: 15px;
  }

  .ple-account-header-left h1 {
    font-size: 22px !important;
  }

  .ple-tab-downloads .woocommerce-order-downloads .shop_table thead {
    display: none;
  }

  .ple-tab-downloads .woocommerce-order-downloads .shop_table tbody,
  .ple-tab-downloads .woocommerce-order-downloads .shop_table tr,
  .ple-tab-downloads .woocommerce-order-downloads .shop_table td {
    display: block;
    width: 100%;
  }

  /* supprime le label "Produit / Téléchargement" Woo */
  .ple-tab-downloads .woocommerce-order-downloads .shop_table_responsive tr td::before {
    display: none;
    content: none;
  }

  /* carte principale */
  .ple-tab-downloads .woocommerce-order-downloads .shop_table tbody tr {
    display: flex;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    padding: 16px 18px 14px;
    margin-bottom: 15px;
    flex-direction: column;
  }

  /* on retire tout style résiduel des cellules */
  .ple-tab-downloads .woocommerce-order-downloads .shop_table td {
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
  }

  /* titre produit */
  .ple-tab-downloads .woocommerce-order-downloads td.download-product {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
  }

  .ple-tab-downloads .woocommerce-order-downloads td.download-product a {
    color: #111111;
    text-decoration: none;
  }

  .ple-tab-downloads .woocommerce-order-downloads td.download-product a:hover {
    text-decoration: underline;
  }

  /* bloc bouton */
  .ple-tab-downloads .woocommerce-order-downloads td.download-file {
    margin-top: 8px;
  }

  .ple-tab-downloads .woocommerce-order-downloads .woocommerce-MyAccount-downloads-file.button.alt {
    display: block;
    width: 100%;
    padding: 10px 16px;
    text-align: center;
    background: #fc7a22;
    color: #ffffff;
    border-radius: 0;
    border: 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    box-shadow: none;
  }

  .ple-tab-downloads .woocommerce-order-downloads .woocommerce-MyAccount-downloads-file.button.alt:hover {
    background: #e66d1f;
    color: #ffffff;
  }

  .ple-account-content table.woocommerce-table--order-downloads tbody tr:nth-child(odd) td {
    background: #ffffff;
    width: 100%;
    text-align: center !important;
  }

  .ple-account-content table.woocommerce-table--order-downloads tbody tr:hover td {
    background: none !important;
  }

  .ple-account-content table.woocommerce-table--order-downloads tbody tr:nth-child(even) td {
    background: none !important;
    text-align: center !important;
  }

  .ple-account-content .woocommerce-order-downloads {
    border: 0px solid transparent;
    background: #ffffff;
  }
}

/* Styles communs au bouton de déconnexion */
.ple-account-logout {
  display: inline-flex;
  align-items: center;
  justify-content: left;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  color: #6b7280;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

/* Par défaut : version desktop visible, mobile cachée */
.ple-account-logout--desktop {
  display: inline-flex;
}

.ple-account-logout--mobile {
  display: none;
  margin-top: 24px;
  /* espace au-dessus */
  width: 100%;
  justify-content: center;
}

/* En mobile / tablette (<= 1024px) : inverse */
@media (max-width: 1024px) {
  .ple-account-logout {
    display: none !important;
  }

  .ple-account-logout--mobile {
    display: inline-flex !important;
    background: #f4f5f7;
    color: #6b7280;
    font-size: 20px;
    font-family: "DM Sans", sans-serif;
  }
}

p.cart-empty.woocommerce-info {
  margin-bottom: 24px !important;
}