/* Tranigo Assistant — sohbet penceresi (tasarım / demo, 2026-10-28). Tailwind önceden derlendiği için düz CSS; her kural #tga altında. */
#tga-launcher {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px; border: 2px solid #b19f6a; /* logodaki altın — koyu zeminde belirgin */ border-radius: 999px;
  background: #006565; color: #fff; font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1.2; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.25);
  transition: transform .15s ease, background .15s ease;
}
#tga-launcher:hover { background: #005050; transform: translateY(-1px); }
#tga-launcher .material-symbols-outlined { font-size: 24px; }
#tga-launcher .tga-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 2px #006565; margin-left: -4px; align-self: flex-start; margin-top: 10px; }
#tga-launcher .tga-short { display: none; }
/* Telefonda kısa yazılı düğme ("🤖 Asistan"): yalnız simge ne olduğunu anlatmıyordu (kullanıcı, 2026-10-28). */
@media (max-width: 767px) {
  #tga-launcher { height: 44px; padding: 0 12px 0 9px; gap: 5px; border-radius: 12px; font-size: 14px; }
  #tga-launcher .tga-label, #tga-launcher .tga-dot { display: none; }
  #tga-launcher .tga-short { display: inline; }
}

#tga {
  position: fixed; right: 20px; bottom: 84px; z-index: 70; width: 380px; height: min(640px, calc(100vh - 120px));
  display: flex; flex-direction: column; background: #f4f8f9; border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 48px rgba(15,46,46,.35); font-size: 14px; color: #161d1f;
  opacity: 0; transform: translateY(12px) scale(.98); pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
#tga.tga-open { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 767px) {
  #tga { inset: 0; width: 100%; height: 100dvh; border-radius: 0; }
  /* Tam ekran pencere çerez bandının (9998) da üstünde olsun; #tga, #float-actions (z-index 60) içinde olduğu için kutuyu öne al. */
  #float-actions:has(#tga.tga-open) { z-index: 9999 !important; }
}

#tga .tga-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px; background: #006565; color: #fff; }
#tga .tga-avatar { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
#tga .tga-avatar img { width: 26px; height: 26px; object-fit: contain; }
#tga .tga-title { font-weight: 700; font-size: 15px; line-height: 1.2; }
#tga .tga-sub { font-size: 12px; opacity: .85; display: flex; align-items: center; gap: 6px; }
#tga .tga-sub::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; }
#tga .tga-demo { margin-left: 6px; background: #fe7e4f; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px; letter-spacing: .04em; }
#tga .tga-close { margin-left: auto; background: transparent; border: 0; color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }
#tga .tga-close:hover { background: rgba(255,255,255,.15); }

#tga .tga-body { flex: 1; overflow-y: auto; padding: 16px 12px 8px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
#tga .tga-msg { max-width: 85%; padding: 10px 13px; border-radius: 16px; line-height: 1.45; white-space: pre-line; word-wrap: break-word; }
#tga .tga-bot { align-self: flex-start; background: #fff; border: 1px solid #dfe8e8; border-bottom-left-radius: 4px; }
#tga .tga-user { align-self: flex-end; background: #006565; color: #fff; border-bottom-right-radius: 4px; }
#tga .tga-typing { align-self: flex-start; background: #fff; border: 1px solid #dfe8e8; border-radius: 16px; padding: 12px 14px; display: flex; gap: 4px; }
#tga .tga-typing span { width: 7px; height: 7px; border-radius: 50%; background: #8aa3a3; animation: tga-blink 1.2s infinite ease-in-out; }
#tga .tga-typing span:nth-child(2) { animation-delay: .2s; } #tga .tga-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes tga-blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

#tga .tga-chips { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 100%; }
#tga .tga-chip { border: 1px solid #006565; color: #006565; background: #fff; border-radius: 999px; padding: 7px 12px; font-family: inherit; font-weight: 600; font-size: 13px; line-height: 1.2; cursor: pointer; }
#tga .tga-chip:hover { background: #e6f2f2; }

/* Sohbet alanı dolunca öğeler ezilmesin (kartlar küçülüp kayboluyordu). */
#tga .tga-body > * { flex-shrink: 0; }
/* Araç kartları arama sayfası (Step1) gibi: her araç türü bir kart; üstte resim + ad + kapasite, altında o aracı veren firmalar
   fiyata göre sıralı satırlar (firma, yıldız, puan · yorum, fiyat, Seç). Fazla firma "+N firma daha" ile kart içinde açılır. */
