/*
 * Soda Palette Composer — Mon compte
 * v1.9.1 — Dashboard + responsive orders + account/order detail UX/UI
 */

.spc-account,
.spc-account * {
  box-sizing: border-box;
}

.spc-account {
  --spc-red: #C8102E;
  --spc-red-dark: #A90C25;
  --spc-red-soft: #fdecec;
  --spc-red-border: #f5c6c6;
  --spc-green: #1E8E3E;
  --spc-ink: #1A1A1A;
  --spc-muted: #6F747C;
  --spc-line: #E4E7EB;
  --spc-bg: #f6f8fc;
  --spc-white: #fff;
  width: calc(100% - 32px);
  margin: 34px auto 72px;
  color: var(--spc-ink);
  font-family: "Archivo" !important;
  font-size: 15px;
  line-height: 1.5;
}

/* ---------------- Dashboard shell ---------------- */

.spc-account--dashboard .spc-account__layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.spc-account__sidebar {
  min-width: 0;
}

.spc-account__profile-card {
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--spc-line);
  border-radius: 18px;
  background: var(--spc-white);
  box-shadow: 0 8px 28px rgba(25, 48, 84, .06);
}

.spc-account__profile-cover {
  height: 82px;
  background:
    radial-gradient(circle at 22% 25%, rgba(255,255,255,.32) 0 10%, transparent 11%),
    radial-gradient(circle at 72% 70%, rgba(255,255,255,.20) 0 15%, transparent 16%),
    linear-gradient(135deg, #C8102E 0%, #E0334F 55%, #A90C25 100%);
  position: relative;
}

.spc-account__profile-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, transparent 45%, rgba(255,255,255,.15) 46%, transparent 67%);
}

.spc-account__profile-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 18px 20px;
  text-align: center;
}

.spc-account__avatar {
  width: 78px;
  height: 78px;
  margin-top: -39px;
  padding: 4px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 7px 20px rgba(200, 16, 46, .16);
}

.spc-account__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.spc-account__profile-name {
  display: block !important;
  width: 100%;
  margin-top: 10px;
  color: var(--spc-ink);
  font-size: 17px;
  font-weight: 700;
}

.spc-account__profile-email {
  display: block !important;
  width: 100%;
  max-width: 100%;
  margin-top: 4px;
  overflow: hidden;
  color: var(--spc-muted);
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spc-account__nav {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  float: none !important;
}

.spc-account__nav-list {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--spc-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(25, 48, 84, .05);
}

.spc-account__nav-item {
  margin: 0;
  padding: 0;
}

.spc-account__nav-item a {
  display: flex !important;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  width: 100% !important;
  margin: 2px 0;
  padding: 9px 11px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #405067 !important;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.spc-account__nav-item a:hover {
  background: var(--spc-red-soft) !important;
  color: var(--spc-red) !important;
  transform: translateX(2px);
}

.spc-account__nav-item.is-active a {
  background: linear-gradient(135deg, #fdecec, #fef5f5) !important;
  color: var(--spc-red) !important;
}

.spc-account__nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--spc-red-soft);
  color: var(--spc-red);
}

.spc-account__nav-item.is-active .spc-account__nav-icon {
  background: var(--spc-red);
  color: #fff;
  box-shadow: 0 5px 13px rgba(200, 16, 46, .22);
}

.spc-account__nav-item--logout {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #eef1f5;
}

.spc-account__nav-item--logout .spc-account__nav-icon {
  background: #f7f7f8;
  color: #7d8796;
}

.spc-account__nav-icon svg,
.spc-account__stat-icon svg,
.spc-account__progress-icon svg,
.spc-account__order-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------- Main dashboard ---------------- */

.spc-account__content {
  /* Neutralise les dimensions/float imposés par WooCommerce et les thèmes.
   * Le contenu est un enfant direct de notre CSS Grid : il doit donc
   * toujours occuper la largeur de sa cellule, notamment sur mobile. */
  display: block !important;
  float: none !important;
  clear: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 15px;
}

.spc-account--dashboard .spc-account__layout > .spc-account__content {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.spc-account--dashboard .spc-account__layout > .spc-account__sidebar {
  min-width: 0;
  width: auto !important;
  max-width: none !important;
  float: none !important;
}

.spc-account__dashboard {
  min-width: 0;
}

.spc-account__hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  min-height: 230px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 84% 10%, rgba(255,255,255,.16) 0 11%, transparent 12%),
    radial-gradient(circle at 96% 88%, rgba(255,255,255,.14) 0 16%, transparent 17%),
    linear-gradient(125deg, #C8102E 0%, #D42440 55%, #A90C25 100%);
  box-shadow: 0 14px 35px rgba(168, 12, 37, .18);
}

.spc-account__hero::before {
  content: '';
  position: absolute;
  width: 390px;
  height: 390px;
  right: -170px;
  top: -230px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255,255,255,.035), 0 0 0 84px rgba(255,255,255,.025);
}

.spc-account__hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 30px 34px;
  color: #fff;
}

.spc-account__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.11);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.spc-account__hero h1 {
  margin: 0 0 8px !important;
  color: #fff !important;
  font-size: clamp(26px, 3vw, 34px) !important;
  line-height: 1.12 !important;
  font-weight: 750 !important;
  letter-spacing: -.025em;
}

.spc-account__hero p {
  max-width: 510px;
  margin: 0 0 20px;
  color: rgba(255,255,255,.87);
  font-size: 14px;
}

.spc-account__hero-button {
  /* Visual model inherited from the uniform account button rule above. */
}

.spc-account__hero-button:hover {
  transform: translateY(-1px);
}

.spc-account__hero-art {
  position: relative;
  align-self: stretch;
  min-height: 230px;
}

.spc-account__hero-art svg {
  position: absolute;
  right: 8px;
  bottom: 5px;
  width: min(100%, 285px);
  height: auto;
  filter: drop-shadow(0 15px 18px rgba(90, 10, 20, .22));
}

.spc-account__hero-orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
}

.spc-account__hero-orb--one {
  width: 130px;
  height: 130px;
  right: 120px;
  top: 25px;
}

.spc-account__hero-orb--two {
  width: 78px;
  height: 78px;
  right: 20px;
  bottom: 35px;
}

.spc-account__art-bottle {
  stroke: rgba(255,255,255,.82);
  stroke-width: 3;
}

.spc-account__art-bottle--red { fill: rgba(255,107,107,.95); }
.spc-account__art-bottle--dark { fill: rgba(19,28,43,.92); }
.spc-account__art-bottle--light { fill: rgba(255,255,255,.35); }
.spc-account__art-line { fill: none; stroke: rgba(255,255,255,.75); stroke-width: 3; stroke-linecap: round; }
.spc-account__art-spark { fill: rgba(255,255,255,.9); }
.spc-account__art-check { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }

.spc-account__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.spc-account__stat-card {
  position: relative;
  min-height: 122px;
  padding: 17px 18px;
  overflow: hidden;
  border: 1px solid var(--spc-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(25, 48, 84, .05);
}

.spc-account__stat-card::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  right: -30px;
  bottom: -30px;
  border: 2px solid var(--spc-red-soft);
  border-radius: 50%;
}

.spc-account__stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 9px;
  border-radius: 10px;
  background: var(--spc-red-soft);
  color: var(--spc-red);
}

