/* ============================================================
   PendingConfirmationBanner — Redesign Completo v3.0
   Autor: Manus Agent
   Data: 2026-03-28
   
   Objetivo: Banner unico, limpo, legivel, facil de agir,
   100% responsivo em todas as telas e dispositivos.
   ============================================================ */

/* === 1. ESCONDER credits-v2-banner quando pending_confirm === */
body:has([data-loc*="PendingConfirmationBanner"]) #credits-v2-banner {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Ensure container.mt-3 is visible when PendingConfirmationBanner exists */
.container.mt-3:has([data-loc*="PendingConfirmationBanner"]) {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  overflow: visible !important;
}

/* Hide aggressive-funnel injected button */
[data-loc*="PendingConfirmationBanner"] .af-pending-push-btn,
.af-pending-push-btn {
  display: none !important;
}

/* === 2. BANNER PRINCIPAL — Container Externo === */
[data-loc="client/src/components/PendingConfirmationBanner.tsx:25"] {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 40%, #2563eb 100%) !important;
  border-radius: 16px !important;
  padding: 0 !important;
  margin-bottom: 16px !important;
  box-shadow: 
    0 4px 24px rgba(37, 99, 235, 0.15),
    0 1px 3px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden !important;
  position: relative !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

/* Efeito sutil de brilho no topo */
[data-loc="client/src/components/PendingConfirmationBanner.tsx:25"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  pointer-events: none;
}

/* === 3. LAYOUT INTERNO — Flex Container === */
[data-loc="client/src/components/PendingConfirmationBanner.tsx:31"] {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 0 !important;
  padding: 20px 16px 16px !important;
  max-width: 100% !important;
}

/* === 4. ICONE DO ENVELOPE === */
[data-loc="client/src/components/PendingConfirmationBanner.tsx:32"] {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 12px !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  flex-shrink: 0 !important;
  animation: pcb-pulse 3s ease-in-out infinite !important;
}

[data-loc="client/src/components/PendingConfirmationBanner.tsx:37"] {
  width: 24px !important;
  height: 24px !important;
  color: white !important;
}

/* === 5. CONTEUDO — Area de Texto === */
[data-loc="client/src/components/PendingConfirmationBanner.tsx:39"] {
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  overflow: hidden !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

/* === 6. TITULO === */
[data-loc="client/src/components/PendingConfirmationBanner.tsx:40"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  margin-bottom: 6px !important;
}

/* Icone de alerta */
[data-loc="client/src/components/PendingConfirmationBanner.tsx:41"] {
  width: 16px !important;
  height: 16px !important;
  color: #fbbf24 !important;
  flex-shrink: 0 !important;
}

/* Texto do titulo */
[data-loc="client/src/components/PendingConfirmationBanner.tsx:42"] {
  font-size: 15px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  color: white !important;
  letter-spacing: -0.01em !important;
}

/* === 7. DESCRICAO === */
[data-loc="client/src/components/PendingConfirmationBanner.tsx:46"] {
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: rgba(255, 255, 255, 0.75) !important;
  margin-bottom: 14px !important;
  max-width: 420px !important;
}

/* Email em destaque */
[data-loc="client/src/components/PendingConfirmationBanner.tsx:48"] {
  color: white !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  word-break: break-all !important;
}

/* === 8. AREA DE ACOES === */
[data-loc="client/src/components/PendingConfirmationBanner.tsx:51"] {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  margin-top: 0 !important;
  flex-wrap: wrap !important;
}

/* Botao Reenviar Email — CTA Principal */
[data-loc="client/src/components/PendingConfirmationBanner.tsx:52"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 10px 24px !important;
  border-radius: 10px !important;
  background: white !important;
  color: #1d4ed8 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
  border: none !important;
  cursor: pointer !important;
  min-height: 40px !important;
  width: auto !important;
  max-width: 260px !important;
}

[data-loc="client/src/components/PendingConfirmationBanner.tsx:52"]:hover {
  background: #f0f4ff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important;
}

[data-loc="client/src/components/PendingConfirmationBanner.tsx:52"]:active {
  transform: translateY(0) !important;
}

[data-loc="client/src/components/PendingConfirmationBanner.tsx:52"]:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
}

/* Icone dentro do botao reenviar */
[data-loc="client/src/components/PendingConfirmationBanner.tsx:57"] {
  width: 14px !important;
  height: 14px !important;
  color: #1d4ed8 !important;
}

/* Texto "Verifique tambem a pasta de spam" */
[data-loc="client/src/components/PendingConfirmationBanner.tsx:60"] {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.45) !important;
  line-height: 1.3 !important;
}

/* === 9. BOTAO FECHAR (X) === */
[data-loc="client/src/components/PendingConfirmationBanner.tsx:65"] {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  width: 28px !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.5) !important;
  transition: all 0.15s ease !important;
  padding: 0 !important;
  border: none !important;
  cursor: pointer !important;
}

[data-loc="client/src/components/PendingConfirmationBanner.tsx:65"]:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: white !important;
}

[data-loc="client/src/components/PendingConfirmationBanner.tsx:69"] {
  width: 14px !important;
  height: 14px !important;
}

/* ============================================================
   RESPONSIVIDADE — Mobile First
   ============================================================ */

