/**
 * Styles frontend Iron Wallet
 */

:root {
  /* ==============================================
     DESIGN TOKENS — Source : Elementor Kit (989258)
     ============================================== */

  /* ---- Couleurs branding ---- */
  --iw-black: var(--e-global-color-ironclub_noir, #000000);
  --iw-white: var(--e-global-color-ironclub_blanc, #ffffff);
  --iw-beige: var(--e-global-color-ironclub_beige, #faf5ef);
  --iw-brown: var(--e-global-color-ironclub_marron, #5a0e1c);
  --iw-gray: var(--e-global-color-ironclub_gris, #777777);
  --iw-gray-100: var(--e-global-color-ironclub_gris_clair, #f5f5f5);

  /* ---- Couleurs sémantiques ---- */
  --iw-border: var(--e-global-color-vamtam_accent_7, #0000001a);
  --iw-muted: var(--e-global-color-vamtam_accent_8, #00000099);
  --iw-success: var(--e-global-color-vamtam_success, #059669);
  --iw-danger: var(--e-global-color-vamtam_error, #dc2626);
  --iw-warning: var(--e-global-color-warning, #d97706);
  --iw-info: var(--e-global-color-info, #2563eb);

  /* ---- Typographie — police principale ---- */
  --iw-font: var(--e-global-typography-police_principale-font-family, 'Montserrat', sans-serif);
  --iw-base: var(--e-global-typography-police_principale-font-size, 14px);
  --iw-weight: var(--e-global-typography-police_principale-font-weight, 500);
  --iw-lh: var(--e-global-typography-police_principale-line-height, 1.8);

  /* ---- Typographie — titres (font-size) ---- */
  --iw-h1: var(--e-global-typography-titre_h1-font-size, 30px);
  --iw-h2: var(--e-global-typography-titre_h2-font-size, 26px);
  --iw-h3: var(--e-global-typography-titre_h3-font-size, 22px);
  --iw-h4: var(--e-global-typography-titre_h4-font-size, 20px);
  --iw-h5: var(--e-global-typography-titre_h5-font-size, 18px);
  --iw-h6: var(--e-global-typography-titre_h6-font-size, 16px);

  /* ---- Rayon de bord standard ---- */
  --iw-radius: 12px;

  /* ---- Alias rétrocompatibilité (consommés dans ce fichier) ---- */
  --iw-text: var(--iw-black);
  --iw-font-family: var(--iw-font);
  --iw-card: var(--iw-white);
  --iw-surface: var(--iw-gray-100);
  --iw-accent: var(--e-global-color-vamtam_accent_1, var(--iw-brown));
  --iw-accent-strong: var(--e-global-color-vamtam_accent_1, var(--iw-black));
  --iw-chip-bg: var(--e-global-color-vamtam_accent_3, var(--iw-gray-100));
}

/* ==============================================
   BASE — Héritage typo & couleur sur zones Iron Club
   ============================================== */

/* Plugin : containers principaux Iron Wallet */
.iron-wallet-account,
.iron-wallet-history-container,
.iron-wallet-subscription-plans,
.iron-wallet-dashboard-intro,
.iron-wallet-overview-grid {
  font-family: var(--iw-font);
  color: var(--iw-black);
}

/* WooCommerce : contenu Mon Compte */
.woocommerce-account .woocommerce-MyAccount-content {
  font-family: var(--iw-font);
  color: var(--iw-black);
}

/* WooCommerce : panier */
.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .cart-collaterals {
  font-family: var(--iw-font);
  color: var(--iw-black);
}

/* WooCommerce : checkout */
.woocommerce-checkout #customer_details,
.woocommerce-checkout .woocommerce-checkout-review-order {
  font-family: var(--iw-font);
  color: var(--iw-black);
}

/* WooCommerce : checkout — ligne "Collecte & Livraison" (shipping th)
   Alignement sur cart.css (.cart_totals tr th → font-weight: 500) */
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.shipping th {
  font-weight: 500 !important;
  font-size: var(--iw-base) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* WooCommerce : cart — ligne "Collecte & Livraison" (shipping th)
   Sécurité : aligne la typo même si cart.css n'a pas priorité */
.woocommerce-cart .cart_totals tr.shipping th {
  font-weight: 500 !important;
  font-size: var(--iw-base) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* Bordures génériques tableaux Iron Wallet */
.iron-wallet-table,
.iron-wallet-ledger-table {
  border-color: var(--iw-border);
}

/* Force container width for all tabs */
.woocommerce-account .woocommerce-MyAccount-content {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto;
  margin-right: auto;
}

/* Widget Elementor My Account : Largeur 1200px */
.elementor-widget-woocommerce-my-account {
  width: 1200px !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.iron-wallet-account {
  width: 100%;
  font-family: var(--iw-font-family);
}

.iron-wallet-balance-widget {
  background: linear-gradient(135deg, var(--iw-accent) 0%, var(--iw-accent-strong) 100%);
  color: var(--iw-card);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.iron-wallet-balance-widget h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  opacity: 0.9;
  font-weight: 500;
}

.iron-wallet-balance-amount {
  font-size: 48px;
  font-weight: bold;
  line-height: 1.2;
}

.iron-wallet-balance-amount .label {
  font-size: 24px;
  font-weight: normal;
  opacity: 0.9;
  margin-left: 10px;
}

.iron-wallet-ledger {
  background: var(--iw-card);
  padding: 20px;
  border: 1px solid var(--iw-border);
  border-radius: 12px;
}

.iron-wallet-ledger h3 {
  margin-top: 0;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--iw-accent);
}

.iron-wallet-ledger-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.iron-wallet-ledger-table thead th {
  background: var(--iw-surface);
  padding: 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--iw-border);
}

.iron-wallet-ledger-table tbody td {
  padding: 12px;
  border-bottom: 1px solid var(--iw-border);
}

.iron-wallet-ledger-table tbody tr:hover {
  background: var(--iw-surface);
}

.iron-wallet-ledger-table .amount.positive {
  color: var(--iw-success);
  font-weight: bold;
}

.iron-wallet-ledger-table .amount.negative {
  color: var(--iw-danger);
  font-weight: bold;
}

.iron-wallet-ledger-table .date {
  white-space: nowrap;
  color: var(--iw-muted);
  font-size: 14px;
}

.iron-wallet-ledger-table .balance {
  font-weight: 600;
  text-align: right;
}

.iron-wallet-account {
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
}

.iron-wallet-account__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/* Intro Dashboard */
.iron-wallet-dashboard-intro h2 {
  margin-bottom: 25px;
  font-weight: 700;
  font-size: 24px;
  font-family: var(--iw-font-family);
}

.iron-wallet-card,
.iron-wallet-stat-card {
  background-color: var(--e-global-color-ironclub_beige, #faf5ef) !important;
  /* Beige demandé */
  border: 1px solid var(--iw-border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: none;
  /* Flat design comme sur la demande */
}

/* On force la couleur des textes dans les cartes beiges */
.iron-wallet-stat-card p,
.iron-wallet-stat-card__label,
.iron-wallet-stat-card__value {
  color: var(--iw-black);
}

.iron-wallet-stat-card__label {
  color: rgba(31, 41, 55, 0.7);
}

.iron-wallet-card--balance {
  background: linear-gradient(135deg, var(--iw-accent), #6366f1);
  color: var(--iw-card);
}

.iron-wallet-card__label {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(71, 85, 105, 0.9);
  margin-bottom: 8px;
}

.iron-wallet-card--balance .iron-wallet-card__label {
  color: rgba(255, 255, 255, 0.7);
}

.iron-wallet-card__value {
  font-size: 28px;
  font-weight: 600;
  margin: 0;
}

.iron-wallet-card--balance .iron-wallet-card__value {
  font-size: 34px;
}

.iron-wallet-card__meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--iw-muted);
}

.iron-wallet-card--balance .iron-wallet-card__meta {
  color: rgba(255, 255, 255, 0.85);
}

.iron-wallet-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.iron-wallet-card__icon {
  font-size: 20px;
  color: var(--iw-muted);
  width: 20px;
  height: 20px;
}

.iron-wallet-card--balance .iron-wallet-card__icon {
  color: rgba(255, 255, 255, 0.5);
}

.iron-wallet-card__value.is-small {
  font-size: 18px;
  margin-bottom: 5px;
}

.iron-wallet-card__subvalue {
  font-size: 14px;
  margin: 5px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.iron-wallet-card__actions {
  margin-top: 15px;
}

.iron-wallet-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin-top: 15px;
  overflow: hidden;
}

.iron-wallet-progress-fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
}

.iron-wallet-btn-full {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 10px;
}

.iron-wallet-empty-state {
  text-align: center;
  padding: 10px 0;
}

.iron-wallet-empty-history {
  text-align: center;
  padding: 40px 20px;
  color: var(--iw-muted);
}

.iron-wallet-empty-history .dashicons {
  font-size: 40px;
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  color: var(--iw-border);
}

.iron-wallet-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--iw-gray-100);
}

.iron-wallet-section-header h3 {
  margin: 0;
  font-size: 16px;
}

.iron-wallet-table th.text-right,
.iron-wallet-table td.text-right {
  text-align: right;
}

.iron-wallet-date {
  display: block;
  font-weight: 500;
  color: var(--iw-black);
}

.iron-wallet-time {
  display: block;
  font-size: 11px;
  color: var(--iw-muted);
}

.iron-wallet-description {
  display: block;
  color: var(--iw-text);
}

.iron-wallet-ref-link {
  font-size: 11px;
  color: var(--iw-muted);
  text-decoration: none;
}

.iron-wallet-amount {
  font-weight: 600;
  font-family: monospace;
  font-size: 15px;
}

.iron-wallet-amount.positive {
  color: var(--iw-success);
}

.iron-wallet-amount.negative {
  color: var(--iw-danger);
}

.iron-wallet-balance-snapshot {
  color: var(--iw-muted);
  font-size: 13px;
}

.iron-wallet-order-info {
  display: flex;
  flex-direction: column;
}

.iron-wallet-order-info .date {
  font-size: 11px;
  color: var(--iw-muted);
}

.iron-wallet-order-info .desc {
  font-weight: 500;
  color: var(--iw-text);
}

.iron-wallet-table-wrapper {
  overflow-x: auto;
}

.iron-wallet-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.iron-wallet-table thead th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--iw-muted);
  padding-bottom: 8px;
}

.iron-wallet-table tbody td {
  padding: 10px 0;
  border-top: 1px solid var(--iw-gray-100);
  font-size: 14px;
}

.iron-wallet-orders ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.iron-wallet-orders li {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px 0;
  border-top: 1px solid var(--iw-gray-100);
}

.iron-wallet-orders li:first-child {
  border-top: 0;
}

.iron-wallet-link {
  color: var(--iw-accent);
  text-decoration: none;
  font-weight: 600;
}

.iron-wallet-link:hover {
  text-decoration: underline;
}

/* Checkout */
.iron-wallet-checkout-info {
  background: var(--iw-surface);
  padding: 15px;
  border-radius: 6px;
  margin-top: 10px;
}

.iron-wallet-checkout-info p {
  margin: 8px 0;
}

.iron-wallet-insufficient {
  background: var(--iw-surface);
  padding: 12px;
  border-left: 4px solid var(--iw-danger);
  border-radius: 4px;
}

.iron-wallet-sufficient {
  background: var(--iw-surface);
  padding: 12px;
  border-left: 4px solid var(--iw-success);
  border-radius: 4px;
}

/* Prix en crédits */
.iron-wallet-price,
.iron-wallet-cart-price,
.iron-wallet-cart-subtotal,
.iron-wallet-cart-total {
  color: var(--iw-accent);
  font-weight: 600;
}

.iron-wallet-badge,
.iron-wallet-badge a,
.iron-wallet-badge-li a {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--iw-chip-bg);
  color: var(--iw-text);
  font-weight: 600;
  text-decoration: none;
}

.iron-wallet-badge a:hover,
.iron-wallet-badge-li a:hover {
  color: var(--iw-text);
}

/* Utility Classes */
.iron-wallet-error-text {
  color: var(--iw-danger);
}

.iron-wallet-success-text {
  color: var(--iw-success);
}

.iron-wallet-info-text {
  color: var(--iw-info);
}

.iron-wallet-hero {
  background: linear-gradient(135deg, var(--iw-accent) 0%, var(--iw-accent-strong) 100%);
  color: var(--iw-card);
  padding: 24px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.iron-wallet-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  margin: 0 0 4px;
  opacity: 0.9;
}

.iron-wallet-hero__title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  font-family: var(--iw-font-family);
}

.iron-wallet-hero__meta {
  margin: 6px 0 0;
  opacity: 0.9;
}

.iron-wallet-hero__badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.iron-wallet-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--iw-card);
}

.iron-wallet-status-badge.is-active {
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.iron-wallet-status-badge.is-inactive {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.iron-wallet-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--iw-card);
  font-size: 13px;
}

/* GRID DASHBOARD */
.iron-wallet-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
  width: 100%;
}

/* CARDS STYLE */
.iron-wallet-stat-card {
  background-color: var(--e-global-color-ironclub_beige, #faf5ef) !important;
  /* Beige forced */
  border-radius: 12px;
  padding: 24px;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 16px;
  align-items: start;
  border: none;
}

/* Alignement Icone + Texte */
.iron-wallet-stat-card__icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: var(--iw-black);
  margin-bottom: 0;
  flex-shrink: 0;
  align-self: start;
}

.iron-wallet-stat-card__body {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.iron-wallet-stat-card__label {
  font-size: 16px;
  color: rgba(31, 41, 55, 0.7);
  margin: 0 0 5px 0;
  font-weight: 700;
  text-transform: none;
  font-family: var(--iw-font-family);
}

.iron-wallet-stat-card__value {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--iw-black);
  line-height: 1.2;
  font-family: var(--iw-font-family);
}

.iron-wallet-stat-card__meta {
  display: none;
  font-size: 13px;
  color: rgba(31, 41, 55, 0.5);
  margin-top: 5px;
}

/* Classes utilitaires pour les montants */
.iron-wallet-stat-card__value.iron-wallet-negative {
  color: var(--iw-danger);
  /* Rouge */
}

.iron-wallet-stat-card__value.iron-wallet-positive {
  color: var(--iw-success);
  /* Vert */
}

.iron-wallet-stat-card__value .unit {
  font-size: 14px;
  font-weight: 500;
  color: rgba(31, 41, 55, 0.6);
  vertical-align: middle;
  margin-left: 4px;
}

/* Responsive Stack */
@media (max-width: 767px) {
  .iron-wallet-overview-grid {
    grid-template-columns: 1fr;
  }
}

.iron-wallet-price-missing {
  color: var(--iw-danger);
  font-weight: 600;
}

/* Stripe confirmation */
.iron-wallet-stripe-confirmation {
  margin: 20px 0;
  padding: 20px;
  background: var(--iw-surface);
  border: 1px solid var(--iw-border);
  border-radius: 4px;
}

.iron-wallet-split-summary {
  margin: 15px 0;
  padding: 15px;
  background: var(--iw-card);
  border: 1px solid var(--iw-border);
  border-radius: 4px;
}

.iron-wallet-split-summary p {
  margin: 0 0 10px 0;
}

.iron-wallet-split-summary ul {
  margin: 0;
  padding-left: 20px;
}

.iron-wallet-stripe-form {
  margin-top: 20px;
}

.iron-wallet-stripe-card-element {
  padding: 10px;
  background: var(--iw-card);
  border: 1px solid var(--iw-border);
  border-radius: 4px;
}

.iron-wallet-stripe-errors {
  color: var(--iw-danger);
  margin-top: 10px;
  display: none;
}

.iron-wallet-confirm-button {
  margin-top: 15px;
  width: 100%;
}

.iron-wallet-btn-small {
  padding: 6px 12px !important;
  font-size: 12px !important;
  border-radius: 8px !important;
  background: var(--iw-black) !important;
  color: var(--iw-white) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  transition: background-color 0.2s ease !important;
  border: none !important;
  font-weight: 600 !important;
}

.iron-wallet-btn-small:hover {
  background: var(--iw-gray) !important;
  color: var(--iw-white) !important;
}

.iron-wallet-btn-small .dashicons {
  color: var(--iw-white) !important;
  font-size: 14px !important;
  width: 14px !important;
  height: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.iron-wallet-payment-processing {
  display: none;
  margin-top: 20px;
  padding: 15px;
  background: var(--iw-card);
  border: 1px solid var(--iw-border);
  border-radius: 4px;
  text-align: center;
}

@media (max-width: 767px) {
  .iron-wallet-balance-amount {
    font-size: 36px;
  }

  .iron-wallet-balance-amount .label {
    font-size: 18px;
  }

  /* Ledger - Mobile Card Layout */
  .iron-wallet-ledger {
    padding: 8px 0;
  }

  .iron-wallet-ledger h3 {
    padding: 0 16px 15px 16px;
    margin: 0 16px 0 16px;
    border-bottom: 2px solid var(--iw-accent);
    margin-bottom: 16px;
  }

  .iron-wallet-ledger-table {
    font-size: 14px;
    display: block;
    border-collapse: separate;
  }

  .iron-wallet-ledger-table thead {
    display: none;
  }

  .iron-wallet-ledger-table tbody {
    display: block;
  }

  .iron-wallet-ledger-table tbody tr {
    background: var(--iw-surface, #f9fafb);
    border: 1px solid var(--iw-border, #e5e7eb);
    border-radius: 10px;
    padding: 20px 16px;
    display: block;
    margin: 0 12px 18px 12px;
    border-bottom: none;
  }

  .iron-wallet-ledger-table tbody tr:hover {
    background: var(--iw-gray-100);
    border-color: var(--iw-accent, #4338ca);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .iron-wallet-ledger-table tbody td {
    padding: 0;
    border: none;
    display: block;
    margin-bottom: 12px;
  }

  .iron-wallet-ledger-table tbody td:last-child {
    margin-bottom: 0;
  }

  /* Date: Top, smaller, muted */
  .iron-wallet-ledger-table tbody td.date {
    font-size: 12px;
    color: var(--iw-muted);
    margin-bottom: 14px;
    font-weight: 500;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  /* Description: Full width */
  .iron-wallet-ledger-table tbody td.description {
    font-size: 14px;
    font-weight: 500;
    color: var(--iw-text, #1f2937);
    margin-bottom: 14px;
    line-height: 1.5;
  }

  .iron-wallet-ledger-table tbody td.description small {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: normal;
  }

  .iron-wallet-ledger-table tbody td.description a {
    color: var(--iw-accent, #4338ca);
    text-decoration: none;
  }

  .iron-wallet-ledger-table tbody td.description a:hover {
    text-decoration: underline;
  }

  /* Amount and Balance row: Bottom, side by side */
  .iron-wallet-ledger-table tbody td.amount,
  .iron-wallet-ledger-table tbody td.balance {
    display: inline-block;
    width: calc(50% - 5px);
    text-align: right;
    font-weight: 600;
    margin-bottom: 0;
    vertical-align: top;
    padding-bottom: 8px;
  }

  .iron-wallet-ledger-table tbody td.amount {
    margin-right: 10px;
  }

  .iron-wallet-ledger-table tbody td.balance {
    margin-left: 0;
  }

  .iron-wallet-ledger-table .amount.positive {
    color: var(--iw-success);
  }

  .iron-wallet-ledger-table .amount.negative {
    color: var(--iw-danger);
  }

  /* Add labels via pseudo-elements */
  .iron-wallet-ledger-table tbody td.amount::before {
    content: 'Montant';
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--iw-muted);
    margin-bottom: 3px;
    opacity: 0.8;
  }

  .iron-wallet-ledger-table tbody td.balance::before {
    content: 'Solde';
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--iw-muted);
    margin-bottom: 3px;
    opacity: 0.8;
  }

  .iron-wallet-orders li {
    flex-direction: column;
    gap: 6px;
  }
}

/* ============================================
   HISTORIQUE (account-wallet) – MOBILE CARDS
   ============================================ */
@media (max-width: 767px) {
  /* Container global */
  .iron-wallet-history-container {
    padding: 0;
  }

  /* Section headers */
  .iron-wallet-history-container .iron-wallet-section-header {
    padding: 0 4px 10px 4px;
  }

  .iron-wallet-history-container .iron-wallet-section-header h3 {
    font-size: 15px;
  }

  /* Masquer le thead */
  .iron-wallet-table thead {
    display: none;
  }

  /* Table en bloc */
  .iron-wallet-table {
    display: block;
    margin-top: 10px;
  }

  .iron-wallet-table tbody {
    display: block;
  }

  /* Chaque ligne = une carte */
  .iron-wallet-table tbody tr {
    display: block;
    background: var(--iw-surface, #f9fafb);
    border: 1px solid var(--iw-border, #e5e7eb);
    border-radius: 10px;
    padding: 16px 14px;
    margin-bottom: 14px;
  }

  /* Cellules en bloc */
  .iron-wallet-table tbody td {
    display: block;
    padding: 4px 0;
    border: none;
    text-align: left !important;
  }

  /* ---- TABLE 1 : Transactions d'achat (Abonnements) ---- */

  /* Commande (1ère cellule) : texte principal */
  .iron-wallet-orders-history .iron-wallet-table tbody td:nth-child(1) {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    line-height: 1.4;
  }

  .iron-wallet-orders-history .iron-wallet-order-number {
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
  }

  /* Date (2ème cellule) */
  .iron-wallet-orders-history .iron-wallet-table tbody td:nth-child(2) {
    font-size: 12px;
    color: var(--iw-muted);
    margin-bottom: 8px;
  }

  .iron-wallet-orders-history .iron-wallet-date {
    font-size: 12px;
    font-weight: 400;
    color: var(--iw-muted);
  }

  /* État (3ème cellule) et Total (4ème cellule) : côte à côte */
  .iron-wallet-orders-history .iron-wallet-table tbody td:nth-child(3),
  .iron-wallet-orders-history .iron-wallet-table tbody td:nth-child(4) {
    display: inline-block;
    width: calc(50% - 6px);
    vertical-align: top;
    margin-top: 6px;
  }

  .iron-wallet-orders-history .iron-wallet-table tbody td:nth-child(3)::before {
    content: 'État';
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--iw-muted);
    margin-bottom: 2px;
  }

  .iron-wallet-orders-history .iron-wallet-table tbody td:nth-child(4)::before {
    content: 'Total';
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--iw-muted);
    margin-bottom: 2px;
  }

  /* Facture (5ème cellule) */
  .iron-wallet-orders-history .iron-wallet-table tbody td:nth-child(5) {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  .iron-wallet-orders-history .iron-wallet-actions-row {
    justify-content: flex-start;
  }

  /* ---- TABLE 2 : Historique des mouvements (Crédits) ---- */

  /* Commande/Description (1ère cellule) */
  .iron-wallet-history .iron-wallet-table tbody td:nth-child(1) {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.4;
  }

  .iron-wallet-history .iron-wallet-description {
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
  }

  /* Date (2ème cellule) */
  .iron-wallet-history .iron-wallet-table tbody td:nth-child(2) {
    font-size: 12px;
    color: var(--iw-muted);
    margin-bottom: 8px;
  }

  .iron-wallet-history .iron-wallet-date {
    font-size: 12px;
    font-weight: 400;
    color: var(--iw-muted);
  }

  /* Montant (3ème cellule) et Solde (4ème cellule) : côte à côte */
  .iron-wallet-history .iron-wallet-table tbody td:nth-child(3),
  .iron-wallet-history .iron-wallet-table tbody td:nth-child(4) {
    display: inline-block;
    width: calc(50% - 6px);
    vertical-align: top;
    margin-top: 6px;
  }

  .iron-wallet-history .iron-wallet-table tbody td:nth-child(3)::before {
    content: 'Montant';
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--iw-muted);
    margin-bottom: 2px;
  }

  .iron-wallet-history .iron-wallet-table tbody td:nth-child(4)::before {
    content: 'Solde';
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--iw-muted);
    margin-bottom: 2px;
  }

  /* Bouton Voir Plus */
  .iron-wallet-load-more {
    text-align: center;
    margin-top: 10px;
  }

  .iron-wallet-toggle-btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Suppression du background pour le bouton Iron Wallet spécifique */
/* Bouton Enregistrer les modifications (Onglet Informations) */
/* Bouton Enregistrer les modifications (Onglet Informations & Adresses) */
.woocommerce-account .woocommerce-EditAccountForm .button[name='save_account_details'],
.woocommerce-account .woocommerce-address-fields .button[name='save_address'] {
  border-radius: 12px !important;
  padding: 12px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  width: auto !important;
  background: var(--iw-black) !important;
  color: var(--iw-white) !important;
  border: none !important;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.woocommerce-account .woocommerce-EditAccountForm .button[name='save_account_details']:hover,
.woocommerce-account .woocommerce-address-fields .button[name='save_address']:hover {
  background: var(--iw-gray) !important;
  color: var(--iw-white) !important;
}

/* Lien "Modifier" pour les adresses : Layout et Style */

/* Restructurer le bloc adresse en colonne : Titre > Adresse > Bouton */
.woocommerce-account .woocommerce-Address {
  display: flex;
  flex-direction: column;
}

/* Forcer le header à être en flex-column aussi pour sortir le bouton */
.woocommerce-account .woocommerce-Address-title {
  display: contents;
  /* Le header se "dissout", ses enfants sont dans le flux parent */
}

/* Ordre : 1. Titre, 2. Adresse, 3. Bouton */
.woocommerce-account .woocommerce-Address-title h2 {
  order: 1;
  margin: 0 0 15px 0;
  font-size: 20px;
}

.woocommerce-account .woocommerce-Address address {
  order: 2;
  margin-bottom: 20px;
}

.woocommerce-account .woocommerce-Address-title a.edit {
  order: 3;
  align-self: flex-start;
  /* Aligner à gauche */
  float: none !important;
  display: inline-block;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  text-decoration: none !important;
  background-color: var(--iw-black) !important;
  color: var(--iw-white) !important;
  padding: 12px 20px !important;
  border-radius: 12px !important;
  border: none !important;
  transition: background-color 0.2s ease;
  margin-top: 10px;
}

.woocommerce-account .woocommerce-Address-title a.edit:hover {
  background-color: var(--iw-gray) !important;
  color: var(--iw-white) !important;
}

/* Override Elementor default positioning for edit buttons */
.elementor-widget-woocommerce-my-account
  .e-my-account-tab:not(.e-my-account-tab__dashboard--custom)
  .woocommerce-Address
  .edit,
.elementor-widget-woocommerce-my-account
  .e-my-account-tab:not(.e-my-account-tab__dashboard--custom)
  .woocommerce-Addresses
  .edit {
  float: none !important;
  margin-inline-start: 0 !important;
  position: static !important;
}

/* Bouton "Voir plus" (Historique) */
.iron-wallet-toggle-btn {
  color: white !important;
  background-color: black !important;
  border-radius: 12px !important;
  padding: 10px 20px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer;
  margin-top: 15px;
  transition: opacity 0.3s ease;
}

.iron-wallet-toggle-btn:hover {
  opacity: 0.8;
}

/* Dashicons style already handled above */

.iron-wallet-actions-row {
  display: flex;
  gap: 5px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Espacement spécifique pour la zone de gestion d'abonnement */
.iron-wallet-subscription-actions .iron-wallet-actions-row {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Alignement à droite pour les tableaux (comme l'Historique) */
.iron-wallet-table .iron-wallet-actions-row {
  justify-content: flex-end;
}

/* Masquer la checkbox "Mettre à jour les abonnements" (toujours active par défaut) */
.woocommerce-input-wrapper label[for='update_all_subscriptions_billing_contact'],
.woocommerce-input-wrapper label[for='update_all_subscriptions_shipping_contact'],
#update_all_subscriptions_billing_contact,
#update_all_subscriptions_shipping_contact,
p:has(#update_all_subscriptions_billing_contact),
p:has(#update_all_subscriptions_shipping_contact) {
  display: none !important;
}

/* ============================================
   SUBSCRIPTION PLANS - STYLE NETFLIX
   ============================================ */

.iron-wallet-subscription-plans {
  width: 100%;
  box-sizing: border-box;
}

.iron-wallet-subscription-plans .iron-wallet-section-header {
  text-align: left !important;
  margin-bottom: 40px;
  flex-direction: column;
  display: flex;
  align-items: flex-start !important;
  /* Centré à gauche */
}

.iron-wallet-subscription-plans .iron-wallet-section-header h2 {
  font-size: 24px !important;
  color: var(--typography-section-titles-color, #000);
  font-weight: 400;
  margin-bottom: var(--section-title-spacing, 45px);
  margin-top: 20px;
  text-align: left;
}

.iron-wallet-current-status {
  font-size: 16px;
  color: var(--iw-black);
  /* Texte noir */
  font-weight: 400;
  /* Non gras */
}

.iron-wallet-current-status strong {
  font-weight: 400;
  /* Retire le gras du mot spécifique (ex: Plus) */
}

/* Plans Grid */
.iron-wallet-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 767px) {
  .iron-wallet-plans-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Plan Card */
.iron-wallet-plan-card {
  position: relative;
  background: var(--iw-white);
  border: 2px solid var(--iw-border);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  transition: none !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.iron-wallet-plan-card:hover {
  border-color: var(--iw-border) !important;
  transform: none !important;
  box-shadow: none !important;
}

.iron-wallet-plan-card[data-plan='play'] {
  order: 1;
}

.iron-wallet-plan-card[data-plan='plus'] {
  order: 2;
}

.iron-wallet-plan-card[data-plan='prime'] {
  order: 3;
}

.iron-wallet-plan-card.is-current {
  border-color: var(--iw-black);
  background: var(--iw-gray-100);
}

/* Plan Badge */
.iron-wallet-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.iron-wallet-plan-badge.popular {
  background: var(--iw-black);
  color: var(--iw-white);
}

.iron-wallet-plan-badge.premium {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: var(--iw-black);
}

/* Plan Header */
.iron-wallet-plan-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--iw-black);
  text-transform: uppercase !important;
}

.iron-wallet-plan-price {
  font-size: 18px;
  color: var(--iw-gray);
}

.iron-wallet-plan-price .woocommerce-Price-amount {
  font-size: 30px;
  font-weight: 700;
  color: var(--iw-black);
}

.iron-wallet-plan-price .subscription-details {
  display: inline;
  font-size: 13px;
  color: var(--iw-muted);
  margin-left: 6px;
}

/* Credits mensuels */
.iron-wallet-plan-credits {
  font-size: 28px;
  font-weight: 700;
  color: var(--iw-gray);
  line-height: 1.2;
  font-family: var(--iw-font-family);
}

.iron-wallet-plan-price--small {
  font-size: 13px;
  color: var(--iw-muted);
}

.iron-wallet-plan-price--small .woocommerce-Price-amount {
  font-size: 16px;
  font-weight: 600;
  color: var(--iw-black);
}

.iron-wallet-plan-action-row {
  margin-top: 0;
  padding-top: 20px;
}

/* Buttons */
.iron-wallet-btn-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--iw-black);
  color: var(--iw-white);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

.iron-wallet-btn-current .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.iron-wallet-btn-manage {
  display: inline-block;
  padding: 10px 20px;
  background: transparent;
  color: var(--iw-gray);
  border: 1px solid var(--iw-border);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.iron-wallet-btn-manage:hover {
  background: var(--iw-gray-100);
  color: var(--iw-black);
}

.iron-wallet-btn-switch,
.iron-wallet-btn-subscribe {
  display: inline-block;
  padding: 14px 24px;
  background: var(--iw-black);
  color: var(--iw-white) !important;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.iron-wallet-btn-switch:hover,
.iron-wallet-btn-subscribe:hover {
  background: var(--iw-gray);
}

.iron-wallet-btn-disabled {
  background: var(--iw-border) !important;
  color: var(--iw-muted) !important;
  cursor: not-allowed;
  transform: none !important;
}

.iron-wallet-btn-disabled:hover {
  background: var(--iw-border) !important;
}

/* Subscription Actions */
.iron-wallet-subscription-actions {
  margin-top: 50px;
  margin-bottom: 30px;
}

.iron-wallet-subscription-actions h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
}

.iron-wallet-btn-danger {
  background: var(--iw-danger) !important;
  color: var(--iw-white) !important;
}

.iron-wallet-btn-danger:hover {
  background: #b91c1c !important;
}

.iron-wallet-plan-action {
  font-family: var(--e-global-typography-42e5f91-font-family), Sans-serif;
  font-size: var(--e-global-typography-42e5f91-font-size);
  font-weight: var(--e-global-typography-42e5f91-font-weight);
  text-transform: var(--e-global-typography-42e5f91-text-transform);
  line-height: var(--e-global-typography-42e5f91-line-height);
  letter-spacing: var(--e-global-typography-42e5f91-letter-spacing);
  border-radius: 12px;
  border-style: solid;
  border-width: 1px;
  border-color: var(--e-global-color-ironclub_gris);
  padding: 12px 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.iron-wallet-plan-action:hover,
.iron-wallet-plan-action:focus {
  background-color: var(--iw-gray);
  color: var(--iw-white) !important;
  border-color: var(--iw-gray);
  border-radius: 12px;
}

.iron-wallet-plan-action.iron-wallet-btn-disabled,
.iron-wallet-plan-action--disabled {
  background: var(--iw-border);
  color: var(--iw-muted) !important;
  cursor: not-allowed;
}

/* ==============================================
   IW TYPOGRAPHY BRIDGE (theme parity)
   Aligne la typographie Iron Wallet sur le Kit Elementor 989258.
   Source de vérité : variables --e-global-typography-*
   Breakpoints Kit : 1024px (tablet), 767px (mobile)

   Sélecteurs cibles :
   – .woocommerce-account .woocommerce-MyAccount-content  (wallet, ledger, plans, dashboard)
   – .iron-wallet-topup            (page recharge hors My Account)
   – .iron-wallet-checkout-info    (encart crédits au checkout)
   – .iron-wallet-stripe-form      (formulaire Stripe recharge)
   ============================================== */

/* ---- Body text — containers Iron Wallet ---- */
.woocommerce-account .woocommerce-MyAccount-content,
.iron-wallet-topup,
.iron-wallet-checkout-info,
.iron-wallet-stripe-form {
  font-family: var(--e-global-typography-police_principale-font-family, 'Montserrat', sans-serif);
  font-size: var(--e-global-typography-police_principale-font-size, 14px);
  font-weight: var(--e-global-typography-police_principale-font-weight, 500);
  line-height: var(--e-global-typography-police_principale-line-height, 1.8em);
  letter-spacing: var(--e-global-typography-police_principale-letter-spacing, 0px);
  text-transform: inherit;
}

/* ---- H1 ---- */
.woocommerce-account .woocommerce-MyAccount-content h1,
.iron-wallet-topup h1,
.iron-wallet-checkout-info h1 {
  font-family: var(--e-global-typography-titre_h1-font-family, 'Montserrat', sans-serif);
  font-size: var(--e-global-typography-titre_h1-font-size, 30px);
  font-weight: var(--e-global-typography-titre_h1-font-weight, 600);
  text-transform: var(--e-global-typography-titre_h1-text-transform, uppercase);
  line-height: var(--e-global-typography-titre_h1-line-height, 1.1em);
  letter-spacing: var(--e-global-typography-titre_h1-letter-spacing, -1.5px);
}

/* ---- H2 ---- */
.woocommerce-account .woocommerce-MyAccount-content h2,
.iron-wallet-topup h2,
.iron-wallet-checkout-info h2 {
  font-family: var(--e-global-typography-titre_h2-font-family, 'Montserrat', sans-serif);
  font-size: var(--e-global-typography-titre_h2-font-size, 26px);
  font-weight: var(--e-global-typography-titre_h2-font-weight, 600);
  text-transform: var(--e-global-typography-titre_h2-text-transform, uppercase);
  line-height: var(--e-global-typography-titre_h2-line-height, 1.15em);
  letter-spacing: var(--e-global-typography-titre_h2-letter-spacing, -0.5px);
}

/* ---- H3 ---- */
.woocommerce-account .woocommerce-MyAccount-content h3,
.iron-wallet-topup h3,
.iron-wallet-checkout-info h3 {
  font-family: var(--e-global-typography-titre_h3-font-family, 'Montserrat', sans-serif);
  font-size: var(--e-global-typography-titre_h3-font-size, 22px);
  font-weight: var(--e-global-typography-titre_h3-font-weight, 600);
  text-transform: var(--e-global-typography-titre_h3-text-transform, uppercase);
  line-height: var(--e-global-typography-titre_h3-line-height, 1.2em);
  letter-spacing: var(--e-global-typography-titre_h3-letter-spacing, 0px);
}

/* ---- H4 ---- */
.woocommerce-account .woocommerce-MyAccount-content h4,
.iron-wallet-topup h4,
.iron-wallet-checkout-info h4 {
  font-family: var(--e-global-typography-titre_h4-font-family, 'Montserrat', sans-serif);
  font-size: var(--e-global-typography-titre_h4-font-size, 20px);
  font-weight: var(--e-global-typography-titre_h4-font-weight, 600);
  text-transform: var(--e-global-typography-titre_h4-text-transform, uppercase);
  line-height: var(--e-global-typography-titre_h4-line-height, 1.25em);
  letter-spacing: var(--e-global-typography-titre_h4-letter-spacing, 0.3px);
}

/* ---- H5 ---- */
.woocommerce-account .woocommerce-MyAccount-content h5,
.iron-wallet-topup h5,
.iron-wallet-checkout-info h5 {
  font-family: var(--e-global-typography-titre_h5-font-family, 'Montserrat', sans-serif);
  font-size: var(--e-global-typography-titre_h5-font-size, 18px);
  font-weight: var(--e-global-typography-titre_h5-font-weight, 500);
  text-transform: var(--e-global-typography-titre_h5-text-transform, uppercase);
  line-height: var(--e-global-typography-titre_h5-line-height, 1.3em);
  letter-spacing: var(--e-global-typography-titre_h5-letter-spacing, 0.5px);
}

/* ---- H6 ---- */
.woocommerce-account .woocommerce-MyAccount-content h6,
.iron-wallet-topup h6,
.iron-wallet-checkout-info h6 {
  font-family: var(--e-global-typography-titre_h6-font-family, 'Montserrat', sans-serif);
  font-size: var(--e-global-typography-titre_h6-font-size, 16px);
  font-weight: var(--e-global-typography-titre_h6-font-weight, 500);
  text-transform: var(--e-global-typography-titre_h6-text-transform, uppercase);
  line-height: var(--e-global-typography-titre_h6-line-height, 1.4em);
  letter-spacing: var(--e-global-typography-titre_h6-letter-spacing, 0.8px);
}

/* ---- Tablet / Mobile (≤ 767px) ----
   Fusion des breakpoints Kit en un seul palier.
   Les variables Elementor sont remappées par le Kit.
   Les fallbacks explicites couvrent le cas sans Elementor. ---- */
@media (max-width: 767px) {
  .woocommerce-account .woocommerce-MyAccount-content,
  .iron-wallet-topup,
  .iron-wallet-checkout-info,
  .iron-wallet-stripe-form {
    font-size: var(--e-global-typography-police_principale-font-size, 13px);
    line-height: var(--e-global-typography-police_principale-line-height, 1.65em);
  }

  .woocommerce-account .woocommerce-MyAccount-content h1,
  .iron-wallet-topup h1,
  .iron-wallet-checkout-info h1 {
    font-size: var(--e-global-typography-titre_h1-font-size, 26px);
    line-height: var(--e-global-typography-titre_h1-line-height, 1.15em);
  }

  .woocommerce-account .woocommerce-MyAccount-content h2,
  .iron-wallet-topup h2,
  .iron-wallet-checkout-info h2 {
    font-size: var(--e-global-typography-titre_h2-font-size, 22px);
    line-height: var(--e-global-typography-titre_h2-line-height, 1.2em);
  }

  .woocommerce-account .woocommerce-MyAccount-content h3,
  .iron-wallet-topup h3,
  .iron-wallet-checkout-info h3 {
    font-size: var(--e-global-typography-titre_h3-font-size, 18px);
    line-height: var(--e-global-typography-titre_h3-line-height, 1.25em);
  }

  .woocommerce-account .woocommerce-MyAccount-content h4,
  .iron-wallet-topup h4,
  .iron-wallet-checkout-info h4 {
    font-size: var(--e-global-typography-titre_h4-font-size, 16px);
    line-height: var(--e-global-typography-titre_h4-line-height, 1.35em);
  }

  .woocommerce-account .woocommerce-MyAccount-content h5,
  .iron-wallet-topup h5,
  .iron-wallet-checkout-info h5 {
    font-size: var(--e-global-typography-titre_h5-font-size, 14px);
    line-height: var(--e-global-typography-titre_h5-line-height, 1.4em);
  }

  .woocommerce-account .woocommerce-MyAccount-content h6,
  .iron-wallet-topup h6,
  .iron-wallet-checkout-info h6 {
    font-size: var(--e-global-typography-titre_h6-font-size, 12px);
    line-height: var(--e-global-typography-titre_h6-line-height, 1.45em);
  }
}

/* Integrated Split Payment Form */
.iron-wallet-stripe-integrated-form {
  margin-top: 20px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--iw-radius);
  box-shadow: none;
}

.iron-wallet-stripe-integrated-form label {
  color: #1a202c;
  font-family: var(--iw-font);
  font-weight: 700 !important;
  text-transform: uppercase;
  font-size: 13px !important;
  letter-spacing: 0.05em;
  margin-bottom: 12px !important;
}

.iron-wallet-stripe-card-element {
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: none !important;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.iron-wallet-stripe-card-element.StripeElement--focus {
  border-color: #bee3f8;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1) !important;
}

.iron-wallet-stripe-errors {
  color: var(--iw-danger);
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
}

/* Match theme buttons */
#place_order:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.iron-wallet-split-info {
  margin-bottom: 25px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #4a5568;
}

.iron-wallet-split-info strong {
  display: block;
  font-size: 13px;
  color: #718096;
  margin-bottom: 12px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.iron-wallet-split-info .credits-used {
  color: #2f855a;
  font-weight: 700;
}

.iron-wallet-split-info .amount-euros {
  color: #1a202c;
  font-weight: 800;
  font-size: 18px;
  margin-top: 8px;
  display: block;
}

/* Erreurs AJAX split */
#iron-wallet-split-external-errors {
  display: block;
  padding: 12px 18px;
  border-radius: 8px;
  background: #fff5f5;
  border-left: 4px solid #f56565;
  color: #c53030;
  margin-top: 15px;
  font-size: 14px;
}
