/* =====================================================================
   VARIANTES.CSS — le choix de la version, cote client et cote editeur
                                                                   v84

   Chargee sur la page de vente ET dans le tableau de bord : le
   marchand range ses versions dans la meme presentation que celle que
   verra son client.
   ===================================================================== */

/* =====================================================================
   1. LE CHOIX, SUR LA PAGE DU CLIENT
   ===================================================================== */
.vr { margin: 0 0 14px; }

.vr-t {
  font-size: 13.5px;
  font-weight: 700;
  color: #15181f;
  margin: 0 0 8px;
}

.vr-l { display: grid; gap: 8px; }

.vr-b {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 58px;
  padding: 11px 13px;
  border: 1.5px solid #dfe4ee;
  border-radius: 13px;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .14s, background .14s;
}
.vr-b:hover { border-color: #b9c8ff; }
.vr-b.on {
  border-color: var(--or, #2d6cf6);
  background: #f5f8ff;
  box-shadow: 0 0 0 1px var(--or, #2d6cf6) inset;
}
.vr-b.off { opacity: .5; cursor: not-allowed; }

/* la pastille ronde : elle dit lequel est choisi, sans couleur seule */
.vr-r {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid #c6cee0;
  position: relative;
}
.vr-b.on .vr-r { border-color: var(--or, #2d6cf6); }
.vr-b.on .vr-r::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--or, #2d6cf6);
}

.vr-c { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vr-c b { font-size: 15px; font-weight: 650; color: #15181f; }
.vr-reste { font-size: 11.8px; color: #9a4b12; font-weight: 600; }
.vr-rupture { font-size: 11.8px; color: #5C6472; font-weight: 600; }

.vr-p { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; }
.vr-p b { font-size: 16px; font-weight: 800; color: #15181f; white-space: nowrap; }
.vr-p s { font-size: 12.5px; color: #5C6472; white-space: nowrap; }

/* Le client a oublie de choisir : on le montre, une fois, sans crier. */
.vr-manque .vr-l {
  animation: vrSecouer .45s ease;
}
.vr-manque .vr-b { border-color: #C62B22; }
@keyframes vrSecouer {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
@media (prefers-reduced-motion: reduce) { .vr-manque .vr-l { animation: none; } }

/* =====================================================================
   2. LE CHOIX, DANS L'EDITEUR DU MARCHAND
   ===================================================================== */
.vre { display: block; }
.vre-aide {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #5C6472;
}
.vre-l {
  display: block;
  font-size: 12.3px;
  font-weight: 650;
  color: #5C6472;
  margin: 0 0 5px;
}
.vre-in {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d9e0ec;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: #15181f;
}
.vre-in:focus { outline: 2px solid #b9c8ff; outline-offset: -1px; }

.vre-liste { display: grid; gap: 10px; margin: 14px 0 0; }

.vre-x {
  border: 1px solid #e4e8ef;
  border-radius: 12px;
  padding: 4px 12px 13px;
  background: #fbfcff;
}
.vre-x-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0 9px;
}
.vre-x-h > span { font-size: 12px; font-weight: 700; color: #5C6472; }
.vre-x-h > div { display: flex; gap: 2px; }
.vre-x-h button {
  width: 32px; height: 32px;
  border: 0; border-radius: 8px;
  background: transparent;
  color: #5C6472;
  font-size: 15px;
  cursor: pointer;
}
.vre-x-h button:disabled { opacity: .3; cursor: default; }
.vre-x-h .vre-sup { color: #C62B22; font-size: 19px; }

.vre-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 9px; }
.vre-3 .vre-in { font-size: 14px; }
@media (max-width: 400px) {
  .vre-3 { grid-template-columns: 1fr 1fr; }
  .vre-3 > div:last-child { grid-column: 1 / -1; }
}

.vre-ajout {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 11px;
  border: 1.5px dashed #b9c8ff;
  border-radius: 12px;
  background: #fff;
  color: #2d4bd8;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}
.vre-ajout:active { background: #eef2ff; }

.vre-bascule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  min-height: 42px;
  cursor: pointer;
  font-size: 14px;
}
.vre-bascule input { width: 19px; height: 19px; accent-color: #2d6cf6; }
