/* ========== RESET ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ========== GLOBAL ========== */
html, body {
  font-family: 'Inter', sans-serif;

  font-weight: normal;
  background-size: contain;
  background-repeat: no-repeat;
  background-attachment: fixed;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  color: #131E29;
  position: fixed;
  overflow: hidden;
}

body {
  position: relative;
}



.gizlilik-cerez-text {
  color: #131E29;
  font-size: 11px;
  text-align: center;
  opacity: 0.7;
  line-height: 18px;
  margin-bottom: 10px;
  
}
/* ========== WRAPPER & HEADER ========== */
.chat-wrapper {
  display: flex;
  flex-direction: column;
  width: 100vw;
  max-width: 680px;
  height: 100dvh;
  min-height: 100dvh;
  background: #fff;
  overflow: hidden;      /* Ana wrapper da asla taşmasın */
}

.chat-header {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center; /* Logo ortalanır */
  height: 60px;
  padding: 0 16px;
  border-bottom: 1px solid #131e2944;
  z-index:999999999;
  max-width: 680px;
}


/* ========== CHAT MESSAGES ========== */
.chat-container {
  top: 48px;     /* Header yüksekliği */
  bottom: 8px;  /* Input kutusu yüksekliği + margin */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  background: #fff;
  padding: 18px 12px 40px 12px;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: #cccccc transparent;
  margin-bottom: 60px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: 680px;
  width: 100%;
}


.input-box {
  display: flex;
  align-items: center;
  height: 48px;
  background: #F3F6F8;            /* default: soft gray */
  border: 1px solid transparent;   /* no visible border by default */
  border-radius: 8px;
  font-size: 16px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 5px;
  padding: 0 6px;
  z-index: 99;
  box-sizing: border-box;
  margin: 0;
  max-width: 680px;
  width: 100%;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

/* Focus state: white bg + blue border/glow (2. görsel) */
.input-box:focus-within {
  background: #ffffff;    
  border-color: #4197cb;

}

/* Reaction bar: bot mesaj kutusunun ALTINDA sola yaslı */
.message.bot-message .reaction-bar {
  display: flex;
  justify-content: flex-start;   /* sol alt */
  gap: 8px;
  margin-top: 6px;
}

.message.bot-message .reaction-bar button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  opacity: 0.65;
  transition: opacity 0.2s ease;
  margin-right: 5px;

}

.message.bot-message .reaction-bar button:hover {
  opacity: 1;
}

/* Textarea / input */
#userInput {
  flex: 1;
  min-width: 0;
  resize: none;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  background: transparent;
  border: none;
  outline: none;
  color: #2a2e35;
  font-size: 16px;
  font-family: "Inter", sans-serif;
  height: 36px;
  line-height: 36px;
  padding-left: 5px;
  margin: 0;
  box-sizing: border-box;
  
}

/* Placeholder & scrollbar of input */
#userInput::placeholder { color: #9aa4b2; font-size: 14px; }
#userInput::-webkit-scrollbar { height: 6px; }
#userInput::-webkit-scrollbar-thumb { background: #c7cbd1; border-radius: 3px; }

/* Voice button */
.voice-button {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: .8;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: opacity .15s ease, background .15s ease;
}
.voice-button:hover { opacity: 1; background: rgba(0,0,0,.04); }

/* Send button (default gray → focusta mavi) */
.send-button {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #cccccc;        /* default: gray */
  border: none;
  border-radius: 6px;
  cursor: pointer;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, transform .05s ease;
}
.input-box:focus-within .send-button {
  background: #4197cb;        /* focus: blue */
}
.send-button:active { transform: scale(.98); }

.send-button img {
  width: 18px; height: 18px;
  display: block;
}

.voice-button img {
  width: 32px;
  height: 32px;
  background: #ffffff;        /* default: gray */
  border: none;
  border-radius: 6px;
  padding: 5px;
  display: block;
}
/* Beta text */



.logo { width: 120px; opacity: 1; max-width: 90vw; }
.icon-button {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F3F6F8;
  border-radius: 4px;
  padding: 5px;
}
.icon-button img { width: 100%; height: 100%; opacity:1; }