.spc-account__stat-icon--success {
  background: #e9f8ef;
  color: var(--spc-green);
}

.spc-account__stat-label {
  display: block;
  margin-bottom: 1px;
  color: var(--spc-muted);
  font-size: 12px;
  font-weight: 600;
}

.spc-account__stat-card > strong {
  display: block;
  color: var(--spc-ink);
  font-size: 23px;
  line-height: 1.2;
  font-weight: 750;
}

.spc-account__stat-card .woocommerce-Price-amount {
  font-size: inherit;
  font-weight: inherit;
}

.spc-account__dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .9fr);
  gap: 18px;
  margin-top: 18px;
}

.spc-account__panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--spc-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(25, 48, 84, .045);
}

.spc-account__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.spc-account__panel-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--spc-red);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.spc-account__panel h2 {
  margin: 0 !important;
  color: var(--spc-ink) !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
  font-weight: 750 !important;
}

.spc-account__panel-head > a {
  flex: 0 0 auto;
  color: var(--spc-red) !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
}

.spc-account__panel-head > a:hover { text-decoration: underline !important; }

.spc-account__orders-list {
  display: grid;
  gap: 8px;
}

.spc-account__order-row {
  display: grid;
  grid-template-columns: 38px minmax(120px, 1.4fr) minmax(88px, .7fr) auto 20px;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 8px 10px;
  border: 1px solid #edf0f4;
  border-radius: 11px;
  background: #fff;
  color: inherit !important;
  text-decoration: none !important;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.spc-account__order-row:hover {
  border-color: var(--spc-red-border);
  background: #fffafa;
  transform: translateY(-1px);
}

.spc-account__order-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--spc-red-soft);
  color: var(--spc-red);
}