#tga .tga-cards { display: flex; flex-direction: column; gap: 8px; align-self: stretch; }
#tga .tga-car { background: #fff; border: 1px solid #dfe8e8; border-radius: 14px; overflow: hidden; }
#tga .tga-car-h { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-bottom: 1px solid #e8eeee; }
/* Resim kesilmeden tam görünsün (contain). */
#tga .tga-car-h img { width: 92px; height: 56px; flex: none; object-fit: contain; }
#tga .tga-car-b { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
#tga .tga-car-n { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#tga .tga-car-m { font-size: 12px; color: #52605f; display: flex; gap: 10px; }
#tga .tga-car-m .material-symbols-outlined { font-size: 15px; vertical-align: -3px; color: #006565; }
#tga .tga-off { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid #f0f4f4; }
#tga .tga-off:last-child { border-bottom: 0; }
#tga .tga-off[hidden] { display: none; }
#tga .tga-off-l { flex: 1; min-width: 0; }
#tga .tga-off-co { font-size: 13px; font-weight: 600; color: #3e4948; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tga .tga-stars { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #6b7a79; margin-top: 1px; }
#tga .tga-stars .material-symbols-outlined { font-size: 13px; color: #fbbf24; font-variation-settings: 'FILL' 1; margin-right: -3px; }
#tga .tga-stars .tga-s-off { color: rgba(251,191,36,.3); font-variation-settings: 'FILL' 0; }
#tga .tga-stars b { color: #161d1f; margin-left: 3px; }
/* Firmanın kabul ettiği ödeme yöntemleri (kart / kısmi / nakit). */
#tga .tga-pm { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
#tga .tga-pm span { font-size: 10.5px; line-height: 1; padding: 3px 6px; border-radius: 6px; background: #eef5f5; color: #2f5d5d; white-space: nowrap; }
#tga .tga-car-p { font-weight: 800; font-size: 16px; color: #006565; white-space: nowrap; }
#tga .tga-off .tga-btn { padding: 6px 14px; font-size: 13px; flex: none; }
#tga .tga-more { display: block; width: 100%; background: #f8fbfb; border: 0; border-top: 1px solid #f0f4f4; color: #006565; font-family: inherit; font-weight: 600; font-size: 12px; padding: 7px; cursor: pointer; }
#tga .tga-badge { background: #fff1eb; color: #c4541f; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }

#tga .tga-btn { border: 0; border-radius: 10px; padding: 10px 12px; font-family: inherit; font-weight: 700; font-size: 14px; line-height: 1.2; cursor: pointer; text-align: center; text-decoration: none; display: block; }
#tga .tga-btn-p { background: #006565; color: #fff; } #tga .tga-btn-p:hover { background: #005050; }
#tga .tga-btn-o { background: #fe7e4f; color: #fff; } #tga .tga-btn-o:hover { background: #f06a39; }
#tga .tga-btn-l { background: transparent; color: #006565; border: 1px solid #bdc9c8; }

#tga .tga-card { align-self: stretch; background: #fff; border: 1px solid #dfe8e8; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
#tga .tga-card-h { font-weight: 700; display: flex; align-items: center; gap: 6px; }
#tga .tga-rows { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; }
#tga .tga-rows dt { color: #6b7a79; } #tga .tga-rows dd { margin: 0; font-weight: 600; }
#tga .tga-total { display: flex; justify-content: space-between; border-top: 1px dashed #cfdada; padding-top: 8px; font-weight: 800; font-size: 16px; color: #006565; }
#tga .tga-note { font-size: 12px; color: #52605f; }
#tga .tga-row2 { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

#tga .tga-foot { padding: 8px 10px 10px; background: #fff; border-top: 1px solid #e3eaea; }
#tga .tga-form { display: flex; gap: 8px; align-items: flex-end; }
#tga .tga-input { flex: 1; resize: none; border: 1px solid #bdc9c8; border-radius: 12px; padding: 10px 12px; font-family: inherit; font-size: 14px; max-height: 110px; outline: none; background: #f8fbfb; }
#tga .tga-input:focus { border-color: #006565; background: #fff; }
#tga .tga-send { width: 42px; height: 42px; border: 0; border-radius: 12px; background: #fe7e4f; color: #fff; cursor: pointer; flex: none; }
#tga .tga-send:disabled { opacity: .45; cursor: default; }
#tga .tga-disc { font-size: 11px; color: #6b7a79; text-align: center; margin-top: 6px; }
#tga .tga-disc a { color: #006565; text-decoration: underline; }
@media print { #tga, #tga-launcher { display: none !important; } }

/* Kullanılmış (seçilmiş / onaylanmış) düğmeler soluk. */
#tga .tga-btn:disabled { opacity: .45; cursor: default; }