.chat-container::-webkit-scrollbar { height: 3px; width: 3px; }
.chat-container::-webkit-scrollbar-thumb { background: #ededed; border-radius: 10px; opacity: 0.5 !important; }
.chat-container::-webkit-scrollbar-track { background: transparent; opacity: 0.5 !important; }
/* Balon genel ayar */
.message{
  position: relative;            /* <-- timestamp için gerekli */
  display: inline-block;
  max-width: 80%;
  margin: 6px 0;
  padding: 10px 12px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 14px;
  border-radius: 4px;
}

/* Saat etiketi */
.message .timestamp{
  position: absolute;
  right: 12px;
  bottom: 6px;
  font-size: 11px;
  opacity: .65;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.footer-row .reaction-bar {
  position: absolute;
  left: 12px;
  bottom: 6px;
  font-size: 11px;
  opacity: .65;
}

.footer-row .reaction-bar button {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.footer-row .reaction-bar img {
  width: 18px;
  height: 18px;
  display: block;
}

/* Kullanıcı balonu + saat rengi */
.user-message{
  background: #3A97CD;
  color:#fff;
  align-self: flex-end;
  padding: 8px 12px !important;
  margin-left:auto;
  margin-right:0;
  border-radius:4px;
  padding-bottom: 26px !important;    
  min-width: 50px;      
}
.user-message .timestamp{ color: rgba(255,255,255,.85); }

/* Bot balonu + saat rengi */
.bot-message{
  background:#F3F6F8;
  color:#131E29;
  align-self:flex-start;
  margin-right:auto;
  padding-bottom: 26px;          /* saat için yer */
}
.bot-message .timestamp{ color: rgba(0,0,0,.45); }

.bot-message.loading {

  padding: 12px 34px;
}
.message .dot-loader {
  position: relative;
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4197cb;
  animation: dotBlink 1.2s infinite ease-in-out;
}
.message .dot-loader::before,
.message .dot-loader::after {
  content: "";
  position: absolute;
  top: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4197cb;
}
.message .dot-loader::before { left: -16px; animation: dotBlink 1.2s infinite ease-in-out .15s; }
.message .dot-loader::after { left: 16px; animation: dotBlink 1.2s infinite ease-in-out .3s; }
@keyframes dotBlink {
  0%,100% { opacity: .3; transform: scale(.8);}
  50%     { opacity: 1; transform: scale(1);}
}

.btn-yol-tarifi {
  color: gray;
  padding: 8px 22px;
  text-decoration: none;
  background-color: transparent;
  border-radius: 10000px;
  margin-top: 10px;
  display: block;
  width: 110px;
  border: solid 1px gray;
}

/* ========== PRODUCT SLIDER ========== */
.product-slider {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  margin-bottom: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  width: 100%;
  max-width: 100vw;
}
.product-slider::-webkit-scrollbar { height: 3px; opacity: 0.5 !important; }
.product-slider::-webkit-scrollbar-thumb { background: #ededed; border-radius: 10px; opacity: 0.5 !important; }
.product-slider::-webkit-scrollbar-track { background: transparent; opacity: 0.5 !important; }
.product-card {
  background: transparent !important;
  border-radius: 16px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  padding: 18px 14px 16px 14px;
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  text-align: center;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.product-image {
  width: 100px; height: 100px; object-fit: contain; border-radius: 8px; margin-bottom: 8px;
}
.product-title { font-weight: 600; font-size: 16px; margin-bottom: 5px; }
.product-price { color: #EA4C89; font-weight: 700; margin-bottom: 7px; }
.product-link { background: #222; color: #fff; padding: 7px 16px; border-radius: 24px; font-size: 15px; text-decoration: none; }
.prod-title { font-size: 12px; }
.buy-button { color: red; }



/* === 2. görsel görünüm fixleri === */
/* ===== ÜRÜN SATIRI — 3 sütun sabitle (sol 56px / orta esnek / sağ 160px) ===== */

/* Balon içindeki liste genişliği tam olsun */
/* ===== ÜRÜN SATIRI — 3 sütun net grid =====
   56px thumb | esnek içerik | 160px buton alanı
   Başlık 2 satır + ellipsis, butonlar yan yana
*/


/* ==== ÜRÜN SATIRI — resim solda | sağda: başlık → fiyat → butonlar ==== */
.product-list .product-row{
  display: grid;
  grid-template-columns: 84px 1fr;            /* sol thumb | sağ içerik */
  grid-template-areas:
    "thumb main"
    "thumb actions";
  column-gap: 12px;
  align-items: start;
  width: 100%;
  padding-top: 16px;

  border-radius: 12px;
  background: #fff;

}

.bot-message.wide{
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  background: transparent;     /* balon arka planını kaldır */
  box-shadow: none;
}

/* Intro paragrafı yine içeriden hizalansın */
.bot-message.wide > p{
  padding: 0 12px;
}

.product-list-wrap{
  width: 100%;
  max-width: 680px;   /* chat-wrapper genişliği */
  margin: 4px auto 12px auto;  /* balonlarla hizalı boşluk */
  padding: 0px;    /* yanlardan chat ile aynı padding */
}
.product-list{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Sol küçük görsel (sabit) */
.product-list .product-thumb{ 
  grid-area: thumb; 
  width:84px; 
  height:auto;
  border:none;
  border-radius:8px; 
  overflow:hidden; 
  background:#fff; }

.product-list .product-thumb img{ width:100%; height:100%; object-fit:cover; }

/* Sağ içerik: başlık + fiyat (tam sarma, kısaltma yok) */
.product-list .product-main{ grid-area: main; min-width:0; display:flex; flex-direction:column; gap:4px; }
.product-list .product-main .title{
  white-space: normal;            /* TAM yazsın */
  word-break: break-word;
  overflow: visible;
  display: block;                 /* clamp yok */
  line-height: 1.25;
  font-weight: 700; font-size: 14px; color:#111827;
}
.product-list .product-main .price{
  white-space: nowrap;
  font-size: 13px; color:#111827; opacity:.9;
}

/* Butonlar: fiyatın ALTINDA, yan yana */
.product-list .product-actions{
  grid-area: actions;
  margin-top: 16px;
  display: flex; gap: 8px; align-items: center; justify-content: flex-start;
  white-space: nowrap;            /* buton metni kırılmasın */
}
.product-list .product-actions .btn{
  padding: 6px 10px; border-radius: 9999px; font-size: 13px;
  display: inline-flex; align-items:center; gap:8px; text-decoration:none !important; cursor:pointer;
}
.product-list .product-actions .btn-ghost{ 
  background:#fff; 
  border:1px solid #CCCCCC; color:#131E29; 
padding: 12px 18px;}


.product-list .product-actions .btn-primary{ 
  background:#DEE3E7; 
  color:#131E29; 
  border:none; 
  padding: 12px 18px;
}
.btn_urunegit {
    padding: 12px 18px; border-radius: 9999px; font-size: 13px;
      background:#DEE3E7; 
  color:#131E29; 
  display: inline-flex; align-items:center; gap:8px; text-decoration:none; cursor:pointer;
}

.btn-primary2{ 
  background:#131E29; 
  color:white; 
  border:none; 
    padding: 12px 18px; border-radius: 9999px; font-size: 13px;
  display: inline-flex; align-items:center; gap:8px; text-decoration:none; cursor:pointer;
}
/* + ikonu */
.product-list .btn-ghost .plus{
  width:16px; height:16px; border-radius:50%;
  border:1px solid #B7D7EF; position:relative; display:inline-block;
}
.product-list .btn-ghost .plus:before,
.product-list .btn-ghost .plus:after{ content:""; position:absolute; background:#0A6EBF; }
.product-list .btn-ghost .plus:before{ width:8px; height:1px; top:7px; left:4px; }
.product-list .btn-ghost .plus:after { width:1px; height:8px; top:4px; left:7px; }

/* Detay paneli: kartın altında tam genişlik */
.product-list .product-details{
  grid-column: 1 / -1;
  margin-top: 10px; border:1px solid #E5E7EB; border-radius:12px; padding:12px; background:#fff;
  display: none;
}
.product-list .product-row.open .product-details{ display:block; }

/* Çok dar telefonlar için sağda buton alanına nefes */
@media (max-width: 360px){
  .product-list .product-actions{ flex-wrap: wrap; row-gap: 6px; }
}



/* ========== QUICK QUESTIONS: yatay slider (full width, borderless) ========== */
.quick-questions-box {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 58px;
  z-index: 9999;
  width: 100%;
  background: transparent;
  display: flex;
  justify-content: center;
}

/* İç kapsayıcı => yatay scroll track */
.quick-questions-box-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

/* scrollbar gizle */
.quick-questions-box-inner::-webkit-scrollbar { display: none; }
.quick-questions-box-inner { scrollbar-width: none; }



/* Balonlar (borderless chip) */
.quick-question {
  flex: 0 0 auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px;
  min-height: 34px;
  line-height: 1.32;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  background: #fff;
  color: #23272f;
  border: solid 1px #cccccc72;              /* <-- border kaldırıldı */

  scroll-snap-align: start;
}

/* İkon (sadece gerekiyorsa) */
.quick-question img,
.quick-question .quick-question-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}


.quick-questions-button {
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 100px;
  margin-right: -36px;
}



/* ========== MODAL ========== */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.750);
  backdrop-filter: blur(24.1px);
  -webkit-backdrop-filter: blur(24.1px);
  z-index: 10000;
  width: 100vw;
  font-size: 14px;
}
.hidden { display: none; }
.modal-content {
  background: transparent;
  padding: 10px;
  border-radius: 12px;
  text-align: center;
  color: #131E29;
  position: relative;
  width: 96vw;
  max-width: 680px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: none;

}

.close-btn {
  position: absolute;
  top: 0px;
  left: 34px;
  font-size: 2.5rem;
  line-height: 1;
  background: none;
  border: none;
  color: #444444;
  cursor: pointer;
  outline: none;
  opacity: 1;
  width: 36px;
}
.close-btn:hover { opacity: 0.8; }
.new-chat-content,
.feedback-content,
.report-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  width: 320px;
  padding: 40px;
}
.new-chat-header-icon,
.report-header-icon,
.contact-header-icon {
  width: 56px;
  height: auto;
  margin-top: 16px;
  margin-bottom: 16px;
}

/* ========== TEXTAREA (Hata bildir) ========== */
.feedback-textarea {
  width: 90%;
  margin-bottom: 6px;
  margin-top: 20px;
  border: 1px solid #444;
  background: #ffffff;
  color: #444444;
  border-radius: 4px;
  padding: 8px;
  font-size: 12px;
  font-family: "Inter", sans-serif;
  resize: none;
}

/* ========== BUTONLAR ========== */
.modal-actions,
.modal-actions2{
  margin-top:16px;
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:stretch;
  width:100vw;
    max-width: 680px;
  padding:0 12px;          /* iç boşluk */
  box-sizing:border-box;   /* padding genişliğe dahil */
  overflow-x:hidden;       /* emniyet: yatay taşmayı kes */
}


.modal-actions h1 {
font-size: 18px;
margin-bottom: 20px;
color: #131E29;
font-weight: normal;
}
.modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #CCCCCC;
  color: #131E29;
  padding: 16px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  font-size: 12px;
  outline: none;
  width: auto;
  height: 48px;
    max-width: 680px;
    -webkit-tap-highlight-color: transparent;
}

.modal-btn2 {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #CCCCCC;
  color: #131E29;
  padding: 16px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  font-size: 12px;
  outline: none;
  width: 200px;
  height: 48px;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  position: fixed;
    -webkit-tap-highlight-color: transparent;
}

.message.bot-message a {
  color: #131E29 ;
  text-decoration: underline; /* istersen kaldırabilirsin */
}
.modal-btn:active {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #CCCCCC;
  color: #131E29;
  padding: 16px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  font-size: 12px;
  outline: none;
  width: auto;
  height: 48px;
    max-width: 680px;
    -webkit-tap-highlight-color: transparent;
}

#voiceModalContent{
  height: 30% !important;

}

.btn-left-icon { width: 18px; height: 18px; margin-right: 10px; vertical-align: middle; }
.btn-right-icon { width: 22px; height: 22px; margin-left: auto; opacity: 0.7; }
.btn-right-icon:hover { opacity: 1; }
.privacy-content { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; padding: 4px; }
.privacy-header-icon { width: 56px; height: auto; margin: 16px 0; }
.privacy-scroll {
  width: 100%;
  max-height: 60vw;
  overflow-y: auto;
  border: 1px solid #444;
  border-radius: 8px;
  background: #ffffff;
  color: #444444;
  margin-bottom: 16px;
  padding: 12px;
  text-align: left;
  font-size: 12px;
}

/* ========== POWERED LOGO ========== */
.powered-logo {
  width: 80px;

  display: block;
  position: absolute;
  bottom: 8px;
  opacity: 0.5 !important;
  left: 50%;
  transform: translateX(-50%);
}
.version { 
    width: 100%;

  display: block;
  position: absolute;
  bottom: 35px;
  font-size: 11px;
  opacity: 0.5 !important;
  left: 50%;
  transform: translateX(-50%);
}

/* ========== PC (>=641px) ========== */


@media (max-width: 600px) {
  .input-box {
    left: 50%;
    transform: translateX(-50%);
    width: 94vw;
    max-width: 100vw;
    min-width: 0;
  }
}



/* feedback bar kutusu */
.feedback-bar{
  margin:20px 0 8px;
  padding:0px;
  border:none;
  border-radius:12px;
  background:#fff;
}
.feedback-bar.answered{opacity:.9}

/* soru */
.feedback-question{
  font-size:14px;
  color:#1F2A37;
  margin-bottom:10px;
}

/* butonlar */
/* butonlar (her zaman yan yana) */
.feedback-actions {
  display: flex;
  flex-direction: row;   /* yatay diz */
  gap: 10px;             /* araları boşluk */
  flex-wrap: nowrap;     /* asla alt satıra geçme */
  align-items: center;
  justify-content: flex-start;
}

.feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #E5E7EB;
  background: #fff;
  color: #0F172A;
  font-size: 14px;
  cursor: pointer;
  transition: box-shadow .2s ease;
  white-space: nowrap;   /* buton içi metin tek satırda */
}

.feedback-btn .ico img {
  width: 18px;
  height: 18px;
  display: block;
}

.feedback-btn:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.feedback-btn:disabled {
  opacity: .55;
  cursor: default;
}


