/* =====================================================================
 * /my-account/ — branded layout. Matches the mobile app Compte tab.
 * Loaded only on WooCommerce account pages (see functions.php enqueue).
 * ===================================================================== */

.woocommerce-account .wrap.prose { max-width: 1100px; }
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 32px 0 64px; }

/* sidebar tabs (left column) */
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; border: 2px solid var(--black); background: #fff; }
.woocommerce-MyAccount-navigation li { border-bottom: 1px solid #eee; }
.woocommerce-MyAccount-navigation li:last-child { border-bottom: none; }
.woocommerce-MyAccount-navigation li a {
  display: block; padding: 14px 16px;
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--black);
  text-decoration: none;
}
.woocommerce-MyAccount-navigation li a:hover { background: #fff5f5; color: var(--red); }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--black); color: #fff; }

/* content (right column) */
.woocommerce-MyAccount-content { min-width: 0; }
.woocommerce-MyAccount-content > p:first-child { display: none; }

/* ── Dashboard (template-overridden) ─────────────────────────────────── */
.myacc { display: flex; flex-direction: column; gap: 18px; }
.myacc__head { padding-bottom: 6px; }
.myacc__title {
  font-family: "Archivo", sans-serif; font-weight: 900; text-transform: uppercase;
  font-size: 40px; margin: 0 0 6px; letter-spacing: -0.01em; line-height: 1.1;
}
.myacc__wave { margin-left: 8px; display: inline-block; }
.myacc__email { font-family: "Space Mono", monospace; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin: 0; }

.myacc__verified {
  display: inline-flex; align-items: center; gap: 8px;
  background: #e8f5ec; color: #0a7a3b;
  padding: 10px 14px; align-self: flex-start;
  font-family: "Space Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
}
.myacc__verified svg { flex: none; }

.myacc__warns { display: flex; flex-direction: column; gap: 10px; }
.myacc__warn {
  display: flex; align-items: center; gap: 12px;
  border: 2px solid var(--red); background: #fff5f5;
  padding: 14px; color: var(--black); text-decoration: none;
  transition: background .15s;
}
.myacc__warn:hover { background: #ffe6e4; }
.myacc__warn svg { color: var(--red); flex: none; }
.myacc__warn-body { flex: 1; }
.myacc__warn-body strong { display: block; font-family: "Archivo", sans-serif; font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: 0.04em; }
.myacc__warn-body small { display: block; font-family: "Space Mono", monospace; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 3px; }
.myacc__warn-arrow { font-family: "Archivo", sans-serif; font-weight: 800; color: var(--red); font-size: 22px; }

.myacc__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.myacc__card {
  display: flex; align-items: center; gap: 14px;
  border: 2px solid var(--black); background: #fff;
  padding: 16px; color: var(--black); text-decoration: none;
  transition: background .15s, color .15s;
}
.myacc__card:hover { background: var(--black); color: #fff; }
.myacc__card:hover .myacc__card-arrow { color: #fff; }
.myacc__card svg { flex: none; }
.myacc__card-body { flex: 1; }
.myacc__card-body strong { display: block; font-family: "Archivo", sans-serif; font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: 0.04em; }
.myacc__card-body small { display: block; font-family: "Space Mono", monospace; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 3px; }
.myacc__card:hover .myacc__card-body small { color: rgba(255,255,255,0.7); }
.myacc__card-arrow { font-family: "Archivo", sans-serif; font-weight: 800; color: var(--red); font-size: 22px; }
.myacc__card--logout { border-color: var(--muted); }
.myacc__card--logout:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ── Login + register page (logged-out /my-account/) ─────────────────── */
.woocommerce-account.woocommerce-page:not(.logged-in) .woocommerce { grid-template-columns: 1fr; }
.woocommerce-account form.woocommerce-form { border: 2px solid var(--black); padding: 24px; background: #fff; }
.woocommerce-account h2 {
  font-family: "Archivo", sans-serif; font-weight: 900; text-transform: uppercase;
  font-size: 22px; margin: 0 0 18px; letter-spacing: -0.01em;
}
.woocommerce-account .u-columns,
.woocommerce-account .u-column1,
.woocommerce-account .u-column2 { width: 100% !important; float: none !important; }
.woocommerce-account .u-columns { display: grid !important; grid-template-columns: 1fr 1fr; gap: 24px; }
.woocommerce-account .woocommerce-form-row label,
.woocommerce-account form .form-row label {
  font-family: "Space Mono", monospace; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; display: block;
}
.woocommerce-account form .form-row input.input-text,
.woocommerce-account form .woocommerce-Input { width: 100%; }

/* button: ensure WC my-account submit buttons get our brand styling */
.woocommerce-account button.button,
.woocommerce-account .woocommerce-Button,
.woocommerce-account .button,
.woocommerce-account a.button,
.woocommerce-account a.woocommerce-Button {
  font-family: "Archivo", sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--red); color: #fff;
  border: 2px solid var(--red); border-radius: 0;
  padding: 14px 24px; cursor: pointer;
  display: inline-block; text-decoration: none;
}
.woocommerce-account button.button:hover,
.woocommerce-account .woocommerce-Button:hover,
.woocommerce-account .button:hover,
.woocommerce-account a.button:hover,
.woocommerce-account a.woocommerce-Button:hover { background: var(--black); border-color: var(--black); color: #fff; }

/* WC empty-state notice (e.g. "No order has been made yet" on /orders/) */
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-Message--info {
  border: 2px solid var(--black);
  border-left: 6px solid var(--red);
  background: #fff;
  padding: 18px 20px;
  margin: 0 0 18px;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
/* The "Browse products" link in those notices — force white text, even on visited/hover.
 * Higher specificity wasn't enough vs the cascade; using !important here is intentional. */
.woocommerce-account .woocommerce-message a.button,
.woocommerce-account .woocommerce-message a.woocommerce-Button,
.woocommerce-account .woocommerce-info a.button,
.woocommerce-account .woocommerce-info a.woocommerce-Button,
.woocommerce-account .woocommerce-message a.button:visited,
.woocommerce-account .woocommerce-info a.button:visited,
.woocommerce-account .woocommerce-message a.button:hover,
.woocommerce-account .woocommerce-message a.woocommerce-Button:hover,
.woocommerce-account .woocommerce-info a.button:hover,
.woocommerce-account .woocommerce-info a.woocommerce-Button:hover {
  color: #fff !important;
  background: var(--red);
  border: 2px solid var(--red);
  text-decoration: none;
}
.woocommerce-account .woocommerce-message a.button:hover,
.woocommerce-account .woocommerce-info a.button:hover {
  background: var(--black) !important;
  border-color: var(--black) !important;
  color: #fff !important;
}

.woocommerce-account .lost_password a {
  font-family: "Space Mono", monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--red);
}

/* ── Orders / addresses tables on /my-account/ ──────────────────────── */
.woocommerce-account .woocommerce-MyAccount-content table {
  width: 100%; border: 2px solid var(--black); border-collapse: collapse;
}
.woocommerce-account .woocommerce-MyAccount-content table th,
.woocommerce-account .woocommerce-MyAccount-content table td {
  padding: 12px; border-bottom: 1px solid #eee; text-align: left;
  font-family: "Inter", sans-serif; font-size: 14px; color: var(--ink);
}
.woocommerce-account .woocommerce-MyAccount-content table th {
  font-family: "Space Mono", monospace; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); background: #fafafa;
}
.woocommerce-account .woocommerce-orders-table__cell-order-status mark {
  display: inline-block; padding: 4px 10px; font-family: "Archivo", sans-serif;
  font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--black); color: #fff; border-radius: 0;
}

/* Address cards on edit-address landing */
.woocommerce-account .woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.woocommerce-account .woocommerce-Address {
  border: 2px solid var(--black); padding: 18px; background: #fff;
}
.woocommerce-account .woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.woocommerce-account .woocommerce-Address-title h3 {
  font-family: "Archivo", sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: 14px; letter-spacing: 0.04em; margin: 0;
}
.woocommerce-account .woocommerce-Address-title .edit {
  font-family: "Space Mono", monospace; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--red);
}

/* ── Branded 2-step register form (form-register.php override) ────────── */
.dam-register { border: 2px solid var(--black); padding: 24px; background: #fff; }
.dam-register h2 { font-family: "Archivo", sans-serif; font-weight: 900; text-transform: uppercase; font-size: 22px; margin: 0 0 8px; letter-spacing: -0.01em; }
.dam-register__lede { font-family: "Inter", sans-serif; font-size: 14px; color: var(--muted); margin: 0 0 22px; line-height: 1.5; }
.dam-register__lede strong { font-family: "Space Mono", monospace; font-weight: 700; color: var(--black); }

.dam-row { display: block; margin-bottom: 14px; }
.dam-row > span { display: block; font-family: "Space Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; }
.dam-row input[type="text"],
.dam-row input[type="email"],
.dam-row input[type="password"],
.dam-row input[type="tel"] {
  width: 100%; border: 2px solid var(--black); border-radius: 0;
  padding: 13px; font-family: "Inter", sans-serif; font-size: 15px; color: var(--ink);
  background: #fff;
}
/* Phone field — wrap must fill the row so the tel input ends up the same
 * width as every other field once the +33 country picker is rendered. */
.dam-row .dam-phone-wrap { width: 100%; }
.dam-row .dam-phone-wrap .dam-phone-cc { min-width: 100px; flex: 0 0 auto; }
.dam-row .dam-phone-wrap input[type="tel"] { width: auto; flex: 1; min-width: 0; }
.dam-row--two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dam-row--two label { margin: 0; display: block; }

.dam-register__error {
  margin: 0 0 14px; padding: 10px 12px;
  border: 2px solid var(--red); background: #fff5f5;
  font-family: "Space Mono", monospace; font-size: 12px; color: var(--red);
}

.dam-register__send,
.dam-register__verify {
  font-family: "Archivo", sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--red); color: #fff;
  border: 2px solid var(--red); border-radius: 0;
  padding: 14px 24px; cursor: pointer; font-size: 14px;
}
.dam-register__send:hover,
.dam-register__verify:hover { background: var(--black); border-color: var(--black); }
.dam-register__send[disabled],
.dam-register__verify[disabled] { opacity: 0.6; cursor: wait; }

/* 6-digit OTP boxes */
.dam-otp-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 18px; max-width: 100%; }
.dam-otp-boxes input {
  /* min-width:0 overrides the grid-item default of min-width:auto, which would
   * otherwise let each <input> claim ~200-280px intrinsic width and blow past
   * the card border. width:100% then makes each box fill its 1fr track. */
  min-width: 0; width: 100%; box-sizing: border-box;
  border: 2px solid var(--black); border-radius: 0;
  text-align: center; font-family: "Space Mono", monospace; font-weight: 700; font-size: 22px;
  padding: 14px 0; color: var(--black); background: #fff;
}
.dam-otp-boxes input:focus { outline: none; border-color: var(--red); }

.dam-register__actions { display: flex; align-items: center; gap: 16px; }
.dam-register__back {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--black);
}
.dam-register__back:hover { color: var(--red); }

.dam-register__dev {
  margin-top: 24px; padding: 12px 14px;
  border: 2px solid var(--red); background: #fff5f5; text-align: center;
}
.dam-register__dev small { display: block; font-family: "Space Mono", monospace; font-size: 10px; color: var(--red); text-transform: uppercase; letter-spacing: 0.06em; }
.dam-register__dev-code { display: block; font-family: "Space Mono", monospace; font-weight: 700; font-size: 28px; color: var(--black); letter-spacing: 8px; margin-top: 6px; }

/* ── /edit-account/ branded form + verified coordonnées rows ────────── */
.dam-edit-account h2 { font-family: "Archivo", sans-serif; font-weight: 900; text-transform: uppercase; font-size: 18px; margin: 0 0 14px; letter-spacing: -0.005em; }
/* Fieldset: extra bottom padding to balance the legend's visual weight at the top */
.dam-edit-account fieldset { border: 2px solid var(--black); padding: 18px 18px 24px; margin: 22px 0 0; }
.dam-edit-account fieldset legend { font-family: "Archivo", sans-serif; font-weight: 800; text-transform: uppercase; font-size: 13px; padding: 0 8px; letter-spacing: 0.04em; }
/* Submit wrapper: gap below the password fieldset before the Enregistrer button */
.dam-edit-account__submit { margin-top: 28px; }

.dam-coords { margin-top: 36px; padding-top: 28px; border-top: 2px solid var(--black); }
.dam-coords--top { margin-top: 0; padding-top: 0; padding-bottom: 28px; margin-bottom: 28px; border-top: none; border-bottom: 2px solid var(--black); }
.dam-coords__lede { font-family: "Inter", sans-serif; font-size: 13px; color: var(--muted); margin: 0 0 18px; line-height: 1.5; }

.dam-coord-row {
  display: flex; align-items: center; gap: 14px;
  border: 2px solid var(--black); padding: 14px; margin-bottom: 10px;
  background: #fff;
}
.dam-coord-row svg { flex: none; }
.dam-coord-row__body { flex: 1; min-width: 0; }
.dam-coord-row__body strong { display: block; font-family: "Archivo", sans-serif; font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: 0.05em; color: var(--black); }
.dam-coord-row__value { display: block; font-family: "Inter", sans-serif; font-size: 14px; color: var(--ink); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dam-coord-row__status { display: inline-block; font-family: "Space Mono", monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }
.dam-coord-row__status--ok { color: #0a7a3b; }
.dam-coord-row__status--warn { color: var(--red); }
.dam-coord-row__action {
  background: none; border: none; padding: 8px 4px; cursor: pointer; flex: none;
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--red);
}
.dam-coord-row__action:hover { color: var(--black); }

/* ── Modal (verified email + phone add/change) ──────────────────────── */
.dam-modal { position: fixed; inset: 0; z-index: 9999; }
.dam-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.dam-modal__panel {
  position: relative; max-width: 460px; margin: 7vh auto 0;
  background: #fff; border: 2px solid var(--black);
  padding: 28px 24px;
  box-shadow: 8px 8px 0 var(--black);
}
.dam-modal__close {
  position: absolute; top: 8px; right: 12px;
  background: none; border: none; padding: 4px 10px; cursor: pointer;
  font-size: 24px; line-height: 1; color: var(--black);
}
.dam-modal__close:hover { color: var(--red); }

.dam-otp-form h2 { font-family: "Archivo", sans-serif; font-weight: 900; text-transform: uppercase; font-size: 22px; margin: 0 0 6px; letter-spacing: -0.01em; }
.dam-otp-form__lede { font-family: "Inter", sans-serif; font-size: 13px; color: var(--muted); margin: 0 0 18px; line-height: 1.5; }
.dam-otp-form__lede strong { font-family: "Space Mono", monospace; font-weight: 700; color: var(--black); }

.dam-otp-form__error {
  margin: 0 0 14px; padding: 10px 12px;
  border: 2px solid var(--red); background: #fff5f5;
  font-family: "Space Mono", monospace; font-size: 12px; color: var(--red);
}
.dam-otp-form__send,
.dam-otp-form__verify {
  width: 100%;
  font-family: "Archivo", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--red); color: #fff;
  border: 2px solid var(--red); border-radius: 0;
  padding: 14px 24px; cursor: pointer; font-size: 14px;
}
.dam-otp-form__send:hover,
.dam-otp-form__verify:hover { background: var(--black); border-color: var(--black); }
.dam-otp-form__send[disabled],
.dam-otp-form__verify[disabled] { opacity: 0.6; cursor: wait; }

.dam-otp-form__actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.dam-otp-form__back {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--black); text-align: center;
}
.dam-otp-form__back:hover { color: var(--red); }
.dam-otp-form__dev {
  margin-top: 18px; padding: 10px 12px;
  border: 2px solid var(--red); background: #fff5f5; text-align: center;
}
.dam-otp-form__dev small { display: block; font-family: "Space Mono", monospace; font-size: 10px; color: var(--red); text-transform: uppercase; letter-spacing: 0.06em; }
.dam-otp-form__dev-code { display: block; font-family: "Space Mono", monospace; font-weight: 700; font-size: 28px; color: var(--black); letter-spacing: 8px; margin-top: 6px; }

