/* ============================================================
   Bloopin Payments — Page Mes paiements
   ============================================================ */

.bp-payments-page{
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* --- En-tête ------------------------------------------------ */
.bp-payments-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
  margin-bottom:2px;
}

.bp-payments-head__copy{
  min-width:0;
}

.bp-payments-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#22a1ee;
  font-size:var(--bp-text-micro);
  font-weight:900;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.bp-payments-eyebrow__icon{
  width:20px;
  height:20px;
  color:#22a1ee;
}

.bp-payments-head h1{
  margin:6px 0 5px;
  color:var(--bp-text);
  font-size:var(--bp-text-page-title);
  font-weight:800;
  line-height:1.2;
  letter-spacing:-.015em;
}

.bp-payments-head p{
  max-width:680px;
  margin:0;
  color:var(--bp-soft);
  font-size:var(--bp-text-body);
  font-weight:600;
  line-height:1.45;
}

.bp-payments-head__actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}

.bp-payments-head__actions .bp-btn{
  min-height:40px;
}

/* --- Messages / configuration ------------------------------ */
.bp-payments-banner{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:13px 15px;
  border-radius:var(--bp-radius-control);
  background:var(--bp-glass-3);
  box-shadow:none;
  font-size:var(--bp-text-meta);
  line-height:1.4;
}

.bp-payments-banner strong{
  color:var(--bp-text);
  white-space:nowrap;
}

.bp-payments-banner span{
  color:var(--bp-soft);
  font-weight:600;
}

.bp-payments-banner.is-test{
  background:color-mix(in srgb,var(--primary) 8%,var(--bp-surface));
}

.bp-payments-banner.is-error{
  background:#fff1f2;
  box-shadow:inset 0 0 0 1px rgba(180,35,24,.14);
}

.bp-payments-banner.is-error strong{
  color:#b42318;
}

.bp-payments-setup{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:18px;
}

.bp-payments-setup h2{
  margin:4px 0 6px;
  font-size:var(--bp-text-section-title);
}

.bp-payments-setup p{
  margin:0;
  color:var(--bp-soft);
  font-size:var(--bp-text-body);
}

/* --- Synthèse des encaissements ---------------------------- */
.bp-payments-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.bp-payments-kpi{
  min-width:0;
  padding:15px;
  border-radius:var(--bp-radius);
  background:var(--bp-surface);
  box-shadow:var(--bp-shadow-soft);
}

.bp-payments-kpi > span{
  display:block;
  color:var(--bp-soft);
  font-size:var(--bp-text-meta);
  font-weight:700;
}

.bp-payments-kpi > strong{
  display:block;
  margin-top:8px;
  color:var(--bp-text);
  font-size:clamp(20px,2vw,26px);
  font-weight:900;
  line-height:1;
  white-space:nowrap;
}

.bp-payments-kpi > small{
  display:block;
  margin-top:7px;
  color:var(--bp-soft);
  font-size:var(--bp-text-micro);
  font-weight:700;
}

/* --- Solde et versements ----------------------------------- */
.bp-payments-grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:12px;
}

.bp-payments-grid .bp-card{
  margin-top:0;
}

