/**
 * QA FIXES - Consolidated
 * Combines: qa-fixes.css, qa-error-fixes-updated.css
 * Fecha: 2026-02-21
 */

/* ========================================================================
   FIX #1: Badge de Órdenes - Ocultar cuando count = 0
   ======================================================================== */

.view-tab .badge.badge--hidden {
    display: none !important;
}

.view-tab .badge.badge--visible {
    display: flex !important;
}

/* ========================================================================
   FIX #2: Mejorar diseño de cards del menú
   ======================================================================== */

.menu-item-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

/* ========================================================================
   FIX #3: Checkout button always visible and clickable
   ======================================================================== */

.accordion-content {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.checkout-submit-btn {
  visibility: visible !important;
  opacity: 1 !important;
  display: inline-flex !important;
  z-index: 10 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.checkout-submit-btn:disabled {
  pointer-events: auto !important;
}

/* ========================================================================
   FIX #4: Modal overlay not blocking form interactions
   ======================================================================== */

#item-modal .modal-overlay {
  pointer-events: none !important;
}

/* ========================================================================
   FIX #5: Image fallback styles
   ======================================================================== */

.menu-item-card__image--fallback {
    background: var(--color-bg-secondary, #f8f9fa);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.menu-item-card__image--fallback::after {
    content: '🍽️';
    font-size: 2rem;
    opacity: 0.5;
}

/* ========================================================================
   FIX #6: Checkout preference buttons rendered without styles
   ======================================================================== */

.checkout-preference {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 11020;
}

.checkout-preference__card {
  width: min(760px, 100%);
  margin: 0 auto;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid #1e293b;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.42);
  padding: 0.95rem 1rem;
}

.checkout-preference__buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.checkout-preference__btn {
  border: 1px solid #334155;
  background: #1e293b;
  color: #f8fafc;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.checkout-preference__btn:hover {
  background: #273548;
  border-color: #ff6b35;
  transform: translateY(-1px);
}

.checkout-preference__btn--digital {
  border-color: #fdba74;
  color: #fed7aa;
}

.checkout-preference__helper {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
  text-align: center;
}
