/* ============================================================================
   LOGUETOWN — Statut du vendeur (bandeau fiche annonce / vitrine / paiement)
   Bandeau compact : statut + origine, droits de l'acheteur repliables.
   Couleurs forcées (le thème global impose ses couleurs en !important).
   ============================================================================ */

.seller-rights {
  --sr-bg: #fbf7ef;
  --sr-ink: #16202c;
  --sr-ink-2: #3a4553;
  --sr-line: #e2d5bd;
  --sr-accent: #b07c16;
  --sr-link: #85560c;
  --sr-chip-bg: #fbeecd;
  --sr-chip-fg: #744704;
  align-items: start;
  background: var(--sr-bg);
  border: 1px solid var(--sr-line);
  border-left: 4px solid var(--sr-accent);
  border-radius: 12px;
  color: var(--sr-ink-2);
  display: grid;
  font-size: 15px;
  gap: 6px;
  line-height: 1.5;
  margin: 16px 0;
  overflow-wrap: anywhere;
  padding: 12px 16px;
}
.seller-rights--professional { --sr-accent: #2c6187; --sr-chip-bg: #e2eff7; --sr-chip-fg: #174a69; }
.seller-rights--undeclared { --sr-accent: #b3403a; --sr-chip-bg: #fbe3e0; --sr-chip-fg: #97191c; }
[data-theme="dark"] .seller-rights {
  --sr-bg: #101b27;
  --sr-ink: #f6eedc;
  --sr-ink-2: #ddd3bf;
  --sr-line: #25354a;
  --sr-accent: #d4a017;
  --sr-link: #f2c94c;
  --sr-chip-bg: #3a2b0b;
  --sr-chip-fg: #f6d57c;
}
[data-theme="dark"] .seller-rights--professional { --sr-accent: #5b9bd0; --sr-chip-bg: #12324a; --sr-chip-fg: #a6d8f2; }
[data-theme="dark"] .seller-rights--undeclared { --sr-accent: #d06a62; --sr-chip-bg: #45191b; --sr-chip-fg: #ffb8b0; }

.seller-rights.seller-rights :where(p, span, summary, li) { color: var(--sr-ink-2) !important; font-size: inherit; margin: 0; }
.seller-rights.seller-rights strong { color: var(--sr-ink) !important; }
.seller-rights.seller-rights a { color: var(--sr-link) !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Ligne principale : pastille du statut + origine */
.seller-rights__head { align-items: center; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.seller-rights.seller-rights .seller-rights__head strong {
  align-items: center;
  background: var(--sr-chip-bg);
  border-radius: 999px;
  color: var(--sr-chip-fg) !important;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 6px;
  padding: 4px 12px;
}
.seller-rights__head strong::before { content: "●" / ""; font-size: 9px; }
.seller-rights--professional .seller-rights__head strong::before { content: "◆" / ""; }
.seller-rights--undeclared .seller-rights__head strong::before { content: "▲" / ""; }
.seller-rights.seller-rights .seller-rights__head span { font-size: 14px; }

/* Droits de l'acheteur, repliés par défaut */
.seller-rights__more > summary {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  gap: 6px;
  list-style: none;
  min-height: 32px;
}
.seller-rights__more > summary::-webkit-details-marker { display: none; }
.seller-rights__more > summary::after { color: var(--sr-accent); content: "▾" / ""; transition: transform .15s; }
.seller-rights__more[open] > summary::after { transform: rotate(180deg); }
.seller-rights__more > p { margin-top: 6px !important; }
.seller-rights :focus-visible { border-radius: 4px; outline: 3px solid #1f5fbf; outline-offset: 2px; }

/* Note d'information sur les formulaires de dépôt */
.seller-rights--note { display: block; }
.seller-rights--note::before { color: var(--sr-accent); content: "i" / ""; font-weight: 700; margin-right: 8px; }

/* Informations légales publiques d'un vendeur professionnel */
.seller-legal-value { overflow-wrap: anywhere; white-space: pre-wrap; }

@media (prefers-reduced-motion: reduce) {
  .seller-rights__more > summary::after { transition: none; }
}
