/* ===== OptionPanier - Version compacte et propre ===== */

/* Bloc principal */
.optionpanier-block {
  margin: 10px 0 15px;
  padding: 0;
  border: 0;
  background: transparent;
}

.optionpanier-block h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
}

/* Liste des options : simple pile verticale */
.optionpanier-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Chaque option : ligne + description */
.optionpanier-option {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fff;
  text-align: left !important;
}

/* Case à cocher */
.optionpanier-option input[type="checkbox"] {
  margin: 0 6px 0 0;
  flex: 0 0 auto;
  accent-color: #2fb5d2;
}

.optionpanier-option input[type="checkbox"]:focus-visible {
  outline: 2px solid #2fb5d2;
  outline-offset: 2px;
}

/* Nom de l’option */
.optionpanier-name {
  font-weight: 600;
  line-height: 1.2;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
}

/* Prix (badge bleu) */
.optionpanier-price {
  margin-left: auto;
  font-weight: 700;
  font-size: .95rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef8fb;
  color: #237a8d;
  border: 1px solid #d7eef5;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* Description sous la ligne principale */
.optionpanier-desc {
  flex-basis: 100%;
  margin-top: 4px;
  padding-left: 22px;
  color: #666;
  font-size: .92rem;
  line-height: 1.4;
}

/* État visuel : sélectionné ou désactivé */
.optionpanier-option.is-selected {
  border-color: #2fb5d2;
  background: #f0fbfe;
}

.optionpanier-option.is-disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* On masque le bouton interne du module */
#optionpanier-form .btn,
#optionpanier-form .op-hidden-submit {
  display: none !important;
}

/* Marges si proche du bouton du thème */
.product-add-to-cart + .optionpanier-block,
.optionpanier-block + .product-add-to-cart {
  margin-top: 16px;
}

.optionpanier-block {
    float: left;
    width: 100%;
}