:root {
  --opc-accent: #0ea5e9;
}

.opc-upsell-wrap {
  max-width: 560px;
  margin: 28px auto 0;
  font-family: inherit;
}

.opc-upsell-price {
  margin-bottom: 6px;
}

.opc-upsell-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1d2327;
  margin: 0 0 14px;
}

.opc-upsell-offers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.opc-offer {
  border: 1px solid #dcdcde;
  border-radius: 10px;
  padding: 13px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  position: relative;
  background: #fff;
}

.opc-offer:hover { border-color: var(--opc-accent); }

.opc-offer--selected {
  border: 2px solid var(--opc-accent);
  background: #f0f9ff;
}

.opc-offer__badge {
  position: absolute;
  top: -1px;
  right: -1px;
  background: #0f6e56;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 0 10px 0 8px;
}

.opc-offer__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.opc-offer__radio {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 2px solid #8c8f94;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s;
}

.opc-offer__radio--on {
  border-color: var(--opc-accent);
  background: var(--opc-accent);
}

.opc-offer__radio--on::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.opc-offer__info { flex: 1; min-width: 0; }

.opc-offer__label {
  font-size: 13px;
  font-weight: 700;
  color: #1d2327;
  line-height: 1.3;
}

.opc-offer__ship {
  font-size: 11px;
  color: #00a32a;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.opc-ship-icon { font-size: 13px; }

.opc-offer__price { text-align: right; flex-shrink: 0; }

.opc-offer__price-now {
  font-size: 14px;
  font-weight: 700;
  color: #1d2327;
}

.opc-offer__price-old {
  font-size: 11px;
  color: #8c8f94;
  text-decoration: line-through;
}

.opc-offer__price-now .woocommerce-Price-amount,
.opc-offer__price-old .woocommerce-Price-amount { font-weight: inherit; }

/* PIÈCES */
.opc-pieces {
  display: none;
  margin-top: 13px;
  border: 1.5px solid var(--opc-accent);
  border-radius: 8px;
  padding: 12px;
  background: rgba(14,165,233,.04);
}

.opc-pieces--visible { display: block; }

.opc-piece { margin-bottom: 12px; }
.opc-piece:last-child { margin-bottom: 0; }

.opc-piece__label {
  font-size: 11px;
  font-weight: 700;
  color: #646970;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 7px;
}

.opc-piece__selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.opc-select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #8c8f94;
  border-radius: 6px;
  font-size: 13px;
  color: #1d2327;
  background: #fff;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s;
  appearance: auto;
}

.opc-select:focus {
  outline: none;
  border-color: var(--opc-accent);
  box-shadow: 0 0 0 1px var(--opc-accent);
}

/* CHAMPS */
.opc-upsell-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.opc-upsell-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 10px 13px;
  background: #fff;
  transition: border-color .15s;
}

.opc-upsell-field:focus-within { border-color: var(--opc-accent); }

.opc-field-icon { font-size: 17px; flex-shrink: 0; }

.opc-upsell-input {
  border: none;
  outline: none;
  font-size: 13px;
  color: #1d2327;
  background: transparent;
  font-family: inherit;
  width: 100%;
}

.opc-upsell-input::placeholder { color: #8c8f94; }

/* RÉSUMÉ */
.opc-upsell-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 11px 14px;
  margin-bottom: 13px;
  font-size: 13px;
}

.opc-summary-label { color: #646970; }

.opc-summary-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--opc-accent);
}

/* BOUTON */
.opc-upsell-submit {
  width: 100%;
  padding: 14px;
  background: var(--opc-accent);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity .15s, transform .1s;
  letter-spacing: .02em;
}

.opc-upsell-submit:hover:not(:disabled) { opacity: .88; }
.opc-upsell-submit:active:not(:disabled) { transform: scale(.99); }
.opc-upsell-submit:disabled { opacity: .45; cursor: not-allowed; }

/* RÉSULTAT */
.opc-upsell-result {
  margin-top: 13px;
  padding: 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.6;
}

.opc-upsell-result.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.opc-upsell-result.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

/* MOBILE */
@media (max-width: 480px) {
  .opc-piece__selects { grid-template-columns: 1fr; }
}
