/* CONFIG-0130 — retouches Achille (configurateur uniquement). Fichier isolé. */

/* Bouton devis : colonne de droite, sous la liste Valve / Fond / Format / Paroi */
.v3d-side > [data-v3d-quote],
.v3d-side .v3d-quote-side {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0 18px;
  box-sizing: border-box;
  border: 0;
  border-radius: 6px;
  background: #1C8048;
  color: #fff;
  font: 600 16px/1 inherit;
  cursor: pointer;
  text-decoration: none;
}
.v3d-side > [data-v3d-quote]:hover,
.v3d-side .v3d-quote-side:hover {
  background: #166A3B;
}
.v3d-side > [data-v3d-quote]:focus-visible,
.v3d-side .v3d-quote-side:focus-visible {
  outline: 2px solid #1C8048;
  outline-offset: 3px;
}

/* Ancien emplacement sous Couleur : masqué s’il reste */
.v3d-cfg .v3d-actions { display: none !important; }

/* Valve (page valve) / Fermeture (page gueule ouverte) à côté de Papier — même style pilule */
.v3d-cfg .v3d-field:has([data-v3d-vtype]),
.v3d-cfg .v3d-field:has([data-v3d-fermeture]) {
  grid-column: span 7;
}
.v3d-cfg .v3d-field:has([data-v3d-kraft]) {
  grid-column: span 5;
}
.v3d-cfg .v3d-field:has([data-v3d-vtype]) button,
.v3d-cfg .v3d-field:has([data-v3d-fermeture]) button,
.v3d-cfg .v3d-field:has([data-v3d-kraft]) button {
  border-radius: 999px;
  padding: 8px 16px;
}

/* Aide Plis */
.v3d-plies-help {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #5A6B7D;
  max-width: 62ch;
}
.v3d-field:has([data-v3d-plies]) {
  grid-column: 1 / -1;
}

/* Couleurs : pastilles lisibles si .v3d-swatch, sinon libellés inchangés */
.v3d-field[data-v3d-inks] button.v3d-swatch {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #E2E8F0;
  color: transparent;
  font-size: 0;
}
.v3d-field[data-v3d-inks] button.v3d-swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 2px #003366;
  background: unset;
  color: transparent;
}
.v3d-field[data-v3d-inks] button.v3d-swatch:hover {
  background: unset;
}

@media (max-width: 860px) {
  .v3d-cfg .v3d-field:has([data-v3d-vtype]),
  .v3d-cfg .v3d-field:has([data-v3d-fermeture]),
  .v3d-cfg .v3d-field:has([data-v3d-kraft]),
  .v3d-field:has([data-v3d-plies]) {
    grid-column: 1 / -1 !important;
    width: 100%;
  }
  .v3d-field[data-v3d-inks] > div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }
  .v3d-field[data-v3d-inks] button.v3d-swatch {
    flex: 0 0 36px !important;
    min-width: 36px !important;
    width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
  }
}
