/* =============================================================================
   GP - Bloc vendeur fiche produit : panneau « confiance »
   Reprend les tokens du thème Greenpattes (design-system.css) avec repli.
   ============================================================================= */

.gpps {
  --gpps-teal: var(--color-primary, #006d6d);
  --gpps-teal-dark: var(--color-primary-dark, #005757);
  --gpps-ink: var(--color-text, #203232);
  --gpps-muted: var(--color-text-muted, #667572);
  --gpps-surface: var(--color-background-soft, #f8f7f4);
  --gpps-line: var(--color-border, #dfe8e4);

  margin: 18px 0;
  padding: 14px 16px;
  background: var(--gpps-surface);
  border: 1px solid var(--gpps-line);
  border-radius: var(--radius-md, 12px);
  font-family: var(--font-family-body, "Inter", Arial, sans-serif);
  font-size: 14px;
  line-height: 1.5;
  color: var(--gpps-ink);
}

.gpps *,
.gpps *::before,
.gpps *::after {
  box-sizing: border-box;
}

/* Neutralise les tailles de police que le thème impose à p/ul/ol/li
   (design-system.css, media mobile : 15px) — tout le bloc suit sa propre échelle. */
.gpps p,
.gpps ul,
.gpps ol,
.gpps li {
  font-size: inherit;
  line-height: inherit;
}

/* ---- En-tête vendeur ---------------------------------------------------- */

.gpps-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--gpps-line);
}

.gpps-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.gpps-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gpps-muted);
}

.gpps-name {
  font-family: var(--font-family-heading, "Poppins", Arial, sans-serif);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--gpps-ink);
}

.gpps-go {
  margin-left: auto;
  flex: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gpps-teal-dark);
  text-decoration: none;
  white-space: nowrap;
}

.gpps-go:hover,
.gpps-go:focus {
  text-decoration: underline;
}

.gpps-contact {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gpps-teal-dark);
  text-decoration: none;
}

.gpps-contact .material-icons {
  font-size: 15px;
}

.gpps-contact:hover,
.gpps-contact:focus {
  text-decoration: underline;
}

/* ---- Lignes port / retours ------------------------------------------- */

.gpps-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 9px 0 0;
}

.gpps-row .material-icons {
  font-size: 18px;
  flex: none;
  margin-top: 1px;
  color: var(--gpps-teal);
  opacity: 0.85;
}

.gpps-row b {
  font-weight: 600;
}

.gpps-sub {
  display: block;
  margin-top: 1px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--gpps-muted);
}

/* ---- Badge de confiance --------------------------------------------- */

.gpps-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gpps-teal-dark);
}

.gpps-badge .material-icons {
  font-size: 14px;
}

@media (max-width: 400px) {
  .gpps-head {
    flex-wrap: wrap;
  }

  .gpps-go {
    margin-left: 0;
    margin-top: 4px;
    width: 100%;
  }
}

/* =============================================================================
   Frais de port / retours dépliables (partagé "carte" + "ligne")
   L'animation de hauteur est posée par views/js/seller.js.
   ============================================================================= */

.gpps-fold-det {
  border-top: 1px solid var(--gpps-line);
}

/* La 1re section de la carte est déjà séparée par la bordure de .gpps-head */
.gpps--card .gpps-fold-det:first-of-type {
  border-top: 0;
}

.gpps-fold-det summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  color: var(--gpps-ink);
}

.gpps-fold-det summary::-webkit-details-marker {
  display: none;
}

.gpps-fold-det summary:focus-visible {
  outline: 2px solid var(--gpps-teal);
  outline-offset: 2px;
}

.gpps-fold-det summary .material-icons {
  font-size: 18px;
  flex: none;
  color: var(--gpps-teal);
  opacity: 0.85;
}

.gpps-fold-sum {
  flex: 1;
  font-weight: 400;
}

.gpps-fold-sum b {
  font-weight: 600;
}

.gpps-fold-chev {
  margin-left: auto;
  color: var(--gpps-muted) !important;
  font-size: 18px !important;
}

.gpps-fold-det[open] .gpps-fold-chev {
  transform: rotate(180deg);
}

.gpps-fold-body {
  overflow: hidden;
}

.gpps-fold-inner {
  padding: 0 0 13px 28px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--gpps-muted);
}

.gpps-fold-inner p {
  margin: 0;
}

.gpps-carriers {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gpps-carriers li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 0;
  color: var(--gpps-ink);
}

.gpps-carrier-cost {
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.gpps-fold-note {
  margin-top: 8px !important;
  font-size: 12px;
}

@media (prefers-reduced-motion: no-preference) {
  .gpps-fold-chev {
    transition: transform 0.2s ease;
  }

  .gpps-fold-body {
    transition: height 0.22s ease;
  }
}

/* =============================================================================
   Variante "ligne" : sans encadré
   ============================================================================= */

.gpps--inline {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.gpps-i-seller {
  padding: 2px 0 10px;
}

.gpps--inline .gpps-name {
  font-family: var(--font-family-heading, "Poppins", Arial, sans-serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--gpps-ink);
  text-decoration: none;
}

.gpps--inline .gpps-name:hover,
.gpps--inline .gpps-name:focus {
  text-decoration: underline;
}
