/**
 * NCPack — Styles du modal de blocage "produit deja dans un pack".
 * Charge sur les fiches produit avec ncpack-cart-guard.js.
 *
 * Couleurs alignees sur le design v3 (ruby pour l'accent NCPack).
 * Pas de dependance Bootstrap — modal autonome avec position fixed +
 * overlay rgba.
 */

.ncpack-modal-open {
  overflow: hidden;
}

.ncpack-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: ncpack-modal-fade-in 0.18s ease;
}

@keyframes ncpack-modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ncpack-modal {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  max-width: 480px;
  width: 100%;
  font-family: inherit;
  color: #111827;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: ncpack-modal-slide-in 0.2s ease;
}

@keyframes ncpack-modal-slide-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ncpack-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 2px solid #C92A2A;
  background: #fff5f5;
}

.ncpack-modal-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #C92A2A;
  line-height: 1.3;
}

.ncpack-modal-close {
  background: transparent;
  border: 0;
  color: #475569;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  padding: 0 4px;
  margin-left: 12px;
  transition: color 0.12s ease;
}

.ncpack-modal-close:hover {
  color: #111827;
}

.ncpack-modal-body {
  padding: 20px;
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
}

.ncpack-modal-body p {
  margin: 0 0 12px;
}

.ncpack-modal-body p:last-child {
  margin-bottom: 0;
}

.ncpack-modal-footer {
  padding: 14px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid #e5e7eb;
  background: #f7f9fc;
}

.ncpack-modal-btn {
  background: #C92A2A;
  color: #ffffff;
  border: 1px solid #C92A2A;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.ncpack-modal-btn:hover,
.ncpack-modal-btn:focus {
  background: #A11F1F;
  border-color: #A11F1F;
  outline: none;
}