/* === MOBILE PEQUENO (< 360px) === */
@media (max-width: 359px) {
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:25"] {
    border-radius: 12px !important;
    margin: 0 -4px 12px !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:31"] {
    padding: 16px 12px 14px !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:32"] {
    width: 44px !important;
    height: 44px !important;
    margin-bottom: 10px !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:37"] {
    width: 20px !important;
    height: 20px !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:42"] {
    font-size: 13px !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:46"] {
    font-size: 11px !important;
    margin-bottom: 12px !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:52"] {
    padding: 9px 20px !important;
    font-size: 12px !important;
    min-height: 36px !important;
    width: 100% !important;
    max-width: none !important;
  }
}

/* === MOBILE PADRAO (360px - 480px) === */
@media (min-width: 360px) and (max-width: 480px) {
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:25"] {
    border-radius: 14px !important;
    margin-bottom: 14px !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:31"] {
    padding: 18px 14px 14px !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:42"] {
    font-size: 14px !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:52"] {
    width: 100% !important;
    max-width: 240px !important;
  }
}

/* === TABLET (481px - 768px) === */
@media (min-width: 481px) and (max-width: 768px) {
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:31"] {
    padding: 22px 20px 18px !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:42"] {
    font-size: 16px !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:46"] {
    font-size: 14px !important;
  }
}

/* === DESKTOP (> 768px) === */
@media (min-width: 769px) {
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:25"] {
    max-width: 680px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 16px !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:31"] {
    flex-direction: row !important;
    text-align: left !important;
    align-items: flex-start !important;
    gap: 16px !important;
    padding: 20px 24px !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:32"] {
    margin-bottom: 0 !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:39"] {
    align-items: flex-start !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:40"] {
    justify-content: flex-start !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:42"] {
    font-size: 16px !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:46"] {
    font-size: 13px !important;
    max-width: none !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:51"] {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:52"] {
    width: auto !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:65"] {
    top: 12px !important;
    right: 12px !important;
  }
}

/* === LANDSCAPE MOBILE === */
@media (max-height: 500px) and (orientation: landscape) {
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:25"] {
    margin-bottom: 8px !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:31"] {
    flex-direction: row !important;
    text-align: left !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 14px !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:32"] {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 0 !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:37"] {
    width: 18px !important;
    height: 18px !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:39"] {
    align-items: flex-start !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:40"] {
    justify-content: flex-start !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:42"] {
    font-size: 13px !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:46"] {
    font-size: 11px !important;
    margin-bottom: 8px !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:51"] {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin-top: 0 !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:52"] {
    padding: 7px 16px !important;
    min-height: 32px !important;
    font-size: 12px !important;
  }
}

/* ============================================================
   INLINE BANNER (dentro de grids de veiculos)
   Componente hg() — PendingConfirmationBanner.tsx:88+
   ============================================================ */

[data-loc="client/src/components/PendingConfirmationBanner.tsx:88"] {
  border-radius: 14px !important;
  border: 1.5px dashed rgba(37, 99, 235, 0.25) !important;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(37, 99, 235, 0.08)) !important;
  padding: 20px !important;
  text-align: center !important;
}

[data-loc="client/src/components/PendingConfirmationBanner.tsx:93"] {
  max-width: 320px !important;
  margin: 0 auto !important;
}

[data-loc="client/src/components/PendingConfirmationBanner.tsx:94"] {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  margin: 0 auto 12px !important;
}

[data-loc="client/src/components/PendingConfirmationBanner.tsx:95"] {
  width: 22px !important;
  height: 22px !important;
}

[data-loc="client/src/components/PendingConfirmationBanner.tsx:97"] {
  font-size: 14px !important;
  font-weight: 700 !important;
  margin-bottom: 6px !important;
}

[data-loc="client/src/components/PendingConfirmationBanner.tsx:100"] {
  font-size: 12px !important;
  line-height: 1.5 !important;
  margin-bottom: 4px !important;
}

[data-loc="client/src/components/PendingConfirmationBanner.tsx:103"] {
  font-size: 11px !important;
  margin-bottom: 12px !important;
}

@media (max-width: 359px) {
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:88"] {
    padding: 14px 12px !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:94"] {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 10px !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:97"] {
    font-size: 13px !important;
  }
}

/* ============================================================
   ANIMACAO — Pulse sutil no icone
   ============================================================ */
@keyframes pcb-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}

/* ============================================================
   SAFE AREA — iOS notch/dynamic island
   ============================================================ */
@supports (padding-top: env(safe-area-inset-top)) {
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:25"] {
    padding-left: max(0px, env(safe-area-inset-left)) !important;
    padding-right: max(0px, env(safe-area-inset-right)) !important;
  }
}

/* ============================================================
   DARK MODE
   ============================================================ */
@media (prefers-color-scheme: dark) {
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:25"] {
    box-shadow: 
      0 4px 24px rgba(0, 0, 0, 0.3),
      0 1px 3px rgba(0, 0, 0, 0.2) !important;
  }
}

/* ============================================================
   PRINT — Esconder banner
   ============================================================ */
@media print {
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:25"],
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:88"],
  #credits-v2-banner {
    display: none !important;
  }
}

/* ============================================================
   ACESSIBILIDADE — Focus visible
   ============================================================ */
[data-loc="client/src/components/PendingConfirmationBanner.tsx:52"]:focus-visible,
[data-loc="client/src/components/PendingConfirmationBanner.tsx:65"]:focus-visible {
  outline: 2px solid white !important;
  outline-offset: 2px !important;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:32"] {
    animation: none !important;
  }
  
  [data-loc="client/src/components/PendingConfirmationBanner.tsx:25"] {
    transition: none !important;
  }
}
