/**
 * IT1 Connect - Escompte : styles front (fiche produit, panier, checkout,
 * confirmation). Autoporte, raccorde a la charte via les variables Bootstrap
 * du theme (--bs-primary), surchargeable par le theme.
 */

/* ------------------------------------------------------------------ */
/* Fiche produit : mention sous le prix                                */
/* ------------------------------------------------------------------ */

.it1esc-product-notice {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #3a4250;
}

.it1esc-product-notice__badge {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background-color: var(--bs-primary, #8758a6);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  vertical-align: baseline;
}

.it1esc-product-notice__text {
  color: #6c757d;
}

/* ------------------------------------------------------------------ */
/* Checkout : bascule comptant / deux fois                             */
/* ------------------------------------------------------------------ */

.it1esc-payment-top {
  margin-bottom: 1rem;
}

.it1esc-alert {
  margin-bottom: 0.75rem;
}

.it1esc-toggle-title {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.it1esc-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.it1esc-choice {
  flex: 1 1 260px;
  display: block;
  padding: 0.75rem 1rem;
  border: 2px solid #dee2e6;
  border-radius: 0.5rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.it1esc-choice:hover {
  border-color: var(--bs-primary, #8758a6);
}

.it1esc-choice--active {
  border-color: var(--bs-primary, #8758a6);
  box-shadow: 0 0 0 1px var(--bs-primary, #8758a6);
}

.it1esc-choice input[type="radio"] {
  margin-right: 0.5rem;
  accent-color: var(--bs-primary, #8758a6);
}

.it1esc-choice__label {
  font-weight: 600;
}

.it1esc-choice__desc {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #6c757d;
}

.it1esc-submit {
  margin-bottom: 1rem;
}

/* ------------------------------------------------------------------ */
/* Option de paiement et confirmation                                  */
/* ------------------------------------------------------------------ */

.it1esc-option .it1esc-bank {
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--bs-primary, #8758a6);
  background: #f8f9fa;
  border-radius: 0.25rem;
}

.it1esc-option .it1esc-bank dt {
  font-weight: 600;
  margin-top: 0.4rem;
}

.it1esc-option .it1esc-bank dt:first-child {
  margin-top: 0;
}

.it1esc-option .it1esc-bank dd {
  margin: 0 0 0.25rem;
}

.it1esc-option__note {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0;
}

.it1esc-return {
  margin: 1.25rem 0;
  padding: 1.25rem;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  background: #fff;
}

.it1esc-return__title {
  margin-top: 0;
}

.it1esc-return__bank {
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--bs-primary, #8758a6);
  background: #f8f9fa;
  border-radius: 0.25rem;
}

.it1esc-return__bank-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.it1esc-return__bank ul {
  margin: 0 0 0.5rem;
  padding-left: 1.1rem;
}

.it1esc-return__note {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0;
}

/* ------------------------------------------------------------------ */
/* Panier                                                              */
/* ------------------------------------------------------------------ */

.it1esc-cart-note {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ------------------------------------------------------------------ */
/* Promotion grisee : pro sans palier conditions de paiement valide   */
/* ------------------------------------------------------------------ */

.it1esc-toggle--locked .it1esc-choice {
  cursor: default;
}

.it1esc-choice--locked {
  opacity: 0.6;
}

.it1esc-choice--locked .it1esc-choice__label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.it1esc-lock {
  font-size: 0.95em;
  line-height: 1;
}

.it1esc-promo-cta {
  display: inline-block;
  margin-top: 0.75rem;
}
