/* ═══════════════════════════════════════════════════════
   JONAS PARFUMS — Checkout Simplifié & Optimisé
   Moins de friction, guest checkout, badges sécurité
   ═══════════════════════════════════════════════════════ */

/* Guest checkout toggle */
.checkout-mode {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--off);
  border-radius: 6px;
}

.checkout-mode__option {
  flex: 1;
  padding: 1.2rem;
  border: 2px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.checkout-mode__option input[type="radio"] {
  display: none;
}

.checkout-mode__option:hover {
  border-color: var(--gold);
  background: var(--white);
}

.checkout-mode__option input:checked + label {
  border-color: var(--gold);
  background: rgba(201, 161, 74, 0.08);
}

.checkout-mode__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.3rem;
  cursor: pointer;
}

.checkout-mode__desc {
  font-size: 11px;
  color: var(--muted);
}

/* Simplified form - only 7 essential fields */
.form-essential {
  display: grid;
  gap: 1.2rem;
}

.form-essential .form-group {
  margin-bottom: 0;
}

/* Trust badges bar */
.checkout-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(46, 125, 50, 0.05);
  border: 1px solid rgba(46, 125, 50, 0.15);
  border-radius: 6px;
  margin: 2rem 0;
}

.checkout-trust__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #2e7d32;
}

.checkout-trust__icon {
  font-size: 20px;
}

/* Sticky summary mobile */
@media (max-width: 968px) {
  .checkout-sidebar {
    position: sticky !important;
    top: 60px;
    z-index: 50;
    margin-bottom: 2rem;
  }

  .checkout-mode {
    flex-direction: column;
  }

  .checkout-trust {
    gap: 1rem;
  }

  .checkout-trust__item {
    font-size: 11px;
  }
}

/* Upsell section */
.checkout-upsell {
  padding: 1.5rem;
  background: var(--off);
  border: 1px solid var(--line-m);
  border-radius: 6px;
  margin-bottom: 2rem;
}

.checkout-upsell__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1rem;
}

.upsell-items {
  display: grid;
  gap: 1rem;
}

.upsell-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.upsell-item:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.upsell-item__img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--off);
}

.upsell-item__info {
  flex: 1;
}

.upsell-item__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.upsell-item__price {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-d);
}

.upsell-item__add {
  padding: 0.5rem 1rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--white);
  border: 1.5px solid var(--gold);
  color: var(--gold-d);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.upsell-item__add:hover {
  background: var(--gold);
  color: var(--white);
}

/* Progress indicator */
.checkout-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.progress-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.progress-step::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--line);
  z-index: -1;
}

.progress-step:last-child::after {
  display: none;
}

.progress-step__number {
  width: 30px;
  height: 30px;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  background: var(--line);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.3s;
}

.progress-step.active .progress-step__number {
  background: var(--gold);
  color: var(--white);
}

.progress-step.completed .progress-step__number {
  background: #2e7d32;
  color: var(--white);
}

.progress-step__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.progress-step.active .progress-step__label {
  color: var(--ink);
}

@media (max-width: 768px) {
  .checkout-progress {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .progress-step {
    flex: 0 0 30%;
  }

  .progress-step::after {
    display: none;
  }

  .progress-step__label {
    font-size: 9px;
  }
}
