/* supplierminimumorder v2.3.3 */

/* ── Bloque principal ── */
.smo-block {
  background: #fefefe;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  margin: 15px 0;
  font-family: inherit;
}

/* ── Cabecera ── */
.smo-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}
.smo-icon-warn { font-size: 24px; line-height: 1; }
.smo-title { font-size: 16px; color: #333; display: block; margin-bottom: 2px; }
.smo-subtitle { font-size: 13px; color: #777; margin: 0; }

/* ── Tarjetas de datos ── */
.smo-cards {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.smo-card {
  flex: 1;
  background: #f8f9fa;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  border: 1px solid #eee;
}
.smo-card-icon { font-size: 22px; display: block; margin-bottom: 6px; }
.smo-card-value { font-size: 20px; font-weight: 700; color: #333; }
.smo-card-label { font-size: 11px; color: #888; margin-top: 4px; }

.smo-card-danger { background: #fff5f5; border-color: #f5c6cb; }
.smo-card-danger .smo-card-value { color: #c0392b; }

.smo-card-filler { background: #f0faf0; border-color: #c3e6cb; }
.smo-card-filler .smo-card-value { color: #27ae60; }

/* ── Acciones ── */
.smo-actions-title {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin-bottom: 12px;
}
.smo-actions {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.smo-action {
  flex: 1;
  background: #f8f9fa;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.smo-action strong { font-size: 14px; display: block; margin-bottom: 6px; color: #333; }
.smo-action p { font-size: 12px; color: #777; margin: 0 0 12px; }

.smo-action-divider {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #aaa;
  font-weight: 600;
  padding: 0 4px;
}

/* ── Botones ── */
.smo-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.smo-btn-outline {
  background: #fff;
  color: #2c3e50;
  border: 2px solid #2c3e50;
}
.smo-btn-outline:hover { background: #2c3e50; color: #fff; text-decoration: none; }

.smo-btn-primary {
  background: #27ae60;
  color: #fff;
}
.smo-btn-primary:hover { background: #219a52; }

/* ── Bloque rojo de bloqueo (checkout) ── */
#smo-checkout-block {
  background: #fff5f5 !important;
  border: 2px solid #f5c6cb !important;
  border-radius: 10px !important;
  padding: 16px 20px !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .smo-cards { flex-direction: column; }
  .smo-actions { flex-direction: column; }
  .smo-action-divider { justify-content: center; padding: 4px 0; }
}

/* ── Variantes de bloque ── */
.smo-block-danger {
  background: #fff5f5;
  border-color: #f5c6cb;
}
.smo-block-danger .smo-title { color: #721c24; }
.smo-block-danger .smo-subtitle { color: #9b2c3c; }

.smo-block-success {
  background: #f0faf0;
  border-color: #c3e6cb;
}
.smo-block-success .smo-title { color: #1e7e34; }

.smo-block-info {
  background: #e8f4fd;
  border-color: #bee5eb;
}
.smo-block-info .smo-title { color: #0c5460; }

.smo-block-help {
  font-size: 13px;
  color: #666;
  margin: 12px 0 0;
}
.smo-link {
  color: #721c24;
  font-weight: 600;
  text-decoration: underline;
}

/* ── Loading state ── */
.smo-loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}
.smo-loading::after {
  content: "Verificando...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.9);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  color: #555;
}
