.wcxlsx-help-wrap{
  display:inline-flex;
  align-items:center;
  position:relative;
  margin-left:6px;
}

.wcxlsx-help-btn{
  width:18px;
  height:18px;
  border-radius:999px;
  border:1px solid #bbb;
  background:#fff;
  font-size:12px;
  line-height:16px;
  padding:0;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.wcxlsx-help-btn:focus{
  outline:2px solid #2271b1;
  outline-offset:2px;
}

.wcxlsx-tooltip{
  position:absolute;
  left:0;
  top:calc(100% + 6px);
  min-width:220px;
  max-width:320px;
  padding:8px 10px;
  border:1px solid #ddd;
  border-radius:8px;
  background:#fff;
  box-shadow:0 8px 24px rgba(0,0,0,0.12);
  font-size:13px;
  line-height:1.35;
  z-index:9999;

  opacity:0;
  visibility:hidden;
  transform:translateY(-4px);
  transition:opacity .12s ease, transform .12s ease, visibility .12s ease;
}

.wcxlsx-help-wrap:hover .wcxlsx-tooltip,
.wcxlsx-help-wrap:focus-within .wcxlsx-tooltip{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

@media (max-width: 480px){
  .wcxlsx-tooltip{
    min-width:200px;
    max-width:85vw;
  }
}
/* ---------- Form UX ---------- */

.wcxlsx-form{
  border:1px solid #ddd;
  padding:14px;
  margin:12px 0;
  border-radius:12px;
  background:#fff;
}

.wcxlsx-title{
  margin:0 0 12px 0;
  font-size:18px;
}

#wcxlsx-fields{
  display:grid;
  grid-template-columns: 1fr; /* 1 seule colonne */
  gap:12px;
}


.wcxlsx-field{
  padding:10px;
  border:1px solid #eee;
  border-radius:12px;
  background:#fafafa;
}

.wcxlsx-label{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 6px 0;
  font-weight:600;
}

.wcxlsx-required{
  color:#c00;
  font-weight:700;
}

.wcxlsx-control{
  display:block;
}

.wcxlsx-input{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  padding:8px 10px;
  border:1px solid #ccc;
  border-radius:10px;
  background:#fff;
}

.wcxlsx-input:focus{
  outline:2px solid #2271b1;
  outline-offset:2px;
}

/* Bouton calcul */
#wcxlsx-calc{
  margin-top:14px;
}

/* Résultats */
#wcxlsx-results{
  margin-top:14px;
  padding-top:12px;
  border-top:1px dashed #ddd;
}

/* Responsive: 1 colonne sur mobile */
@media (max-width: 720px){
  #wcxlsx-fields{
    grid-template-columns: 1fr;
  }
}


/* STL hint */
.wcxlsx-stl-hint{
  margin-top:6px;
  font-size:12px;
  line-height:1.35;
  color:#555;
}
