.opi-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.opi-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.opi-summary {
    width: 100%;
    direction: rtl;
    text-align: center;
    margin-top: 20px;
    font-size: 20px !important;
    line-height: 2;
}
/* Bouton large et centré */
.opi-submit {
    display: block !important;
    margin: 20px auto 0 !important;
    background-color: #b3004b !important;
    color: white !important;
    padding: 14px 28px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    border: none !important;
    border-radius: 8px !important;
    width: 100% !important;
    max-width: 680px !important;
    cursor: pointer !important;
    transition: 0.3s ease-in-out !important;
}
.opi-submit:hover {
    background-color: #a00044 !important; /* un peu plus foncé au survol */
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
input[name="shipping_address"] {
    text-align: right;
    direction: rtl;
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

.opi-livraison {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    width: 100%;
}
.opi-livraison label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 17px;
    background: #faf9fa;
    color: #7c7c7c;
    cursor: pointer;
    transition: border 0.2s, background 0.2s;
    width: 100%;
    font-weight: 500;
    white-space: nowrap;
}
.opi-livraison input[type="radio"] {
    accent-color: #b3004b;
    width: 20px;
    height: 20px;
    margin-left: 8px;
    margin-right: 0;
    cursor: pointer;
}
.opi-livraison label:has(input[type="radio"]:checked) {
    border: 2px solid #b3004b;
    background: #ffe9f3;
    color: #222;
}

#opi-form select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px 16px 12px 38px; /* Flèche à gauche en RTL */
    border: 1.5px solid #eee;
    border-radius: 10px;
    font-size: 17px;
    background: #faf9fa;
    color: #444;
    font-family: "Tajawal", "Cairo", sans-serif !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    margin-bottom: 15px;
    direction: rtl;
    text-align: right;
    line-height: 1.8 !important;   /* ← Clé pour que le texte soit bien centré verticalement */
    height: 48px;                  /* ← Assure une bonne hauteur pour l’alignement */
    transition: border 0.2s, background 0.2s;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg width='20' height='20' fill='gray' xmlns='http://www.w3.org/2000/svg'><polygon points='6,8 14,8 10,14' /></svg>");
    background-repeat: no-repeat;
    background-position: left 12px center;   /* ← Flèche à gauche */
    background-size: 18px 18px;
}

.opi-qty-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff; /* c’est ce fond que tu veux garder ou modifier */
  border: none;
  box-shadow: none;
  overflow: hidden;
  width: fit-content;
  margin: 0 auto 12px;
  font-family: 'Tajawal', 'Cairo', sans-serif;
 }


.opi-qty-btn,
.opi-qty-display {
  height: 45px;
  width: 50px;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  box-sizing: border-box;
}

.opi-qty-btn {
  background: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
  border-right: 1px solid #ccc;
    line-height: 0; /* ✅ élimine l'espace vertical */
  font-size: 26px; /* ou ajuste selon ton style */
  padding-bottom: 1px; /* 👈 Légère compensation */
  
}

.opi-qty-btn:hover {
  background: #f0f0f0;
}

.opi-qty-display {
  background-color: #ffffff
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  font-family: 'Tajawal', 'Cairo', sans-serif;
  text-align: center;
  height: 45px;
  width: 50px;
  line-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  padding-right: 14px;
  padding-bottom: 10px;
}


/* Supprimer les bordures inutiles aux extrémités */
.opi-qty-wrapper .opi-qty-btn:first-child {
  border-left: none;
}
.opi-qty-wrapper .opi-qty-btn:last-child {
  border-right: none;
}


/* 🔒 Supprime la sélection de texte sur mobile */
#opi-quantity {
  user-select: none;
}