.spc-account__order-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.spc-account__order-main strong {
  overflow: hidden;
  color: var(--spc-ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spc-account__order-main small {
  color: #8993a1;
  font-size: 10px;
}

.spc-account__order-status {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f2f5f8;
  color: #657080;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.spc-account__order-status--completed { background: #e9f8ef; color: #22824a; }
.spc-account__order-status--processing { background: #eaf5ff; color: #1471c9; }
.spc-account__order-status--pending,
.spc-account__order-status--on-hold { background: #fff6df; color: #9a6a00; }
.spc-account__order-status--cancelled,
.spc-account__order-status--failed,
.spc-account__order-status--refunded { background: #fff0f1; color: #b62831; }

/* Statuts de devis (voir SPC_Quote_Request) */
.spc-account__order-status--quote-request,
.spc-account__order-status--devis-preparation { background: #fdecec; color: #7a1414; }
.spc-account__order-status--devis-envoye { background: #fff4e0; color: #8a5a00; }
.spc-account__order-status--devis-accepte { background: #eaf7ee; color: #1e7a3d; }
.spc-account__order-status--devis-refuse,
.spc-account__order-status--devis-expire { background: #f1f1f1; color: #55595f; }

/* Statuts de commande propres à Sweet & Soda (voir SPC_Order_Statuses) */
.spc-account__order-status--paiement-a-verif { background: #fff4e0; color: #8a5a00; }
.spc-account__order-status--payee-validee,
.spc-account__order-status--livree { background: #eaf7ee; color: #1e7a3d; }
.spc-account__order-status--en-preparation { background: #e8f0fe; color: #17427a; }
.spc-account__order-status--expediee { background: #ede7fb; color: #4a2d8f; }

.spc-account__order-total {
  justify-self: end;
  color: var(--spc-ink);
  font-size: 12px;
  white-space: nowrap;
}

.spc-account__order-total .woocommerce-Price-amount { font-weight: 750; }

.spc-account__order-arrow {
  color: #9aa4b1;
  font-size: 18px;
  line-height: 1;
}

.spc-account__empty-state {
  padding: 22px 12px 10px;
  text-align: center;
}

.spc-account__empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--spc-red-soft);
  color: var(--spc-red);
}

.spc-account__empty-state h3 {
  margin: 0 0 4px !important;
  color: var(--spc-ink) !important;
  font-size: 15px !important;
}

.spc-account__empty-state p {
  margin: 0 0 12px;
  color: var(--spc-muted);
  font-size: 12px;
}

.spc-account__empty-state a {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--spc-red);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
}

.spc-account__progress-list {
  display: grid;
  gap: 15px;
}

.spc-account__progress-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spc-account__progress-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--spc-red-soft);
  color: var(--spc-red);
}

.spc-account__progress-content {
  flex: 1;
  min-width: 0;
}

.spc-account__progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.spc-account__progress-top strong {
  overflow: hidden;
  color: #4b596c;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spc-account__progress-top b {
  color: var(--spc-ink);
  font-size: 10px;
}

.spc-account__progress-track {
  display: block;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f5;
}

.spc-account__progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--spc-red), #E0334F);
}

/* ---------------- Native WooCommerce content ---------------- */

.spc-account__content > .woocommerce-notices-wrapper,
.spc-account__content > .woocommerce-info,
.spc-account__content > .woocommerce-message,
.spc-account__content > .woocommerce-error {
  margin-top: 0;
}

.spc-account__content:not(:has(.spc-account__dashboard)) {
  padding: 26px 12px;
  border: 1px solid var(--spc-line);
  border-radius: 16px;
  background: #fff;
}

.spc-account__content table.shop_table,
.spc-account__content table.woocommerce-orders-table,
.spc-account__content table.woocommerce-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--spc-line);
  border-radius: 12px;
}

.spc-account__content table th,
.spc-account__content table td {
  padding: 12px 10px;
  border-bottom: 1px solid #eef1f5;
  text-align: left;
  font-size: 13px;
}

.spc-account__content table th {
  background: #f8fafc;
  color: #536074;
  font-weight: 700;
}

.spc-account__content table tr:last-child td { border-bottom: 0; }

/* Uniform Sweet & Soda account button model.
 * Applies to WooCommerce buttons and to the account-specific action links
 * (hero + pagination) so every secondary account action uses one visual model. */
.spc-account__content .woocommerce-Button,
.spc-account__content .woocommerce-button,
.spc-account__content .button,
.spc-account__hero-button,
.spc-account__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  max-width: 155px;
  padding: 6px 12px 8px !important;
  border: 1px solid var(--spc-red-border) !important;
  border-radius: 8px !important;
  background: var(--spc-red-soft) !important;
  color: var(--spc-red) !important;
  font-family: "Archivo" !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 600 !important;
  text-align: center;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.spc-account__content .woocommerce-Button:hover,
.spc-account__content .woocommerce-button:hover,
.spc-account__content .button:hover,
.spc-account__hero-button:hover,
.spc-account__pagination-link:hover {
  border-color: #eeb3b3 !important;
  background: #fbdde0 !important;
  color: var(--spc-red-dark) !important;
  text-decoration: none !important;
}

.spc-account__content .woocommerce-form-row input.input-text,
.spc-account__content .woocommerce-Input,
.spc-account__content input.input-text,
.spc-account__content select,
.spc-account__content textarea {
  width: 100% !important;
  min-height: 42px;
  padding: 8px 11px !important;
  border: 1px solid #d9e0e8 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #253248;
  font-size: 13px !important;
}

.spc-account__content fieldset {
  padding: 18px;
  border: 1px solid var(--spc-line);
  border-radius: 12px;
}

.spc-account__content h2,
.spc-account__content h3 {
  color: var(--spc-ink);
}

/* ---------------- Auth ---------------- */

.spc-account--auth {
  width: min(100% - 32px, 540px);
  margin: 0 auto !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spc-account--auth .spc-account__header {
  display: none;
}

.spc-account--auth .spc-account__auth-single {
  width: 100%;
  max-width: 540px;
  margin: 0 auto !important;
  padding: 28px 25px;
  border: 1px solid #e6ebf2 !important;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(23, 36, 58, .07) !important;
}

.spc-account__auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 22px;
}

.spc-account__auth-brand .custom-logo-link {
  display: block;
}

.spc-account__auth-brand img.custom-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: 100%;
}

.spc-account__auth-brand-name {
  color: var(--spc-ink);
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.4px;
}

.spc-account__auth-brand-name span { color: var(--spc-red); }

.spc-account__auth-title {
  margin: 0 0 12px !important;
  color: var(--spc-ink) !important;
  font-size: 18px !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
  text-align: center !important;
}

.spc-account__auth-description {
  margin: 0 0 22px;
  color: var(--spc-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.spc-account__auth-single .spc-account__form,
.spc-account__auth-single .woocommerce-form-login,
.spc-account__auth-single .woocommerce-form-register {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.spc-account__tab-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}

.spc-account__tabs {
  display: flex;
  gap: 3px;
  margin: 0 0 24px;
  padding: 4px;
  border-radius: 10px;
  background: #f3f5f8;
}

.spc-account__tab {
  flex: 1 1 0;
  padding: 15px 12px;
  border-radius: 8px;
  color: #6b7585;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.spc-account__auth-single:has(#spc_auth_tab_login:checked) .spc-account__tabs label[for="spc_auth_tab_login"],
.spc-account__auth-single:has(#spc_auth_tab_register:checked) .spc-account__tabs label[for="spc_auth_tab_register"] {
  background: #fff;
  color: var(--spc-red);
  box-shadow: 0 2px 7px rgba(23, 36, 58, .10);
}

.spc-account__auth-single:has(#spc_auth_tab_login:focus-visible) .spc-account__tabs label[for="spc_auth_tab_login"],
.spc-account__auth-single:has(#spc_auth_tab_register:focus-visible) .spc-account__tabs label[for="spc_auth_tab_register"] {
  outline: 2px solid var(--spc-red);
  outline-offset: 2px;
}

.spc-account__panels .spc-account__panel { display: none; }
.spc-account__panels .spc-account__panel--login { display: block; }
.spc-account__panel--standalone {
  display: block;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.spc-account__auth-single:has(#spc_auth_tab_register:checked) .spc-account__panels .spc-account__panel--login { display: none; }
.spc-account__auth-single:has(#spc_auth_tab_register:checked) .spc-account__panels .spc-account__panel--register { display: block; }

/* Le panneau connexion/inscription partage son nom de classe avec les cartes
 * du tableau de bord (bordure incluse) — on retire uniquement la bordure ici,
 * sans toucher au style des cartes du tableau de bord. */
.spc-account__panels .spc-account__panel { border: 0; box-shadow: none; padding: 0; }

.spc-account__field { margin: 0 0 15px; }

.spc-account__field-row {
  display: flex;
  gap: 14px;
  margin: 0 0 15px;
}

.spc-account__field-row .spc-account__field {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

@media (max-width: 480px) {
  .spc-account__field-row {
    flex-direction: column;
    gap: 0;
  }

  .spc-account__field-row .spc-account__field:not(:last-child) {
    margin-bottom: 15px;
  }
}
.spc-account__field label {
  display: block;
  margin-bottom: 7px;
  color: #34445b;
  font-size: 12px;
  font-weight: 700;
}
.spc-account__field .required { color: var(--spc-red); }

.spc-account__input {
  width: 100% !important;
  min-height: 46px;
  padding: 10px 13px !important;
  border: 1px solid #d9e0e8 !important;
  border-radius: 9px !important;
  color: #253248;
  font-size: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.spc-account__input:focus {
  border-color: var(--spc-red) !important;
  box-shadow: 0 0 0 3px rgba(20, 123, 234, .10) !important;
  outline: none !important;
}

.spc-account__field--row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 5px;
}

.spc-account__remember {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  color: #596579;
  font-size: 12px !important;
  line-height: 1;
  cursor: pointer;
}

.spc-account__remember input {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin: 0;
}

.spc-account__remember span { line-height: 1; }

.spc-account__submit {
  display: flex !important;
  width: 100% !important;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: var(--spc-red) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(229, 9, 20, .14) !important;
}

.spc-account__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(229, 9, 20, .18) !important;
}

.spc-account__lost { margin: 14px 0 0; text-align: center; }
.spc-account__lost a { color: var(--spc-ink); text-decoration: none; }
.spc-account__hint a { color: var(--spc-red); text-decoration: none; }
.spc-account__lost a:hover,
.spc-account__hint a:hover { text-decoration: underline; }
.spc-account__hint { margin: 0 0 15px; color: var(--spc-muted); font-size: 12px; line-height: 1.5; }
.spc-account__hint--legal { padding-top: 14px; border-top: 1px solid #eef0f2; }

/* Le dernier élément du formulaire (bouton ou lien mot de passe perdu selon
 * l'onglet) ne doit ajouter aucune marge basse : seul le padding de la carte
 * doit créer l'espace, sinon le bas paraît plus grand que le haut. */
.spc-account__form > *:last-child { margin-bottom: 0 !important; }

.spc-account--auth .woocommerce-privacy-policy-text {
  margin: 14px 0 0 !important;
  padding-top: 14px;
  border-top: 1px solid #eef0f2;
  color: var(--spc-muted);
  font-size: 11px !important;
  line-height: 1.55;
}

.spc-account--auth .woocommerce-privacy-policy-text a { color: var(--spc-red); }


/* Auth refinement v0.12.6: sur l'onglet "S'inscrire", le titre fait doublon
 * avec le libellé de l'onglet lui-même — on le masque uniquement là, pas
 * sur les pages sans onglets (mot de passe perdu, nouveau mot de passe). */
.spc-account__panel--register .spc-account__auth-title,
.spc-account__panel--register .spc-account__auth-description {
  display: none !important;
}

.spc-account--auth .spc-account__auth-brand {
  margin-bottom: 40px;
}

/* ---------------- Responsive ---------------- */

@media (min-width: 761px) and (max-width: 980px) {
  .spc-account--dashboard .spc-account__layout > .spc-account__content {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 980px) {
  .spc-account--dashboard .spc-account__layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 18px;
  }

  .spc-account__hero { grid-template-columns: minmax(0, 1fr) 210px; }
  .spc-account__hero-art svg { right: -15px; width: 245px; }
  .spc-account__dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .spc-account { width: min(100% - 24px, 600px); margin-top: 22px; }
  .spc-account--auth { width: min(100% - 24px, 540px); }

  .spc-account--dashboard .spc-account__layout { grid-template-columns: minmax(0, 1fr); }
  .spc-account--dashboard .spc-account__layout > .spc-account__content { grid-column: 1; grid-row: auto; width: 100% !important; }
  .spc-account--dashboard .spc-account__layout > .spc-account__sidebar { grid-column: 1; width: 100% !important; }

  .spc-account__profile-card { margin-bottom: 10px; }
  .spc-account__profile-cover { height: 68px; }
  .spc-account__profile-body { padding-bottom: 16px; }

  .spc-account__nav-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
  }

  .spc-account__nav-item--logout { grid-column: 1 / -1; margin-top: 3px; }

  .spc-account__hero { grid-template-columns: 1fr; min-height: 0; }
  .spc-account__hero-copy { padding: 24px 22px 18px; }
  .spc-account__hero-art { display: none; }

  .spc-account__stats { grid-template-columns: 1fr; }
  .spc-account__stat-card { min-height: 92px; }

  .spc-account__order-row {
    grid-template-columns: 36px minmax(0, 1fr) auto 18px;
  }
  .spc-account__order-status { grid-column: 2; justify-self: start; margin-top: -4px; }
  .spc-account__order-total { grid-column: 3; grid-row: 1 / span 2; }
  .spc-account__order-arrow { grid-column: 4; grid-row: 1 / span 2; }

  .spc-account__auth-single { padding: 24px 25px; }
  .spc-account__tabs { margin: 0 0 20px; }
}

@media (max-width: 460px) {
  .spc-account { width: calc(100% - 20px); max-width: none; }
  .spc-account--dashboard .spc-account__layout,
  .spc-account--dashboard .spc-account__layout > .spc-account__content,
  .spc-account--dashboard .spc-account__layout > .spc-account__sidebar { width: 100% !important; max-width: none !important; }
  .spc-account__nav-list { grid-template-columns: 1fr; }
  .spc-account__nav-item--logout { grid-column: auto; }
  .spc-account__panel { padding: 15px; }
  .spc-account__hero-copy { padding: 22px 18px; }
  .spc-account__hero h1 { font-size: 25px !important; }
  .spc-account__order-row { grid-template-columns: 34px minmax(0, 1fr) 18px; }
  .spc-account__order-total { display: none; }
  .spc-account__order-status { grid-column: 2; }
}

/* v1.6.0 — Commandes récentes : tableau desktop + cartes mobile. */
.spc-account__orders-table {
  width: 100%;
  min-width: 0;
}

.spc-account__orders-head,
.spc-account__order-row {
  display: grid;
  grid-template-columns: 38px minmax(140px, 1.15fr) minmax(105px, .8fr) minmax(92px, .7fr) minmax(100px, .72fr) 20px;
  align-items: center;
  column-gap: 14px;
}

.spc-account__orders-head {
  min-height: 44px;
  padding: 0 4px;
  border-bottom: 1px solid #e8edf3;
  color: #8792a4;
  font-size: 12px;
  font-weight: 700;
}

.spc-account__orders-head span:nth-child(1) { grid-column: 1 / 3; }
.spc-account__orders-head span:nth-child(2) { grid-column: 3; }
.spc-account__orders-head span:nth-child(3) { grid-column: 4; }
.spc-account__orders-head span:nth-child(4) { grid-column: 5; }
.spc-account__orders-head span:nth-child(5) { grid-column: 6; display: none; }

.spc-account__orders-list {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

.spc-account__orders-list .spc-account__order-row {
  min-height: 92px;
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid #e8edf3;
  border-radius: 0;
  background: transparent;
  color: inherit !important;
  text-decoration: none !important;
  transition: background .15s ease;
}

.spc-account__orders-list .spc-account__order-row:last-child { border-bottom: 0; }
.spc-account__orders-list .spc-account__order-row:hover { background: #fbfdff; }

.spc-account__order-row .spc-account__order-icon { grid-column: 1; }
.spc-account__order-row .spc-account__order-main { grid-column: 2; }
.spc-account__order-date {
  grid-column: 3;
  color: #8993a1;
  font-size: 11px;
}
.spc-account__order-row .spc-account__order-status { grid-column: 4; }
.spc-account__order-row .spc-account__order-total { grid-column: 5; }
.spc-account__order-row .spc-account__order-arrow { grid-column: 6; }

@media (max-width: 980px) and (min-width: 761px) {
  .spc-account__orders-head,
  .spc-account__order-row {
    grid-template-columns: 38px minmax(120px, 1.1fr) minmax(100px, .8fr) minmax(88px, .68fr) minmax(90px, .68fr) 18px;
    column-gap: 9px;
  }
}

@media (max-width: 760px) {
  .spc-account__orders-head { display: none; }

  .spc-account__orders-list {
    display: grid;
    gap: 12px;
  }

  .spc-account__orders-list .spc-account__order-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto 20px;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 9px;
    min-height: 0;
    padding: 14px;
    border: 1px solid var(--spc-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(25, 48, 84, .035);
  }

  .spc-account__orders-list .spc-account__order-row:last-child { border-bottom: 1px solid var(--spc-line); }
  .spc-account__orders-list .spc-account__order-row:hover { background: #fff; transform: translateY(-1px); }

  .spc-account__order-row .spc-account__order-icon {
    grid-column: 1;
    grid-row: 1;
    width: 40px;
    height: 40px;
  }

  .spc-account__order-row .spc-account__order-main {
    grid-column: 2 / 4;
    grid-row: 1;
    align-self: center;
  }

  .spc-account__order-date { display: none; }

  .spc-account__order-row .spc-account__order-status {
    grid-column: 1 / 3;
    grid-row: 2;
    justify-self: start;
    margin: 0;
  }

  .spc-account__order-row .spc-account__order-total {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    align-self: center;
    font-size: 12px;
  }

  .spc-account__order-row .spc-account__order-arrow {
    grid-column: 4;
    grid-row: 2;
    align-self: center;
    justify-self: end;
    font-size: 17px;
  }
}

@media (max-width: 460px) {
  .spc-account__orders-list .spc-account__order-row {
    grid-template-columns: 38px minmax(0, 1fr) auto 18px;
    padding: 13px;
  }

  .spc-account__order-row .spc-account__order-icon { width: 38px; height: 38px; }
  .spc-account__order-row .spc-account__order-total { display: block; }
}

/* v1.7.0 — Commandes récentes : alignement fidèle au modèle responsive.
 * Desktop/tablette : tableau à lignes séparées dans un seul panneau.
 * Mobile : cartes compactes, sans débordement ni hauteur artificielle.
 */

@media (min-width: 761px) {
  .spc-account__orders-table {
    overflow: hidden;
  }

  .spc-account__orders-head {
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) minmax(92px, .72fr) minmax(105px, .78fr) 20px !important;
    column-gap: 14px !important;
    min-height: 48px;
    padding: 0 4px !important;
  }

  .spc-account__orders-head span:nth-child(1) {
    grid-column: 1 !important;
  }

  .spc-account__orders-head span:nth-child(2) {
    grid-column: 2 !important;
  }

  .spc-account__orders-head span:nth-child(3) {
    grid-column: 3 !important;
  }

  .spc-account__orders-head span:nth-child(4) {
    grid-column: 4 !important;
  }

  .spc-account__orders-head span:nth-child(5) {
    display: block !important;
    grid-column: 5 !important;
  }

  .spc-account__orders-list .spc-account__order-row {
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) minmax(92px, .72fr) minmax(105px, .78fr) 20px !important;
    column-gap: 14px !important;
    align-items: center !important;
    min-height: 0 !important;
    padding: 10px 4px !important;
    border: 0 !important;
    border-bottom: 1px solid #e8edf3 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .spc-account__orders-list .spc-account__order-row:last-child {
    border-bottom: 0 !important;
  }

  .spc-account__order-row .spc-account__order-icon {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 46px !important;
    height: 46px !important;
    justify-self: start;
  }

  /* Le numéro de commande est réservé à la version mobile. */
  .spc-account__order-row .spc-account__order-main {
    display: none !important;
  }

  .spc-account__order-date {
    display: block !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    color: #8993a1 !important;
    font-size: 12px !important;
    white-space: nowrap;
  }

  .spc-account__order-row .spc-account__order-status {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    margin: 0 !important;
  }

  .spc-account__order-row .spc-account__order-total {
    grid-column: 4 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    font-size: 14px !important;
  }

  .spc-account__order-row .spc-account__order-arrow {
    grid-column: 5 !important;
    grid-row: 1 !important;
    justify-self: end !important;
  }
}

@media (max-width: 760px) {
  .spc-account__orders-table {
    width: 100% !important;
  }

  .spc-account__orders-head {
    display: none !important;
  }

  .spc-account__orders-list {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    width: 100% !important;
  }

  .spc-account__orders-list .spc-account__order-row,
  .spc-account__orders-list .spc-account__order-row:last-child {
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) auto 18px !important;
    grid-template-rows: auto auto !important;
    column-gap: 10px !important;
    row-gap: 11px !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 10px 16px !important;
    border: 1px solid var(--spc-line) !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 4px 14px rgba(25, 48, 84, .035) !important;
    transform: none !important;
  }

  .spc-account__order-row .spc-account__order-icon {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 40px !important;
    height: 40px !important;
  }

  .spc-account__order-row .spc-account__order-main {
    display: flex !important;
    grid-column: 2 / 4 !important;
    grid-row: 1 !important;
    align-self: center !important;
    min-width: 0 !important;
  }

  .spc-account__order-main strong {
    font-size: 12px !important;
  }

  .spc-account__order-main small {
    margin-top: 3px;
    font-size: 10px !important;
  }

  .spc-account__order-date {
    display: none !important;
  }

  .spc-account__order-row .spc-account__order-status {
    grid-column: 1 / 3 !important;
    grid-row: 2 !important;
    justify-self: start !important;
    margin: 0 !important;
  }

  .spc-account__order-row .spc-account__order-total {
    display: block !important;
    grid-column: 3 !important;
    grid-row: 2 !important;
    justify-self: end !important;
    align-self: center !important;
    font-size: 12px !important;
  }

  .spc-account__order-row .spc-account__order-arrow {
    grid-column: 4 !important;
    grid-row: 2 !important;
    justify-self: end !important;
    align-self: center !important;
    font-size: 17px !important;
  }
}

@media (max-width: 460px) {
  .spc-account__orders-list {
    gap: 12px !important;
  }

  .spc-account__orders-list .spc-account__order-row,
  .spc-account__orders-list .spc-account__order-row:last-child {
    grid-template-columns: 38px minmax(0, 1fr) auto 18px !important;
    min-height: 0 !important;
    padding: 10px 14px !important;
  }

  .spc-account__order-row .spc-account__order-icon {
    width: 38px !important;
    height: 38px !important;
  }
}

/* v1.7.2 — le correctif « sans marge interne verticale » qui vivait ici en
 * surcouche a été replié directement dans les déclarations ci-dessus
 * (min-height: 0 / padding: 0 16px et 0 14px), pour éviter d'empiler une
 * énième couche de !important sur les mêmes propriétés.
 */


/* ---------------- Page "Commandes" (liste complète) ---------------- */
/* Réutilise .spc-account__orders-table/.order-row du widget "Commandes
 * récentes" — seuls deux ajouts sont propres à cette page complète :
 * la pagination, et les lignes à actions multiples (Payer/Annuler en plus
 * de Voir), la flèche simple ne suffisant alors plus. */

.spc-account__order-row--multi {
  grid-template-columns: 38px minmax(0, 1fr) minmax(92px, .72fr) minmax(90px, .68fr) auto !important;
}

.spc-account__order-actions {
  display: flex;
  grid-column: 5;
  align-items: center;
  justify-self: end;
  gap: 6px;
}

.spc-account__order-action {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--spc-red-soft);
  color: var(--spc-red) !important;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none !important;
}

.spc-account__order-action:hover { background: #dcedfd; }

.spc-account__order-action--accept {
  background: #eaf7ee;
  color: var(--spc-green) !important;
}

.spc-account__order-action--accept:hover {
  background: #d7f0dd;
}

.spc-account__order-action--refuse {
  background: #f2f3f5;
  color: #55595f !important;
}

.spc-account__order-action--refuse:hover {
  background: #e6e8eb;
}

.spc-account__orders-pagination {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.spc-account__pagination-link {
  /* Visual model inherited from the uniform account button rule above. */
}

.spc-account__pagination-link:hover {
  transform: translateY(-1px);
}

.spc-account__pagination-link--next { margin-left: auto; }

@media (max-width: 760px) {
  .spc-account__order-row--multi {
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto auto !important;
  }

  .spc-account__order-row--multi .spc-account__order-status {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .spc-account__order-row--multi .spc-account__order-total {
    grid-column: 3;
    grid-row: 2;
  }

  .spc-account__order-row--multi .spc-account__order-actions {
    grid-column: 1 / 4;
    grid-row: 3;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 2px;
  }
}


/* ========================================================================== 
 * PAGE « DÉTAIL DE LA COMMANDE » — UX/UI
 * --------------------------------------------------------------------------
 * Habillage visuel uniquement du markup natif WooCommerce.
 * Aucune donnée, logique de commande ou action WooCommerce n'est modifiée.
 * ========================================================================== */

.spc-account__content > p.order-info {
  margin: 0 0 18px !important;
  padding: 12px 14px;
  border: 1px solid #e4edf7;
  border-radius: 11px;
  background: #f7fbff;
  color: #5e7088;
  font-size: 13px;
  line-height: 1.55;
}

.spc-account__content > p.order-info mark.order-number,
.spc-account__content > p.order-info mark.order-date {
  color: var(--spc-ink);
  font-weight: 750;
}

.spc-account__content > p.order-info mark.order-status {
  margin-left: 4px;
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--spc-red-soft);
  color: var(--spc-red-dark);
  font-size: 11px;
  font-weight: 750;
  vertical-align: middle;
}

.spc-account__content .woocommerce-order-details {
  margin: 0 0 28px;
}

.spc-account__content .woocommerce-order-details__title {
  margin: 0 0 12px !important;
  color: var(--spc-ink) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  letter-spacing: normal;
  line-height: 1.3 !important;
}

.spc-account__content table.woocommerce-table--order-details {
  width: 100%;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid var(--spc-line) !important;
  border-radius: 15px;
  border-spacing: 0;
  background: #fff;
  box-shadow: 0 7px 24px rgba(25, 48, 84, .035);
}

.spc-account__content table.woocommerce-table--order-details thead th {
  padding: 12px 15px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--spc-line) !important;
  background: #f7f9fc !important;
  color: #65758b !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  letter-spacing: .01em;
  text-transform: none;
}

.spc-account__content table.woocommerce-table--order-details thead th:last-child {
  text-align: right;
}

.spc-account__content table.woocommerce-table--order-details tbody td {
  padding: 14px 15px !important;
  border: 0 !important;
  border-bottom: 1px solid #edf1f5 !important;
  background: #fff !important;
  color: var(--spc-ink);
  font-size: 13px;
  vertical-align: middle;
}

.spc-account__content table.woocommerce-table--order-details tbody tr:last-child td {
  border-bottom: 0 !important;
}

.spc-account__content table.woocommerce-table--order-details tbody td.product-name {
  font-weight: 650;
}

.spc-account__content table.woocommerce-table--order-details tbody td.product-name a {
  color: var(--spc-red) !important;
  font-weight: 400 !important;
  text-decoration: none !important;
}

.spc-account__content table.woocommerce-table--order-details tbody td.product-name a:hover {
  border-color: var(--spc-red-border) !important;
  background: var(--spc-red-soft) !important;
  color: var(--spc-red-dark) !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}

.spc-account__content table.woocommerce-table--order-details tbody td.product-name .product-quantity,
.spc-account__content table.woocommerce-table--order-details tbody td.product-name .quantity {
  font-weight: 400 !important;
}

.spc-account__content table.woocommerce-table--order-details tbody td.product-total {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
}

.spc-account__content table.woocommerce-table--order-details .wc-item-meta,
.spc-account__content table.woocommerce-table--order-details dl.variation {
  margin: 4px 0 0 !important;
  color: var(--spc-muted);
  font-size: 11px;
}

.spc-account__content table.woocommerce-table--order-details .wc-item-meta p,
.spc-account__content table.woocommerce-table--order-details dl.variation dd,
.spc-account__content table.woocommerce-table--order-details dl.variation dt {
  margin: 0;
  font-size: inherit;
}

.spc-account__content table.woocommerce-table--order-details tfoot th,
.spc-account__content table.woocommerce-table--order-details tfoot td {
  padding: 10px 15px !important;
  border: 0 !important;
  border-top: 1px solid #edf1f5 !important;
  background: #fbfcfe !important;
  color: #617187;
  font-size: 12px;
}

.spc-account__content table.woocommerce-table--order-details tfoot th {
  text-align: left;
  font-weight: 650;
}

.spc-account__content table.woocommerce-table--order-details tfoot td {
  color: var(--spc-ink);
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}

.spc-account__content table.woocommerce-table--order-details tfoot tr:last-child th,
.spc-account__content table.woocommerce-table--order-details tfoot tr:last-child td {
  padding-top: 13px !important;
  padding-bottom: 13px !important;
  border-top: 1px solid #dfe7f0 !important;
  background: #f7fbff !important;
  color: var(--spc-ink) !important;
  font-size: 14px !important;
  font-weight: 750 !important;
}

.spc-account__content table.woocommerce-table--order-details tfoot tr:last-child td .woocommerce-Price-amount,
.spc-account__content table.woocommerce-table--order-details tfoot tr:last-child td bdi {
  font-size: 16px;
  font-weight: 800;
}

.spc-account__content table.woocommerce-table--order-details tfoot tr:last-child th::after {
  content: '';
}

/* Order detail: hide WooCommerce native "Commander une nouvelle fois" action. */
.spc-account__content p.order-again,
.spc-account__content .order-again,
.spc-account__content .woocommerce-order-details + p.order-again {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.spc-account__content .woocommerce-customer-details {
  margin: 0 !important;
}

.spc-account__content .woocommerce-customer-details .woocommerce-column__title {
  margin: 0 0 12px !important;
  color: var(--spc-ink) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  letter-spacing: normal;
  line-height: 1.3 !important;
}

.spc-account__content .woocommerce-columns--addresses {
  gap: 12px;
}

.spc-account__content .woocommerce-column {
  padding: 16px !important;
  border: 1px solid var(--spc-line) !important;
  border-radius: 13px !important;
  background: #fff !important;
  box-shadow: 0 6px 20px rgba(25, 48, 84, .03);
}

.spc-account__content .woocommerce-column address {
  margin: 0 !important;
  color: var(--spc-ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
}

.spc-account__content .woocommerce-customer-details--phone,
.spc-account__content .woocommerce-customer-details--email {
  margin: 5px 0 0 !important;
  color: var(--spc-ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.spc-account__content .woocommerce-customer-details--phone::first-letter,
.spc-account__content .woocommerce-customer-details--email::first-letter {
  color: var(--spc-red);
}

@media (max-width: 760px) {
  .spc-account__content > p.order-info {
    margin-bottom: 14px !important;
    padding: 10px 12px;
    font-size: 12px;
  }

  .spc-account__content .woocommerce-order-details__title {
    font-size: 19px !important;
  }

  .spc-account__content table.woocommerce-table--order-details {
    border-radius: 13px;
  }

  .spc-account__content table.woocommerce-table--order-details thead {
    display: none;
  }

  .spc-account__content table.woocommerce-table--order-details,
  .spc-account__content table.woocommerce-table--order-details tbody,
  .spc-account__content table.woocommerce-table--order-details tfoot,
  .spc-account__content table.woocommerce-table--order-details tr {
    display: block;
    width: 100%;
  }

  .spc-account__content table.woocommerce-table--order-details tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .spc-account__content table.woocommerce-table--order-details tbody td {
    min-width: 0;
    padding: 12px !important;
  }

  .spc-account__content table.woocommerce-table--order-details tbody td.product-total {
    text-align: right;
  }

  .spc-account__content table.woocommerce-table--order-details tfoot tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .spc-account__content table.woocommerce-table--order-details tfoot th,
  .spc-account__content table.woocommerce-table--order-details tfoot td {
    min-width: 0;
    padding: 9px 12px !important;
  }

  .spc-account__content table.woocommerce-table--order-details tfoot tr:last-child th,
  .spc-account__content table.woocommerce-table--order-details tfoot tr:last-child td {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  .spc-account__content .woocommerce-customer-details .woocommerce-column__title {
    font-size: 19px !important;
  }

  .spc-account__content .woocommerce-columns--addresses {
    display: grid;
    gap: 10px;
  }

  .spc-account__content .woocommerce-column {
    width: 100%;
    padding: 14px !important;
  }
}

@media (max-width: 460px) {
  .spc-account__content > p.order-info {
    line-height: 1.6;
  }

  .spc-account__content table.woocommerce-table--order-details tbody td,
  .spc-account__content table.woocommerce-table--order-details tfoot th,
  .spc-account__content table.woocommerce-table--order-details tfoot td {
    font-size: 11px;
  }

  .spc-account__content table.woocommerce-table--order-details tfoot tr:last-child th,
  .spc-account__content table.woocommerce-table--order-details tfoot tr:last-child td {
    font-size: 13px !important;
  }
}

/* SPC 0.11.5 — order detail cleanup */
.spc-account__content p.order-again,
.spc-account__content .order-again {
  display: none !important;
}

/* SPC 0.11.7 — order detail billing address typography */
.spc-account__content .woocommerce-column address,
.spc-account__content .woocommerce-customer-details--phone,
.spc-account__content .woocommerce-customer-details--email {
  color: var(--spc-red) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}

.spc-account__content .woocommerce-column address a,
.spc-account__content .woocommerce-customer-details--phone a,
.spc-account__content .woocommerce-customer-details--email a {
  color: var(--spc-red) !important;
  font-size: inherit !important;
  font-weight: 400 !important;
}

/* v0.11.15 — Page « Détails du compte » : formulaire compact inspiré du modèle de référence */

.spc-account__content:not(:has(.spc-account__dashboard)) {
  padding: 24px 28px 28px;
}

.spc-account__content .woocommerce-EditAccountForm {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 0;
  margin: 0 !important;
  width: 100%;
}

.spc-account__content .woocommerce-EditAccountForm::before {
  content: 'Détails du compte';
  display: block;
  grid-column: 1 / -1;
  margin: 0 0 20px;
  color: var(--spc-ink);
  font-family: "Archivo" !important;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.02em;
}

.spc-account__content .woocommerce-EditAccountForm > p.form-row,
.spc-account__content .woocommerce-EditAccountForm > p.woocommerce-form-row {
  box-sizing: border-box;
  width: 100% !important;
  float: none !important;
  clear: none !important;
  margin: 0 0 15px !important;
  padding: 0 !important;
}

.spc-account__content .woocommerce-EditAccountForm > p.form-row-first,
.spc-account__content .woocommerce-EditAccountForm > p.form-row-last {
  grid-column: auto;
}

.spc-account__content .woocommerce-EditAccountForm > p.form-row-wide {
  grid-column: 1 / -1;
}

.spc-account__content .woocommerce-EditAccountForm label {
  display: block !important;
  margin: 0 0 6px !important;
  color: #667386 !important;
  font-family: "Archivo" !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  font-weight: 500 !important;
}

.spc-account__content .woocommerce-EditAccountForm label .required {
  color: var(--spc-red) !important;
  text-decoration: none !important;
}

.spc-account__content .woocommerce-EditAccountForm input.input-text {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 10px !important;
  border: 1px solid #dce5ef !important;
  border-radius: 5px !important;
  background: #fff !important;
  color: var(--spc-ink) !important;
  font-family: "Archivo" !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 38px !important;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.spc-account__content .woocommerce-EditAccountForm input.input-text:hover {
  border-color: #cbd8e6 !important;
}

.spc-account__content .woocommerce-EditAccountForm input.input-text:focus {
  border-color: var(--spc-red) !important;
  box-shadow: 0 0 0 2px rgba(20,123,234,.08) !important;
}

.spc-account__content .woocommerce-EditAccountForm em {
  display: block;
  margin: 5px 0 0 !important;
  color: #8995a5 !important;
  font-family: "Archivo" !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
  font-style: italic !important;
}

/* Bloc mot de passe : compact et proche du modèle */
.spc-account__content .woocommerce-EditAccountForm fieldset {
  grid-column: 1 / -1;
  box-sizing: border-box;
  width: 100%;
  margin: 2px 0 16px !important;
  padding: 14px 14px 12px !important;
  border: 1px solid #e3e9f0 !important;
  border-radius: 8px !important;
  background: #fbfcfe !important;
}

.spc-account__content .woocommerce-EditAccountForm fieldset legend {
  width: auto !important;
  padding: 0 6px !important;
  margin: 0 !important;
  color: var(--spc-ink) !important;
  font-family: "Archivo" !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
  background: #fff !important;
}

.spc-account__content .woocommerce-EditAccountForm fieldset .woocommerce-form-row {
  margin: 0 0 13px !important;
}

.spc-account__content .woocommerce-EditAccountForm fieldset .woocommerce-form-row:last-child {
  margin-bottom: 0 !important;
}

/* Icône afficher/masquer le mot de passe */
.spc-account__content .woocommerce-EditAccountForm .password-input {
  position: relative;
  display: block;
}

.spc-account__content .woocommerce-EditAccountForm .show-password-input {
  top: 50% !important;
  right: 10px !important;
  transform: translateY(-50%) !important;
}

/* Bouton Enregistrer */
.spc-account__content .woocommerce-EditAccountForm > p:has(.woocommerce-Button[type='submit']) {
  grid-column: 1 / -1;
  margin: 0 !important;
}

.spc-account__content .woocommerce-EditAccountForm .woocommerce-Button[type='submit'] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 70px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 34px !important;
  margin: 0 !important;
  border: 1px solid var(--spc-red) !important;
  border-radius: 6px !important;
  background: var(--spc-red) !important;
  color: #fff !important;
  font-family: "Archivo" !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.spc-account__content .woocommerce-EditAccountForm .woocommerce-Button[type='submit']:hover {
  background: var(--spc-red-dark) !important;
  border-color: var(--spc-red-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Empêche les retours à la ligne parasites générés par wpautop */
.spc-account__content .woocommerce-EditAccountForm br {
  display: none !important;
}

@media (max-width: 760px) {
  .spc-account__content:not(:has(.spc-account__dashboard)) {
    padding: 20px 16px 24px;
  }

  .spc-account__content .woocommerce-EditAccountForm {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
  }

  .spc-account__content .woocommerce-EditAccountForm::before {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .spc-account__content .woocommerce-EditAccountForm > p.form-row-first,
  .spc-account__content .woocommerce-EditAccountForm > p.form-row-last,
  .spc-account__content .woocommerce-EditAccountForm > p.form-row-wide {
    grid-column: 1 / -1;
  }

  .spc-account__content .woocommerce-EditAccountForm > p.form-row,
  .spc-account__content .woocommerce-EditAccountForm > p.woocommerce-form-row {
    margin-bottom: 13px !important;
  }

  .spc-account__content .woocommerce-EditAccountForm fieldset {
    padding: 13px 12px 11px !important;
  }
}


/* ========================================================================== 
 * PAGE « ADRESSES » — UX/UI
 * --------------------------------------------------------------------------
 * Habillage visuel uniquement du markup natif WooCommerce.
 * Aucune donnée, logique d'adresse ou action WooCommerce n'est modifiée.
 * ========================================================================== */

.spc-account__content .woocommerce-Addresses {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 !important;
}

.spc-account__content .woocommerce-Addresses::before,
.spc-account__content .woocommerce-Addresses::after {
  display: none !important;
}

.spc-account__content .woocommerce-Addresses .woocommerce-Address {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  padding: 20px !important;
  border: 1px solid var(--spc-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 5px 18px rgba(25, 48, 84, .035);
}

.spc-account__content .woocommerce-Addresses .woocommerce-Address-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px !important;
}

.spc-account__content .woocommerce-Addresses .woocommerce-Address-title::before,
.spc-account__content .woocommerce-Addresses .woocommerce-Address-title::after {
  display: none !important;
}

.spc-account__content .woocommerce-Addresses .woocommerce-Address-title h2 {
  margin: 0 !important;
  color: var(--spc-ink) !important;
  font-family: "Archivo" !important;
  font-size: 22px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  letter-spacing: -.015em;
}

.spc-account__content .woocommerce-Addresses .woocommerce-Address-title .edit {
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  max-width: 155px;
  margin: 0 !important;
  padding: 6px 12px 8px !important;
  border: 1px solid var(--spc-red-border) !important;
  border-radius: 8px !important;
  background: var(--spc-red-soft) !important;
  color: var(--spc-red) !important;
  font-family: "Archivo" !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 600 !important;
  text-align: center;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.spc-account__content .woocommerce-Addresses .woocommerce-Address-title .edit:hover {
  color: var(--spc-red-dark) !important;
  text-decoration: underline !important;
}

.spc-account__content .woocommerce-Addresses .woocommerce-Address address {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--spc-ink) !important;
  font-family: "Archivo" !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
  font-weight: 400 !important;
  font-style: normal !important;
}

.spc-account__content .woocommerce-Addresses .woocommerce-Address address p {
  margin: 0 !important;
}

.spc-account__content .woocommerce-Addresses .woocommerce-Address address a {
  color: var(--spc-red) !important;
  font-family: "Archivo" !important;
  font-weight: 400 !important;
  text-decoration: none !important;
}

.spc-account__content .woocommerce-Addresses .woocommerce-Address address a:hover {
  color: var(--spc-red-dark) !important;
  text-decoration: underline !important;
}

@media (max-width: 760px) {
  .spc-account__content .woocommerce-Addresses {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .spc-account__content .woocommerce-Addresses .woocommerce-Address {
    padding: 16px !important;
  }

  .spc-account__content .woocommerce-Addresses .woocommerce-Address-title {
    margin-bottom: 14px !important;
  }

  .spc-account__content .woocommerce-Addresses .woocommerce-Address-title h2 {
    font-size: 17px !important;
  }

  .spc-account__content .woocommerce-Addresses .woocommerce-Address-title .edit {
    max-width: 145px;
    min-height: 34px;
    padding: 8px 10px !important;
    font-size: 11px !important;
  }
}

/* ========================================================================== 
 * PAGE « ADRESSE » (ajout / modification) — UX/UI
 * --------------------------------------------------------------------------
 * form-edit-address.php n'a pas de classe sur son <form> ni sur son <h3> —
 * on cible donc form[method="post"] > h3, scopé à .spc-account__content pour
 * ne toucher que Mon compte. Le reste (labels, champs, bouton) reprend le
 * modèle déjà établi pour le formulaire "Détails du compte".
 * -------------------------------------------------------------------------- */

.spc-account__content form[method="post"] > h3 {
  margin: 0 0 20px;
  color: var(--spc-ink);
  font-family: "Archivo" !important;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.01em;
}

.spc-account__content .woocommerce-address-fields__field-wrapper {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 0;
  margin: 0 !important;
  width: 100%;
}

.spc-account__content .woocommerce-address-fields__field-wrapper > p.form-row,
.spc-account__content .woocommerce-address-fields__field-wrapper > p.woocommerce-form-row {
  box-sizing: border-box;
  width: 100% !important;
  float: none !important;
  clear: none !important;
  margin: 0 0 15px !important;
  padding: 0 !important;
}

.spc-account__content .woocommerce-address-fields__field-wrapper > p.form-row-first,
.spc-account__content .woocommerce-address-fields__field-wrapper > p.form-row-last {
  grid-column: auto;
}

.spc-account__content .woocommerce-address-fields__field-wrapper > p.form-row-wide {
  grid-column: 1 / -1;
}

.spc-account__content .woocommerce-address-fields__field-wrapper label {
  display: block !important;
  margin: 0 0 6px !important;
  color: #667386 !important;
  font-family: "Archivo" !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  font-weight: 500 !important;
}

.spc-account__content .woocommerce-address-fields__field-wrapper label .required {
  color: var(--spc-red) !important;
  text-decoration: none !important;
}

.spc-account__content .woocommerce-address-fields__field-wrapper input.input-text,
.spc-account__content .woocommerce-address-fields__field-wrapper select {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 10px !important;
  border: 1px solid #dce5ef !important;
  border-radius: 5px !important;
  background: #fff !important;
  color: var(--spc-ink) !important;
  font-family: "Archivo" !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 38px !important;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}

/* Flèche personnalisée pour le select Pays/région (select natif, pas de dépendance à select2) */
.spc-account__content .woocommerce-address-fields__field-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 28px !important;
  line-height: normal !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23667386' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center !important;
}

.spc-account__content .woocommerce-address-fields__field-wrapper input.input-text:hover,
.spc-account__content .woocommerce-address-fields__field-wrapper select:hover {
  border-color: #cbd8e6 !important;
}

.spc-account__content .woocommerce-address-fields__field-wrapper input.input-text:focus,
.spc-account__content .woocommerce-address-fields__field-wrapper select:focus {
  border-color: var(--spc-red) !important;
  box-shadow: 0 0 0 2px rgba(20, 123, 234, .08) !important;
}

.spc-account__content .woocommerce-address-fields .woocommerce-Button[type='submit'] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 70px !important;
  max-width: none !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 20px !important;
  margin: 4px 0 0 !important;
  border: 1px solid var(--spc-red) !important;
  border-radius: 6px !important;
  background: var(--spc-red) !important;
  color: #fff !important;
  font-family: "Archivo" !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  cursor: pointer !important;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.spc-account__content .woocommerce-address-fields .woocommerce-Button[type='submit']:hover {
  background: var(--spc-red-dark) !important;
  border-color: var(--spc-red-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .spc-account__content form[method="post"] > h3 {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .spc-account__content .woocommerce-address-fields__field-wrapper {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
  }

  .spc-account__content .woocommerce-address-fields__field-wrapper > p.form-row-first,
  .spc-account__content .woocommerce-address-fields__field-wrapper > p.form-row-last {
    grid-column: 1 / -1;
  }
}

/* ---------------- Suivi de livraison (voir SPC_Order_Statuses) ----------------
   Couleurs codées en dur (pas de var(--spc-red)) : ce bloc peut aussi
   s'afficher sur la page de remerciement, hors du wrapper .spc-account où
   ces variables sont définies. */
.spc-order-shipping-info {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid #e4e7eb;
  border-radius: 10px;
  background: #fff;
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, sans-serif;
}

.spc-order-shipping-info h2 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
}

.spc-order-shipping-info__list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.spc-order-shipping-info__list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f2f4f6;
  font-size: 14px;
  color: #6f747c;
}

.spc-order-shipping-info__list li:last-child {
  border-bottom: 0;
}

.spc-order-shipping-info__list strong {
  color: #1a1a1a;
  font-weight: 600;
}

.spc-order-shipping-info__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: none;
  border-radius: 9px;
  background: #c8102e;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background .15s ease;
}

.spc-order-shipping-info__link:hover {
  background: #a90c25;
}

/* « Prix sur devis » (Mes devis) : toujours 12px, y compris sur desktop où
   .spc-account__order-total (montant des vraies commandes) passe à 14px —
   voir la classe --quote dédiée dans SPC_Account_Quotes::render_endpoint(),
   pour ne pas toucher à l'affichage du montant des vraies commandes. */
.spc-account__order-total--quote,
.spc-account__order-row .spc-account__order-total--quote {
  font-size: 10px !important;
}

/* "communiqué dans le devis" (ligne "Montant final" sur la page de détail
   d'un devis) — voir SPC_Account_Quotes::filter_order_item_totals(). */
.spc-quote-final-amount {
  font-size: 12px;
  font-weight: 500;
}