.bp-payments-balance__rows{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.bp-payments-balance__rows > div{
  min-width:0;
  padding:13px;
  border-radius:16px;
  background:var(--bp-glass-3);
}

.bp-payments-balance__rows span{
  display:block;
  color:var(--bp-soft);
  font-size:var(--bp-text-meta);
  font-weight:700;
  line-height:1.3;
}

.bp-payments-balance__rows strong{
  display:block;
  margin-top:7px;
  color:var(--bp-text);
  font-size:18px;
  font-weight:900;
  white-space:nowrap;
}

.bp-payments-note{
  margin:12px 0 0;
  padding:10px 12px;
  border-radius:14px;
  background:var(--bp-glass-3);
  color:var(--bp-soft);
  font-size:var(--bp-text-micro);
  font-weight:700;
  line-height:1.4;
}

.bp-payments-schedule{
  margin:0 0 12px;
  color:var(--bp-soft);
  font-size:var(--bp-text-body);
  font-weight:700;
}

.bp-payments-payouts{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.bp-payments-payout{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 12px;
  border-radius:15px;
  background:var(--bp-glass-3);
}

.bp-payments-payout strong,
.bp-payments-payout small{
  display:block;
}

.bp-payments-payout strong{
  font-size:var(--bp-text-control);
}

.bp-payments-payout small{
  margin-top:4px;
  color:var(--bp-soft);
  font-size:var(--bp-text-micro);
  font-weight:600;
}

/* --- Statuts ------------------------------------------------ */
.bp-payment-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 10px;
  border:2px solid var(--bp-border-subtle);
  border-radius:var(--bp-radius-pill);
  background:var(--bp-glass-3);
  font-size:var(--bp-text-micro);
  font-weight:900;
  white-space:nowrap;
}

.bp-payment-status.is-paid{
  border-color:#bbf7d0;
  background:#eaf8ef;
  color:#15803d;
}

.bp-payment-status.is-pending{
  border-color:#fcd34d;
  background:#fff4db;
  color:#b45309;
}

.bp-payment-status.is-failed,
.bp-payment-status.is-refunded{
  border-color:#fecaca;
  background:#fff1f2;
  color:#b42318;
}

.bp-payment-status.is-partial{
  border-color:#fdba74;
  background:#fff7ed;
  color:#c2410c;
}

/* --- Historique des paiements ------------------------------ */
.bp-payments-history{
  margin-top:0;
}

.bp-payments-table{
  display:flex;
  flex-direction:column;
  gap:7px;
}

.bp-payments-table__head,
.bp-payments-table__row{
  display:grid;
  grid-template-columns:minmax(116px,1.25fr) 112px 82px 78px 78px 82px 112px 104px;
  gap:10px;
  align-items:center;
}

.bp-payments-table__head{
  padding:10px 12px;
  border-radius:14px;
  background:var(--bp-glass-3);
  color:var(--bp-soft);
  font-size:var(--bp-text-micro);
  font-weight:800;
}

.bp-payments-table__row{
  padding:12px;
  border-radius:16px;
  background:var(--bp-glass-3);
  color:var(--bp-text);
  font-size:var(--bp-text-meta);
  font-weight:700;
}

.bp-payments-order{
  min-width:0;
}

.bp-payments-order strong,
.bp-payments-order small{
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.bp-payments-order strong{
  font-family:var(--bp-mono);
  font-size:var(--bp-text-meta);
}

.bp-payments-order small{
  margin-top:4px;
  color:var(--bp-soft);
  font-size:var(--bp-text-micro);
  font-weight:600;
}

.bp-payments-na{
  color:var(--bp-soft);
  font-size:.78em;
  font-weight:800;
  white-space:nowrap;
}

@media (max-width:980px){
  .bp-payments-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .bp-payments-grid{
    grid-template-columns:1fr;
  }

  .bp-payments-table__head{
    display:none;
  }

  .bp-payments-table__row{
    grid-template-columns:repeat(3,minmax(0,1fr));
    padding:14px;
    gap:12px;
  }

  .bp-payments-order{
    grid-column:1 / -1;
  }

  .bp-payments-table__row > div[data-label]::before{
    content:attr(data-label);
    display:block;
    margin-bottom:5px;
    color:var(--bp-soft);
    font-size:10px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
  }
}

@media (max-width:640px){
  .bp-payments-head{
    grid-template-columns:1fr;
    gap:12px;
  }

  .bp-payments-head h1{
    font-size:var(--bp-text-page-title);
  }

  .bp-payments-head__actions{
    width:100%;
  }

  .bp-payments-head__actions .bp-btn{
    flex:1 1 0;
  }

  .bp-payments-banner{
    flex-direction:column;
    gap:4px;
  }

  .bp-payments-setup{
    align-items:stretch;
    flex-direction:column;
  }

  .bp-payments-setup .bp-btn{
    width:100%;
  }

  .bp-payments-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }

  .bp-payments-kpi{
    padding:12px;
  }

  .bp-payments-kpi > strong{
    font-size:20px;
  }

  .bp-payments-balance__rows{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }

  .bp-payments-balance__rows > div{
    padding:11px;
  }

  .bp-payments-balance__rows strong{
    font-size:16px;
  }

  .bp-payments-table__row{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .bp-payments-order,
  .bp-payments-table__row > div:last-child{
    grid-column:1 / -1;
  }
}

@media (max-width:299px){
  .bp-payments-kpis,
  .bp-payments-balance__rows,
  .bp-payments-table__row{
    grid-template-columns:1fr;
  }

  .bp-payments-table__row > div,
  .bp-payments-table__row > div:last-child{
    grid-column:1;
  }
}

/* Wizard : confirmation clairement verte quand le compte est actif. */
.bpw-payments__notice.is-success{background:#effaf3!important;border-color:#9fdbb5!important;color:#14532d!important;}.bpw-payments__notice.is-success strong,.bpw-payments__notice.is-success span{color:inherit!important;}


/* Phase 3C — remboursements */
.bp-payments-action{display:flex;align-items:center;justify-content:flex-start;}
.bp-payments-refund-btn{min-height:34px;padding:0 11px;font-size:var(--bp-text-micro);white-space:nowrap;}
.bp-payments-modal[hidden]{display:none!important;}
.bp-payments-modal{position:fixed;inset:0;z-index:10020;display:flex;align-items:flex-start;justify-content:center;padding:72px 16px 24px;overflow:auto;}
.bp-payments-modal__overlay{position:fixed;inset:0;background:rgba(15,23,42,.42);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);}
.bp-payments-modal__dialog{position:relative;z-index:1;width:min(620px,100%);padding:22px;border-radius:var(--bp-radius);background:var(--bp-surface);color:var(--bp-text);box-shadow:0 28px 80px rgba(15,23,42,.22);}
.bp-payments-modal__dialog h2{margin:6px 42px 7px 0;font-size:var(--bp-text-section-title);line-height:1.12;letter-spacing:-.02em;}
.bp-payments-modal__intro{margin:0 0 16px;color:var(--bp-soft);font-size:var(--bp-text-body);font-weight:600;line-height:1.45;}
.bp-payments-modal__close{all:unset;position:absolute;top:16px;right:16px;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:var(--bp-action-secondary-bg);color:var(--bp-action-secondary-text);box-shadow:var(--bp-outline-control);font-size:24px;line-height:1;cursor:pointer;}.bp-payments-modal__close:hover{background:var(--bp-action-secondary-hover-bg);box-shadow:var(--bp-outline-control);}
.bp-payments-refund-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:14px;}
.bp-payments-refund-summary>div{padding:12px;border-radius:16px;background:var(--bp-glass-3);}
.bp-payments-refund-summary span,.bp-payments-refund-summary strong{display:block;}.bp-payments-refund-summary span{min-height:28px;color:var(--bp-soft);font-size:var(--bp-text-micro);font-weight:700;line-height:1.25;}.bp-payments-refund-summary strong{margin-top:6px;font-size:16px;font-weight:900;white-space:nowrap;}
.bp-payments-refund-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:14px;}
.bp-payments-refund-mode{position:relative;display:flex;min-height:84px;padding:14px;border-radius:var(--bp-radius-control);background:var(--bp-action-secondary-bg);box-shadow:var(--bp-outline-control);cursor:pointer;transition:.18s ease;}
.bp-payments-refund-mode.is-selected{background:color-mix(in srgb,var(--accent) 9%,var(--bp-surface));box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--accent) 36%,transparent);}
.bp-payments-refund-mode input{position:absolute;opacity:0;pointer-events:none;}.bp-payments-refund-mode strong,.bp-payments-refund-mode small{display:block;}.bp-payments-refund-mode strong{font-size:var(--bp-text-body);font-weight:900;}.bp-payments-refund-mode small{margin-top:5px;color:var(--bp-soft);font-size:var(--bp-text-micro);font-weight:600;line-height:1.35;}
.bp-payments-refund-field{display:block;margin-top:12px;}.bp-payments-refund-field>span{display:block;margin-bottom:7px;font-size:var(--bp-text-meta);font-weight:800;}.bp-payments-refund-field>span small{color:var(--bp-soft);font-weight:600;}
.bp-payments-refund-field input,.bp-payments-refund-field textarea{width:100%;border:0!important;border-radius:var(--bp-radius-control)!important;background:var(--input-bg)!important;box-shadow:var(--bp-outline-control);color:var(--bp-text)!important;font:inherit;font-size:var(--bp-text-control);}
.bp-payments-refund-field input{min-height:48px;padding:0 44px 0 14px;}.bp-payments-refund-field textarea{min-height:88px;padding:12px 14px;resize:vertical;}
.bp-payments-refund-field input:focus,.bp-payments-refund-field textarea:focus{outline:none;box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--accent) 48%,var(--bp-border-subtle)),var(--focus-ring);}
.bp-payments-refund-amount{position:relative;}.bp-payments-refund-amount>span{position:absolute;right:15px;top:50%;transform:translateY(-50%);font-weight:900;color:var(--bp-soft);}
.bp-payments-refund-warning{display:flex;flex-direction:column;gap:4px;margin-top:14px;padding:12px 14px;border-radius:var(--bp-radius-control);background:color-mix(in srgb,#f97316 12%,var(--bp-surface));box-shadow:none;font-size:var(--bp-text-micro);line-height:1.4;}.bp-payments-refund-warning strong{color:#9a3412;}.bp-payments-refund-warning span{color:#7c2d12;font-weight:600;}
.bp-payments-modal__actions{display:flex;justify-content:flex-end;gap:9px;margin-top:16px;}.bp-payments-refund-submit{background:#b42318!important;}.bp-payments-refund-submit:hover{filter:brightness(.96);}.bp-payments-refund-submit:disabled{opacity:.55;cursor:wait;}
.bp-payments-modal .bp-form-notice{margin-top:12px;}.bp-payments-modal .bp-form-notice.is-success{background:#eaf8ef;color:#15803d;}.bp-payments-modal .bp-form-notice.is-error{background:#fff1f2;color:#b42318;}
@media(max-width:980px){.bp-payments-action{justify-content:flex-start;}.bp-payments-table__row>div:last-child{grid-column:auto;}}
@media(max-width:640px){.bp-payments-modal{padding:54px 8px 90px;align-items:flex-start;}.bp-payments-modal__dialog{padding:18px;border-radius:21px;}.bp-payments-refund-summary{grid-template-columns:1fr;}.bp-payments-refund-summary span{min-height:0;}.bp-payments-refund-modes{grid-template-columns:1fr;}.bp-payments-refund-mode{min-height:0;}.bp-payments-modal__actions{flex-direction:column-reverse;}.bp-payments-modal__actions .bp-btn{width:100%;}.bp-payments-table__row>div:last-child{grid-column:1/-1;}.bp-payments-refund-btn{width:100%;}}

/* ============================================================
   Phase 3C.1 — tableau paiements : statut + action alignés
   ============================================================ */
@media (min-width:981px){
  .bp-payments-table__head,
  .bp-payments-table__row{
    grid-template-columns:
      minmax(110px,1.35fr)
      minmax(104px,1fr)
      72px
      70px
      72px
      72px
      minmax(142px,1.2fr)
      100px;
    gap:8px;
  }

  .bp-payments-table__head > :nth-child(7),
  .bp-payments-table__head > :nth-child(8),
  .bp-payments-table__row > :nth-child(7),
  .bp-payments-table__row > :nth-child(8){
    min-width:0;
    justify-self:center;
    text-align:center;
  }

  .bp-payments-action{
    width:100%;
    justify-content:center;
  }

  .bp-payment-status{
    max-width:100%;
    min-height:32px;
    padding:5px 9px;
    white-space:normal;
    text-align:center;
    line-height:1.15;
  }
}

/* ============================================================
   Factures et avoirs Bloopin
   ============================================================ */
.bp-payments-invoices{
  margin-top:14px;
}

.bp-payments-invoices-empty{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:16px;
  border-radius:var(--bp-radius);
  background:var(--bp-glass-3);
}

.bp-payments-invoices-empty strong{
  color:var(--bp-text);
  font-size:var(--bp-text-control);
  font-weight:800;
}

.bp-payments-invoices-empty span{
  color:var(--bp-soft);
  font-size:var(--bp-text-meta);
  line-height:1.45;
}

.bp-payments-invoice-error{
  margin-top:10px;
}

.bp-payments-invoice-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:12px;
}

.bp-payments-invoice-row{
  display:grid;
  grid-template-columns:minmax(280px,1fr) auto auto;
  align-items:center;
  gap:18px;
  overflow:hidden;
  padding:16px 18px;
  border-radius:var(--bp-radius-control);
  background:var(--bp-glass-3);
  box-shadow:0 8px 24px rgba(15,23,42,.035);
}

.bp-payments-invoice-main{
  min-width:0;
  display:flex;
  align-items:center;
  gap:11px;
}

.bp-payments-invoice-main > div{
  min-width:0;
}

.bp-payments-invoice-main strong,
.bp-payments-invoice-main small{
  display:block;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.bp-payments-invoice-main strong{
  color:var(--bp-text);
  font-size:var(--bp-text-body);
  font-weight:800;
}

.bp-payments-invoice-main small{
  margin-top:4px;
  color:var(--bp-soft);
  font-size:var(--bp-text-meta);
  font-weight:600;
}

.bp-payments-invoice-icon{
  width:40px;
  height:40px;
  flex:0 0 40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:13px;
  background:color-mix(in srgb,#22a1ee 11%,var(--bp-glass-3));
  color:#22a1ee;
}

.bp-payments-invoice-row.is-credit-note .bp-payments-invoice-icon{
  background:#fff1f2;
  color:#b42318;
}

.bp-payments-document-icon{
  width:21px;
  height:21px;
}

.bp-payments-invoice-amount{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:10px;
  white-space:nowrap;
}

.bp-payments-invoice-amount > strong{
  color:var(--bp-text);
  font-size:16px;
  font-weight:900;
}

.bp-payments-invoice-amount .bp-payment-status{
  min-height:32px;
  padding:0 11px;
  border:2px solid var(--bp-border-subtle);
  background:var(--bp-glass-3);
}

.bp-payments-invoice-amount .bp-payment-status.is-paid{
  border-color:#bbf7d0;
  background:#f0fdf4;
  color:#15803d;
}

.bp-payments-invoice-amount .bp-payment-status.is-credited{
  border-color:#fecaca;
  background:#fff1f2;
  color:#b42318;
}

.bp-payments-invoice-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  white-space:nowrap;
}

.bp-payments-invoice-actions .bp-btn{
  min-width:0;
  min-height:38px;
  padding:0 14px;
  box-sizing:border-box;
  white-space:nowrap;
}

.bp-payments-test-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 10px;
  border:2px solid #fdba74;
  border-radius:var(--bp-radius-pill);
  background:#fff7ed;
  color:#c2410c;
  font-size:var(--bp-text-micro);
  font-weight:800;
}

@media (max-width:800px){
  .bp-payments-invoice-row{
    grid-template-columns:minmax(0,1fr) auto;
    gap:14px;
    padding:14px;
  }

  .bp-payments-invoice-amount{
    flex-direction:column;
    align-items:flex-end;
    gap:6px;
  }

  .bp-payments-invoice-actions{
    grid-column:1 / -1;
    justify-content:flex-end;
  }
}

@media (max-width:560px){
  .bp-payments-invoice-list{
    gap:9px;
  }

  .bp-payments-invoice-row{
    grid-template-columns:1fr;
    align-items:stretch;
    gap:12px;
    border-radius:18px;
  }

  .bp-payments-invoice-main{
    gap:10px;
  }

  .bp-payments-invoice-main strong,
  .bp-payments-invoice-main small{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
  }

  .bp-payments-invoice-icon{
    width:38px;
    height:38px;
    flex-basis:38px;
    border-radius:12px;
  }

  .bp-payments-invoice-amount{
    width:100%;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:10px;
  }

  .bp-payments-invoice-actions{
    grid-column:auto;
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    align-items:center;
    gap:8px;
    width:100%;
  }

  .bp-payments-invoice-actions .bp-btn{
    width:100%;
    max-width:100%;
  }
}

/* --- Paiements : affichage mobile compact ------------------- */
@media (max-width:640px){
  .bp-payments-table{
    gap:9px;
  }

  .bp-payments-table__row{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px 14px;
    padding:13px;
    overflow:hidden;
    border-radius:18px;
  }

  .bp-payments-table__row > div{
    min-width:0;
    max-width:100%;
    grid-column:auto!important;
    overflow-wrap:anywhere;
  }

  .bp-payments-table__row > .bp-payments-order,
  .bp-payments-table__row > .bp-payments-action{
    grid-column:1 / -1!important;
  }

  .bp-payments-table__row > div[data-label]::before{
    margin-bottom:4px;
    font-size:9px;
    letter-spacing:.05em;
  }

  .bp-payments-order small{
    margin-top:3px;
  }

  .bp-payments-action{
    width:100%;
    justify-content:stretch;
  }

  .bp-payments-refund-btn{
    display:flex;
    width:100%;
    max-width:100%;
    min-width:0;
    min-height:38px;
    margin:0;
    padding:0 12px;
    box-sizing:border-box;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    text-overflow:ellipsis;
  }
}

/* L'ancienne règle passait sous 380 px en une seule colonne et allongeait
   fortement les cartes. Cette surcharge maintient le format compact. */
@media (max-width:380px){
  .bp-payments-table__row{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  .bp-payments-table__row > div{
    grid-column:auto!important;
  }

  .bp-payments-table__row > .bp-payments-order,
  .bp-payments-table__row > .bp-payments-action{
    grid-column:1 / -1!important;
  }
}

/* ============================================================
   Phase 4B.2 — finition mobile ciblée
   - symbole monétaire toujours solidaire du montant
   - action masquée quand aucun remboursement n'est possible
   - bouton de remboursement propre, sans libellé vertical
   - typographie mobile harmonisée avec le reste du panel
============================================================ */

/* WooCommerce peut hériter d'une règle du thème qui transforme le symbole
   monétaire en bloc. On verrouille uniquement l'affichage dans Mes paiements. */
.bp-payments-page .woocommerce-Price-amount.amount{
  display:inline-block!important;
  white-space:nowrap!important;
}

.bp-payments-page .woocommerce-Price-amount.amount bdi,
.bp-payments-page .woocommerce-Price-currencySymbol{
  display:inline!important;
  white-space:nowrap!important;
}

@media (max-width:640px){
  /* Les valeurs restent à 12 px comme sur les autres écrans du panel. */
  .bp-payments-table__row,
  .bp-payments-order strong,
  .bp-payments-order small,
  .bp-payment-status,
  .bp-payments-refund-btn,
  .bp-payments-invoice-main small{
    font-size:var(--bp-text-meta);
  }

  /* Les petits intitulés restent distincts sans devenir minuscules. */
  .bp-payments-table__row > div[data-label]::before{
    font-size:var(--bp-text-micro);
    line-height:1.2;
  }

  /* Le mot Action n'apporte rien sur mobile : le bouton est explicite. */
  .bp-payments-action::before{
    display:none!important;
    content:none!important;
  }

  /* Pas de bloc « Action — » lorsqu'une commande est déjà remboursée. */
  .bp-payments-action.is-empty{
    display:none!important;
  }

  .bp-payments-table__row > .bp-payments-action{
    margin-top:1px;
  }
}

