/* chat-ia.css — Modal de chat IA do suporte FC Mania */

.fcm-chat-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  display: none; align-items: center; justify-content: center;
  z-index: 9999;
}
.fcm-chat-overlay.open { display: flex; }

.fcm-chat {
  width: 100%; max-width: 560px; max-height: 90vh;
  background: #fff; border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.fcm-chat__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: #1f2733; color: #fff;
}
.fcm-chat__head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.fcm-chat__head small { display: block; font-size: 12px; opacity: .75; font-weight: 400; }
.fcm-chat__close { background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }

.fcm-chat__body {
  flex: 1; min-height: 280px; max-height: 50vh; overflow-y: auto;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 10px;
  background: #f5f6f8;
}

.fcm-msg { max-width: 85%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.fcm-msg--bot  { align-self: flex-start; background: #fff; color: #1f2733; border-bottom-left-radius: 4px; border: 1px solid #e3e6ea; }
.fcm-msg--user { align-self: flex-end; background: #2f80ed; color: #fff; border-bottom-right-radius: 4px; }
.fcm-msg--typing { align-self: flex-start; background: #fff; color: #8a8f98; font-size: 13px; border: 1px solid #e3e6ea; }

.fcm-chat__foot { padding: 10px 12px; border-top: 1px solid #e3e6ea; background: #fff; }

.fcm-prod, .fcm-actions { display: flex; flex-direction: column; gap: 8px; }
.fcm-btn {
  text-align: left; padding: 10px 12px; border: 1px solid #cfd4da;
  background: #fff; color: #1f2733; border-radius: 8px; cursor: pointer; font-size: 14px;
}
.fcm-btn:hover { background: #f0f2f5; }
.fcm-btn--primary { background: #2f80ed; color: #fff; border-color: #2f80ed; }
.fcm-btn--primary:hover { background: #2467c0; }

.fcm-type { display: flex; align-items: center; gap: 8px; }
.fcm-type input {
  flex: 1; padding: 10px 12px; border: 1px solid #cfd4da; border-radius: 8px; font-size: 14px;
}
.fcm-send {
  width: 40px; height: 40px; border: 0; border-radius: 8px;
  background: #2f80ed; color: #fff; font-size: 18px; cursor: pointer;
}
.fcm-ticket-note {
  font-size: 13px; color: #4a5161; text-align: center; padding: 10px;
  border: 1px dashed #cfd4da; border-radius: 8px; background: #f5f6f8;
}
