/* Canlı Destek widget - buton, temanın sağ-alt buton grubunun (WhatsApp + yukarı kaydır)
   içine taşınır; panel viewport'a sabitlenir. Grup bulunamazsa eski sabit konuma düşer. */
#cd-root { position: static; font-family: inherit; }
#cd-panel, #cd-panel input, #cd-panel select, #cd-panel button, #cd-panel textarea { font-family: inherit; }
#cd-root.cd-sabit { position: fixed; right: 18px; bottom: 170px; z-index: 99990; font-family: inherit; }
#cd-fab { position: relative; width: 34px; height: 34px; min-width: 34px; min-height: 34px; border-radius: 50%; border: none; cursor: pointer;
	background: #4d0c83; color: #fff; font-size: 17px; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 4px 14px rgba(77, 12, 131, .45); }
#cd-fab:hover { filter: brightness(1.08); }
.cd-fab-dot { position: absolute; top: 6px; right: 6px; width: 13px; height: 13px; border-radius: 50%;
	background: #e11d48; border: 2px solid #fff; }
#cd-panel { position: fixed; z-index: 99990; right: 12px; width: 380px; max-width: calc(100vw - 36px);
	max-height: 560px; display: flex; flex-direction: column; background: #fff; border-radius: 10px;
	box-shadow: 0 16px 48px rgba(15,23,42,.26); overflow: hidden; border: none; }
#cd-panel[hidden] { display: none; }
.cd-head { display: flex; justify-content: space-between; align-items: center; background: #4d0c83; color: #fff; padding: 12px 14px; }
.cd-head strong { display: block; font-size: 15px; color: #fff; }
.cd-head small { opacity: .85; font-size: 12px; color: #fff; }
#cd-kapat { background: transparent; border: none; color: #fff; font-size: 24px; cursor: pointer; line-height: 1; }
.cd-body { padding: 12px 14px; overflow-y: auto; font-size: 14px; color: #111; }
.cd-aciklama { margin: 0 0 12px; color: #334155; line-height: 1.5; }
.cd-bilgi { color: #666; }
.cd-bos-durum { display: flex; align-items: center; gap: 12px; background: #f8fafc;
	border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; margin-bottom: 14px; }
.cd-bos-durum i { color: #4d0c83; font-size: 20px; }
.cd-bos-durum strong { display: block; font-size: 13px; color: #0f172a; margin-bottom: 2px; }
.cd-bos-durum span { display: block; font-size: 12px; color: #64748b; line-height: 1.4; }
#cd-adim-offline .cd-f-row { margin-bottom: 12px; }
#cd-adim-offline .form-label { display: block; font-size: 12px; font-weight: 600; color: #334155; margin-bottom: 5px; }
.cd-captcha-satir { display: flex; align-items: center; gap: 8px; }
.cd-captcha-satir img { height: 38px; border-radius: 6px; border: 1px solid #e2e8f0; cursor: pointer; }
.cd-captcha-satir button { flex: 0 0 38px; height: 38px; border: 1px solid #e2e8f0; background: #f8fafc;
	border-radius: 6px; cursor: pointer; font-size: 17px; color: #4d0c83; }
.cd-captcha-satir input { flex: 1; min-width: 0; }
.cd-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important;
	height: 1px !important; opacity: 0 !important; }
#cd-adim-offline textarea { resize: vertical; min-height: 84px; }
.cd-buton-satir { display: flex; gap: 8px; margin-top: 4px; align-items: stretch; }
.cd-buton-satir .cd-of-buton { flex: 1; min-width: 0; width: auto; margin: 0; white-space: nowrap; }
#cd-personel-liste { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.cd-personel { display: flex; justify-content: space-between; align-items: center; gap: 8px;
	border: 1px solid #e5e7eb; border-radius: 10px; padding: 9px 10px; background: #f8fafc; }
.cd-personel .cd-p-ad { font-weight: 600; }
.cd-personel .cd-p-durum { font-size: 12px; color: #16a34a; }
.cd-personel.mesgul .cd-p-durum { color: #d97706; }
.cd-personel button { background: #4d0c83; color: #fff; border: none; border-radius: 8px; padding: 7px 12px; cursor: pointer; font-weight: 600; }
.cd-yenile { background: transparent; border: none; color: #4d0c83; cursor: pointer; font-size: 13px; padding: 4px 0; }
#cd-adim-form .cd-f-row { margin-bottom: 10px; }
.cd-satir { display: flex; gap: 8px; }
.cd-satir .cd-f-yarim { flex: 1; min-width: 0; }
.cd-kvkk { font-size: 12px; color: #666; margin: 6px 0 10px; }
.cd-basla-btn { width: 100%; }
.cd-hata { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 8px 10px; margin-top: 8px; }
#cd-personel-degistir { font-size: 12px; }
#cd-durum-bar { border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
#cd-durum-bar.cd-bekliyor { background: #fef9c3; color: #854d0e; }
#cd-durum-bar.cd-aktif { background: #dcfce7; color: #166534; }
#cd-durum-bar.cd-kapali { background: #fee2e2; color: #991b1b; }
#cd-mesajlar { display: flex; flex-direction: column; gap: 6px; min-height: 140px; max-height: 260px; overflow-y: auto; margin-bottom: 10px; }
.cd-msg { max-width: 82%; padding: 7px 10px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; word-break: break-word; }
.cd-msg .cd-saat { display: block; font-size: 10.5px; opacity: .6; margin-top: 2px; }
.cd-msg.ben { align-self: flex-end; background: #4d0c83; color: #fff; border-bottom-right-radius: 3px; }
.cd-msg.karsi { align-self: flex-start; background: #f1f5f9; color: #111; border-bottom-left-radius: 3px; }
.cd-msg.sistem { align-self: center; background: #f8fafc; color: #64748b; font-size: 12px; border: 1px dashed #cbd5e1; }
/* Input + Gönder butonu tek grup görünümünde: arama kutusundaki input-group yapısı. */
.cd-girdi { display: flex; gap: 0; margin-bottom: 8px; border: 1px solid #E7EBEF; border-radius: 8px; overflow: hidden; }
.cd-girdi input { flex: 1; min-width: 0; border: none !important; box-shadow: none !important; background: #fff;
	border-radius: 8px 0 0 8px !important; padding: 9px 10px; font-size: 14px; }
/* Gönder butonu rengi site temasındaki koyu buton (Yeni-Button) sınıfından gelir.
   KRİTİK: Bu kural widget CSS'indeki sabit renk (.cd-g girdi button) kuralının
   tema sınıfını ezmesini engeller — spesifikliği daha yüksek tutulmuştur. */
#cd-girdi #cd-gonder.Yeni-Button { border-radius: 0 8px 8px 0; margin: 0; align-self: stretch; height: 40px; }
@media (max-width: 480px) { #cd-root { right: 12px; bottom: 88px; } #cd-panel { width: calc(100vw - 24px); } }