/* ── Email | Téléphone tabs (register + login) ───────────────────────── */
.dam-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 2px solid var(--black); margin: 0 0 24px;
  background: #fff;
}
.dam-tabs__btn {
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.06em;
  background: #fff; color: var(--black); border: 0;
  padding: 14px 8px; cursor: pointer;
}
.dam-tabs__btn + .dam-tabs__btn { border-left: 2px solid var(--black); }
.dam-tabs__btn.is-active { background: var(--black); color: #fff; }
.dam-tabs__btn:focus-visible { outline: 2px solid var(--red); outline-offset: -4px; }

/* Single-column login → "Pas encore de compte ?" → register flow. */
.dam-account-flow {
  margin: 0 auto; max-width: 540px;
}
.dam-account-flow > * + * { margin-top: 24px; }

.dam-account-switch {
  margin: 22px 0 0; padding: 0;
  font-family: "Inter", sans-serif; font-size: 14px;
  color: var(--muted); text-align: center;
}
.dam-account-switch__btn {
  background: none; border: 0; padding: 0; cursor: pointer; margin-left: 4px;
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 14px;
  color: var(--red); text-transform: uppercase; letter-spacing: 0.04em;
}
.dam-account-switch__btn:hover { color: var(--black); }
.dam-account-switch__btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* Login wrapper inherits the same card frame as register so both tabs feel paired. */
.dam-login-wrap { border: 2px solid var(--black); padding: 24px; background: #fff; }
.dam-login-wrap .dam-tabs { margin-bottom: 22px; }

/* Match the visual footprint of the register card (more fields → taller box).
 * Keeps the toggled-flow feeling balanced when the user flips between them. */
.dam-login-wrap,
.dam-register { min-height: 520px; }
@media (max-width: 820px) {
  .dam-login-wrap,
  .dam-register { min-height: 0; }
}

/* Make the WC login form match the brand without rewriting it. */
.dam-login-email.woocommerce-form-login { margin: 0; }
.dam-login-email h2 { font-family: "Archivo", sans-serif; font-weight: 900; text-transform: uppercase; font-size: 22px; margin: 0 0 8px; letter-spacing: -0.01em; }
.dam-login-email .dam-register__lede { margin-bottom: 22px; }
.dam-login-email .form-row { margin-bottom: 14px; }
.dam-login-email label[for="username"],
.dam-login-email label[for="password"] {
  display: block; font-family: "Space Mono", monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px;
}
.dam-login-email input.input-text {
  width: 100%; border: 2px solid var(--black); border-radius: 0;
  padding: 13px; font-family: "Inter", sans-serif; font-size: 15px; color: var(--ink);
  background: #fff;
}
.dam-login-email .woocommerce-form__label-for-checkbox {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Inter", sans-serif; font-size: 13px; color: var(--ink); margin-right: 16px;
}
.dam-login-email .woocommerce-form-login__submit {
  font-family: "Archivo", sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--red); color: #fff;
  border: 2px solid var(--red); border-radius: 0;
  padding: 14px 24px; cursor: pointer; font-size: 14px;
}
.dam-login-email .woocommerce-form-login__submit:hover { background: var(--black); border-color: var(--black); }
.dam-login-email .lost_password { margin-top: 12px; }
.dam-login-email .lost_password a {
  font-family: "Space Mono", monospace; font-size: 12px; color: var(--red);
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* Phone login form reuses the .dam-register card frame; turn off its own border
 * since the wrapper already provides it. */
.dam-login-phone { border: 0; padding: 0; background: transparent; }

/* ── Password show/hide toggle (password-toggle.js) ─────────────────── */
.dam-pw-wrap { position: relative; display: block; }
.dam-pw-wrap input[type="password"],
.dam-pw-wrap input[type="text"] {
  /* room for the eye on the right */
  padding-right: 44px !important;
}
.dam-pw-toggle {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer;
  color: var(--muted); padding: 0;
}
.dam-pw-toggle:hover { color: var(--red); }
.dam-pw-toggle:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ── /voir-commande/<id> action buttons (Pay / Cancel / Reorder) ───── */
.dam-order-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 0 0 24px;
}
.dam-order-actions__btn {
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 13px 22px; border-radius: 0; cursor: pointer;
  text-decoration: none; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.dam-order-actions__btn--pay {
  background: var(--red); color: #fff; border: 2px solid var(--red);
}
.dam-order-actions__btn--pay:hover { background: var(--black); border-color: var(--black); color: #fff; }
.dam-order-actions__btn--reorder {
  background: #fff; color: var(--black); border: 2px solid var(--black);
}
.dam-order-actions__btn--reorder:hover { background: var(--black); color: #fff; }
.dam-order-actions__btn--cancel {
  background: transparent; color: var(--muted); border: 0;
  padding-left: 4px; padding-right: 4px;
}
.dam-order-actions__btn--cancel:hover { color: var(--red); }
.dam-order-actions__btn[disabled] { opacity: 0.6; cursor: wait; }

.dam-order-actions__feedback {
  flex-basis: 100%;
  font-family: "Space Mono", monospace; font-size: 12px;
  padding: 10px 12px; margin-top: 4px;
}
.dam-order-actions__feedback--ok { border: 2px solid #0a7a3b; background: #f1faf3; color: #0a7a3b; }
.dam-order-actions__feedback--err { border: 2px solid var(--red); background: #fff5f5; color: var(--red); }

/* ── Brand-styled order status badges ────────────────────────────────
 * Targets WC's existing markup: <mark class="order-status status-<slug>">
 * No parent scope — account pages use .woocommerce-account (not .woocommerce),
 * so the old selectors were skipping the orders list. */
.order-status {
  display: inline-block;
  font-family: "Archivo", sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px;
  padding: 5px 10px; border-radius: 0;
  background: #222; color: #fff;
}
.order-status.status-pending,
.order-status.status-on-hold,
.order-status.status-processing { background: #c95a00; color: #fff; }
.order-status.status-completed { background: #0a7a3b; color: #fff; }
.order-status.status-cancelled,
.order-status.status-failed,
.order-status.status-refunded { background: var(--red); color: #fff; }

/* ─────────────── /voir-commande/<id> — intro line ───────────────
 * Use our own <span>s with brand styling instead of WC's default <mark>
 * elements (which the browser renders with a yellow background by default). */
.dam-order-intro {
  font-family: "Inter", sans-serif; font-size: 16px; line-height: 1.6;
  color: var(--ink); margin: 0 0 24px;
}
.dam-order-intro__num,
.dam-order-intro__date,
.dam-order-intro__status {
  font-weight: 700; color: var(--black);
  background: transparent; padding: 0; border: 0;
  text-transform: none; letter-spacing: 0;
  font-size: inherit; line-height: inherit;
}

/* Safety net for any other WC <mark> on these pages (e.g. third-party
 * plugins) — kill the browser default yellow. */
.woocommerce-MyAccount-content mark:not(.order-status) {
  background: transparent !important; color: inherit !important;
  font-weight: 700 !important; padding: 0 !important;
}

/* ─────────────── /voir-commande/<id> — billing + shipping block ─────────────── */
.dam-order-customer {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px;
  margin-top: 48px; /* breathing room above 'Adresse de facturation' heading,
                       separates this block from the totals table */
}
@media (max-width: 720px) {
  .dam-order-customer { grid-template-columns: 1fr; gap: 28px; }
}
.dam-order-customer__col address {
  font-style: normal;
  font-family: "Inter", sans-serif; font-size: 14px; line-height: 1.6;
  color: var(--ink);
}
.dam-order-customer__title {
  font-family: "Archivo", sans-serif; font-weight: 900; text-transform: uppercase;
  font-size: 18px; letter-spacing: 0.02em; color: var(--black);
  margin: 0 0 14px;
}
/* Phone + email block — big gap above (distance from the postal address),
 * phone + email packed tight against each other so they read as one block. */
.dam-order-customer__contact {
  margin-top: 18px;
  font-family: "Space Mono", monospace; font-size: 12px; color: var(--muted);
  letter-spacing: 0.02em;
}
.dam-order-customer__phone { margin: 0; }
.dam-order-customer__email { margin: 2px 0 0; }

/* ─────────────── /mon-compte/orders/ — brand-styled table ─────────────── */
.dam-orders-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 2px solid var(--black);
}
.dam-orders-table__h {
  font-family: "Space Mono", monospace; font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
  padding: 14px 12px; text-align: left; background: #fafafa;
  border-bottom: 2px solid var(--black);
}
.dam-orders-table__h--actions { text-align: right; }
.dam-orders-table__row { border-bottom: 1px solid #eee; transition: background 0.12s; }
.dam-orders-table__row:last-child { border-bottom: 0; }
.dam-orders-table__row:hover { background: #fafafa; }
.dam-orders-table__cell { padding: 14px 12px; vertical-align: middle; }
.dam-orders-table__cell--num a {
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 14px;
  color: var(--black); text-decoration: none;
}
.dam-orders-table__cell--num a:hover { color: var(--red); }
.dam-orders-table__cell--date time {
  font-family: "Space Mono", monospace; font-size: 12px; color: var(--ink);
}
.dam-orders-table__total {
  font-family: "Space Mono", monospace; font-weight: 700; font-size: 14px; color: var(--black);
}
.dam-orders-table__items {
  font-family: "Inter", sans-serif; font-size: 13px; color: var(--muted); margin-left: 4px;
}
.dam-orders-table__cell--actions { text-align: right; white-space: nowrap; }
.dam-orders-table__view {
  display: inline-block; padding: 9px 18px;
  background: var(--black); color: #fff; text-decoration: none;
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.05em;
  border: 2px solid var(--black);
}
.dam-orders-table__view:hover { background: var(--red); border-color: var(--red); color: #fff; }

.dam-orders-pagination { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.dam-orders-pagination__btn {
  flex: 1; text-align: center; padding: 12px;
  background: #fff; color: var(--black); text-decoration: none;
  border: 2px solid var(--black);
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.dam-orders-pagination__btn:hover { background: var(--black); color: #fff; }

.dam-orders-empty { text-align: center; padding: 48px 24px; max-width: 460px; margin: 0 auto; border: 2px solid var(--black); background: #fff; }
.dam-orders-empty h3 { font-family: "Archivo", sans-serif; font-weight: 900; text-transform: uppercase; font-size: 22px; margin: 0 0 12px; }
.dam-orders-empty p { font-family: "Inter", sans-serif; color: var(--muted); margin: 0 0 22px; line-height: 1.5; }
.dam-orders-empty__cta { display: inline-block; font-family: "Archivo", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; background: var(--red); color: #fff; padding: 13px 22px; text-decoration: none; }
.dam-orders-empty__cta:hover { background: var(--black); }

@media (max-width: 720px) {
  .dam-orders-table thead { display: none; }
  .dam-orders-table tbody tr { display: block; border: 2px solid var(--black); padding: 12px; margin-bottom: 10px; }
  .dam-orders-table__cell { display: flex; justify-content: space-between; padding: 6px 0; border: 0; }
  .dam-orders-table__cell::before { content: attr(data-title); font-family: "Space Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
  .dam-orders-table__cell--actions { justify-content: flex-end; margin-top: 6px; }
}

/* ─────────────── BAN autocomplete dropdown ─────────────── */
.dam-ban-wrap { position: relative; }
.dam-ban-dropdown {
  position: absolute; top: 100%; left: 0; right: 0;
  z-index: 50; margin: 4px 0 0; padding: 0;
  list-style: none; background: #fff;
  border: 2px solid var(--black);
  max-height: 320px; overflow-y: auto;
  font-family: "Inter", sans-serif;
}
.dam-ban-dropdown li {
  padding: 12px 14px; cursor: pointer;
  border-bottom: 1px solid #eee;
  font-size: 14px; color: var(--ink); line-height: 1.4;
}
.dam-ban-dropdown li:last-child { border-bottom: 0; }
.dam-ban-dropdown li:hover, .dam-ban-dropdown li[aria-selected="true"] {
  background: var(--red); color: #fff;
}

/* ─────────────── Address book (/mon-compte/edit-address/) ─────────────── */
.dam-address-book { width: 100%; }
.dam-addr-section { margin-bottom: 36px; }
.dam-addr-section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.dam-addr-section__title {
  font-family: "Archivo", sans-serif; font-weight: 900; text-transform: uppercase;
  font-size: 20px; letter-spacing: 0.02em; color: var(--black); margin: 0 0 18px;
}
.dam-addr-section__head .dam-addr-section__title { margin: 0; }
.dam-addr-add {
  font-family: "Archivo", sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: 13px; letter-spacing: 0.05em; color: #fff;
  background: var(--red); border: 2px solid var(--red); border-radius: 0;
  padding: 11px 18px; cursor: pointer;
}
.dam-addr-add:hover { background: var(--black); border-color: var(--black); }

/* auto-fill keeps a lone card from sitting half-width: 1 card centers,
 * 2+ wrap into a row. Billing section still uses single column. */
.dam-addr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.dam-addr-section:first-of-type .dam-addr-list { grid-template-columns: 1fr; }

.dam-addr-card { position: relative; border: 2px solid var(--black); background: #fff; display: flex; flex-direction: column; }
.dam-addr-card.is-default { border-color: var(--red); }
.dam-addr-card__defaulttag {
  position: absolute; top: 8px; right: 8px;
  background: var(--red); color: #fff;
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 4px 8px; line-height: 1;
}
.dam-addr-body { padding: 14px; flex: 1; }
.dam-addr-name { font-family: "Archivo", sans-serif; font-weight: 700; text-transform: uppercase; color: var(--black); margin-bottom: 4px; letter-spacing: 0.04em; }
.dam-addr-line { font-family: "Inter", sans-serif; font-size: 14px; color: var(--ink); line-height: 1.5; }
.dam-addr-meta { font-family: "Space Mono", monospace; font-size: 12px; color: var(--muted); margin-top: 6px; }
.dam-addr-empty { padding: 24px 14px; text-align: center; }
.dam-addr-empty p { font-family: "Inter", sans-serif; color: var(--muted); margin: 0 0 12px; }
/* Both billing + shipping use the same single full-width Modifier footer button. */
.dam-addr-card__edit {
  display: block; width: 100%; background: #fafafa; border: 0;
  border-top: 1px solid #eee; padding: 14px 12px;
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer;
  text-align: center; text-decoration: none; color: var(--red);
}
.dam-addr-card__edit:hover { background: var(--red); color: #fff; }

/* Address-book modal */
.dam-addr-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 6vh 16px 4vh; }
.dam-addr-modal[hidden] { display: none; }
.dam-addr-modal__backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.55); }
.dam-addr-modal__panel { position: relative; background: #fff; border: 2px solid var(--black); width: 100%; max-width: 520px; }
.dam-addr-modal__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 2px solid var(--black); }
.dam-addr-modal__head h3 { font-family: "Archivo", sans-serif; font-weight: 900; text-transform: uppercase; font-size: 16px; margin: 0; }
.dam-addr-modal__close { background: none; border: 0; cursor: pointer; font-size: 24px; color: var(--black); padding: 4px 8px; }
.dam-addr-modal__form { padding: 18px; }
.dam-addr-modal__default { display: flex; align-items: center; gap: 8px; margin: 4px 0 18px; font-family: "Inter", sans-serif; font-size: 14px; color: var(--ink); }
.dam-addr-modal__default input { width: 18px; height: 18px; accent-color: var(--red); }
.dam-addr-modal__actions { display: flex; gap: 16px; align-items: center; }

/* Shipping-only options below the main save actions — kept subtle so the
 * shipping modal looks identical to the billing modal at first glance. */
.dam-addr-modal__extras {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid #eee;
  display: flex; flex-direction: column; gap: 12px;
}
.dam-addr-modal__extras .dam-addr-modal__default {
  margin: 0; display: flex; align-items: center; gap: 8px;
  font-family: "Inter", sans-serif; font-size: 13px; color: var(--muted);
}
.dam-addr-modal__extras .dam-addr-modal__default input { width: 16px; height: 16px; accent-color: var(--red); }
.dam-addr-modal__delete {
  align-self: flex-start;
  background: none; border: 0; cursor: pointer; padding: 0;
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted);
}
.dam-addr-modal__delete:hover { color: var(--red); }

/* ─────────────── Favorites — heart on cards ─────────────── */
ul.products li.product, .products .product { position: relative; }
.dam-fav-btn {
  position: absolute; top: 8px; right: 8px; z-index: 5;
  width: 36px; height: 36px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.92); border: 2px solid var(--black); border-radius: 0;
  cursor: pointer; color: var(--black); transition: color 0.15s, background 0.15s;
}
.dam-fav-btn:hover { background: #fff; color: var(--red); }
.dam-fav-btn.is-fav { background: var(--red); color: #fff; border-color: var(--red); }
.dam-fav-btn.is-fav svg path { fill: currentColor; }
.dam-fav-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ─────────────── Favoris page — two tabs + brand-styled grid ─────────────── */
.dam-favoris-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 2px solid var(--black); margin: 0 0 24px; background: #fff;
}
.dam-favoris-tabs__btn {
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.06em;
  background: #fff; color: var(--black); border: 0;
  padding: 14px 8px; cursor: pointer;
}
.dam-favoris-tabs__btn + .dam-favoris-tabs__btn { border-left: 2px solid var(--black); }
.dam-favoris-tabs__btn.is-active { background: var(--black); color: #fff; }
.dam-favoris-tabs__btn:focus-visible { outline: 2px solid var(--red); outline-offset: -4px; }

.dam-favoris-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
@media (max-width: 540px) {
  .dam-favoris-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.dam-fav-card {
  position: relative; background: #fff;
  border: 2px solid var(--black);
  display: flex; flex-direction: column;
}
.dam-fav-card__media {
  display: block; position: relative;
  border-bottom: 2px solid var(--black);
  aspect-ratio: 1 / 1; overflow: hidden;
}
.dam-fav-card__media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.dam-fav-card__badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--red); color: #fff;
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 4px 8px; line-height: 1;
}
.dam-fav-card__body {
  display: block; padding: 12px; flex: 1;
  color: inherit; text-decoration: none;
}
.dam-fav-card__name {
  margin: 0 0 6px;
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--black); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dam-fav-card__price {
  font-family: "Space Mono", monospace; font-weight: 700; font-size: 15px;
  color: var(--black);
}
.dam-fav-card__price del { color: var(--muted); margin-right: 6px; font-weight: 400; }
.dam-fav-card__price ins { text-decoration: none; }
/* The .card__cart strip already has all its sizing in style.css's shop-card
 * block — we just need to make sure the border on top matches the favoris
 * card border, not the shop card border. */
.dam-fav-card .card__cart { border-top: 2px solid var(--black); }

/* Heart on the card overrides the shop-loop heart styling (which uses
 * absolute positioning relative to li.product). */
.dam-fav-btn--card {
  position: absolute; top: 8px; right: 8px; z-index: 5;
}

/* Favoris empty state */
.dam-favoris-empty { text-align: center; padding: 48px 24px; max-width: 460px; margin: 0 auto; }
.dam-favoris-empty h3 { font-family: "Archivo", sans-serif; font-weight: 900; text-transform: uppercase; font-size: 22px; margin: 0 0 12px; }
.dam-favoris-empty p { font-family: "Inter", sans-serif; color: var(--muted); margin: 0 0 22px; line-height: 1.5; }
.dam-favoris-empty__cta { display: inline-block; font-family: "Archivo", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; background: var(--red); color: #fff; padding: 13px 22px; text-decoration: none; }
.dam-favoris-empty__cta:hover { background: var(--black); color: #fff; }

@media (max-width: 820px) {
  .woocommerce-account .woocommerce { grid-template-columns: 1fr; }
  .myacc__grid { grid-template-columns: 1fr; }
  .myacc__title { font-size: 32px; }
  .woocommerce-account .u-columns { grid-template-columns: 1fr; }
  .woocommerce-account .woocommerce-Addresses { grid-template-columns: 1fr; }
  .dam-row--two { grid-template-columns: 1fr; }
  .dam-modal__panel { margin: 4vh 16px 0; }
  .dam-order-actions { flex-direction: column; align-items: stretch; }
  .dam-addr-list { grid-template-columns: 1fr; }
}
