/* izhost/chat-sdk — sohbet widget'ı, temel görünüm (Yön A, sakin kurumsal). Varsayılan belirteçler izhost değerleridir;
   site teması yalnız belirteçleri değiştirir (config izhost-chat.theme). Tüm seçiciler .izw kökünün altında; site CSS'i
   widget'ı bozmasın diye kök içinde sıfırlama yapılır. Konum ve hizalar mantıksal özelliklerle: dir=rtl sayfada sol alt. */

.izw {
  --izw-brand: #3a90ce; --izw-ink: #1d6ea8; --izw-deep: #175a8a; --izw-tint: #e8f2fa; --izw-tint-line: #c8e0f1;
  --izw-bg: #fff; --izw-alt: #f3f6f9; --izw-text: #0f172a; --izw-text2: #475569; --izw-muted: #64748b;
  --izw-line: #dfe5ec; --izw-line2: #eaeff4; --izw-err: #9f1c1c; --izw-warn: #b45309;
  --izw-sh: 0 8px 24px rgba(15, 23, 42, .10); --izw-ease: cubic-bezier(.2, .8, .2, 1);
  --izw-font-d: 'Montserrat', 'Inter', system-ui, sans-serif; --izw-font-b: 'Inter', system-ui, sans-serif;
  --izw-r: 8px; --izw-r-sm: 6px; --izw-r-panel: var(--izw-r); --izw-r-av: var(--izw-r-sm); --izw-r-tip: var(--izw-r-sm); --izw-r-tail: 2px;
  --izw-cta: var(--izw-ink); --izw-cta-h: var(--izw-deep); --izw-label: var(--izw-deep); --izw-anchor: var(--izw-deep);
  --izw-tl: var(--izw-ink); --izw-agent: var(--izw-ink); --izw-ghost-line: var(--izw-line);
  --izw-err-bg: #fdecec; --izw-err-line: #f3c6c6; --izw-over: #b91c1c; --izw-tip-bg: var(--izw-text);
  --izw-on: #16a34a; --izw-off: #94a3b8;
  --izw-z: 9000; --izw-z-full: 10000;
  /* Çerez kartının kapladığı alt yükseklik (JS yazar); başlatıcı ve panel onun üstüne çıkar */
  --izw-occ: 0px; --izw-gap: 24px; --izw-side: 24px;
  --izw-bottom: calc(max(var(--izw-gap), calc(var(--izw-occ) + 12px)) + env(safe-area-inset-bottom, 0px));
  position: static; display: block; margin: 0; padding: 0; border: 0; background: none;
  font: 400 14px/1.5 var(--izw-font-b); color: var(--izw-text); letter-spacing: normal; text-transform: none; text-align: start;
  -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased;
}
.izw, .izw *, .izw *::before, .izw *::after { box-sizing: border-box; }
.izw :where(div, span, section, header, form, p, time, strong, a, i) {
  margin: 0; padding: 0; border: 0; background: none; letter-spacing: inherit; text-transform: inherit; font-family: inherit; text-shadow: none;
}
.izw button, .izw textarea {
  font: inherit; color: inherit; margin: 0; letter-spacing: inherit; text-transform: none; text-shadow: none; box-shadow: none;
  -webkit-appearance: none; appearance: none; border-radius: 0; min-width: 0; min-height: 0; line-height: inherit; background: none; border: 0;
}
.izw button { cursor: pointer; }
.izw svg { display: block; flex: none; max-width: none; }
.izw [hidden] { display: none !important; }
.izw .izw-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Odak halkası (yüksek karşıtlık kipinde saydam çizgi görünür kalır) */
.izw :focus { outline: none; }
.izw .izw-launch:focus-visible, .izw .izw-ib:focus-visible, .izw .izw-send:focus-visible, .izw .izw-btn:focus-visible {
  outline: 2px solid transparent; outline-offset: 2px; box-shadow: 0 0 0 2px var(--izw-bg), 0 0 0 4px var(--izw-brand);
}

/* Başlatıcı */
.izw .izw-launch {
  position: fixed; inset-inline-end: var(--izw-side); bottom: var(--izw-bottom); z-index: var(--izw-z);
  width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--izw-r); background: var(--izw-cta); color: #fff; box-shadow: var(--izw-sh);
  transition: background .12s;
}
.izw .izw-launch:hover { background: var(--izw-cta-h); }
.izw .izw-launch:focus-visible { box-shadow: 0 0 0 2px var(--izw-bg), 0 0 0 4px var(--izw-brand), var(--izw-sh); }
.izw .izw-bdg {
  position: absolute; top: -8px; inset-inline-end: -8px; padding: 4px 6px; border-radius: 9999px; background: var(--izw-bg); color: var(--izw-label);
  border: 1px solid var(--izw-tint-line); box-shadow: var(--izw-sh); font: 700 10.5px/1 var(--izw-font-b); letter-spacing: .04em;
}

/* Panel */
.izw .izw-panel {
  position: fixed; inset-inline-end: var(--izw-side); bottom: var(--izw-bottom); z-index: var(--izw-z);
  width: 380px; max-width: calc(100vw - 2 * var(--izw-side)); height: 600px; max-height: calc(100vh - var(--izw-bottom) - 24px);
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  background: var(--izw-bg); border: 1px solid var(--izw-line); border-radius: var(--izw-r-panel); box-shadow: var(--izw-sh);
}
.izw .izw-head { position: relative; display: flex; align-items: center; justify-content: space-between; flex: none; min-height: 60px; padding-block: 0; padding-inline: 16px 6px; border-bottom: 1px solid var(--izw-line2); background: var(--izw-bg); }
.izw .izw-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.izw .izw-av { width: 32px; height: 32px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--izw-r-av); background: var(--izw-tint); color: var(--izw-ink); }
.izw .izw-tt { display: flex; align-items: center; gap: 8px; min-width: 0; }
.izw .izw-name { font: 700 14px/1.3 var(--izw-font-d); color: var(--izw-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.izw .izw-ai { flex: none; padding: 4px 8px; border-radius: 9999px; background: var(--izw-tint); color: var(--izw-label); border: 1px solid var(--izw-tint-line); font: 700 11px/1 var(--izw-font-b); letter-spacing: .04em; }
.izw .izw-ctl { display: flex; flex: none; }
.izw .izw-ib { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: var(--izw-r); color: var(--izw-text2); transition: background .12s, color .12s; }
.izw .izw-ib:hover { background: var(--izw-alt); color: var(--izw-text); }
.izw .izw-info { margin-inline-start: -4px; }

/* Bilgi ipucu balonu: üzerine gelince, odakta ya da dokunuşta (.open) */
.izw .izw-tip { position: static; }
.izw .izw-tipb {
  position: absolute; left: 12px; right: 12px; top: calc(100% - 2px); z-index: 5; padding: 10px 12px; border-radius: var(--izw-r-tip);
  background: var(--izw-tip-bg); color: #fff; box-shadow: var(--izw-sh); font-size: 12.5px; line-height: 1.45;
  opacity: 0; visibility: hidden; transform: translateY(-3px); pointer-events: none;
}
.izw .izw-tip:hover .izw-tipb, .izw .izw-tip:focus-within .izw-tipb, .izw .izw-tip.open .izw-tipb { opacity: 1; visibility: visible; transform: none; }

/* Devir durum şeridi: tek satır, ileti alanının üstünde; boşken yer kaplamaz */
.izw .izw-state { display: flex; align-items: center; gap: 8px; flex: none; padding: 8px 16px; background: var(--izw-tint); border-bottom: 1px solid var(--izw-line2); color: var(--izw-label); font: 600 12.5px/1.4 var(--izw-font-b); }
.izw .izw-state:empty { height: 0; padding: 0; border: 0; overflow: hidden; }
.izw .izw-state::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--izw-brand); }
.izw .izw-state:empty::before { display: none; }
.izw .izw-endrow { display: flex; justify-content: flex-end; flex: none; padding: 6px 12px; border-bottom: 1px solid var(--izw-line2); background: var(--izw-bg); }
.izw .izw-endbtn { min-height: 36px; padding: 0 12px; border: 1px solid var(--izw-err-line); border-radius: var(--izw-r); background: var(--izw-bg); color: var(--izw-err); font: 600 12.5px/1 var(--izw-font-b); transition: background .12s; }
.izw .izw-endbtn:hover { background: var(--izw-err-bg); }
.izw .izw-endbtn:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: 0 0 0 2px var(--izw-bg), 0 0 0 4px var(--izw-err); }

/* İleti günlüğü */
.izw .izw-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.izw .izw-log { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.izw .izw-sep { align-self: center; padding: 2px 0; color: var(--izw-muted); font: 600 11.5px/1.4 var(--izw-font-b); text-align: center; }
.izw .izw-m { display: flex; flex-direction: column; max-width: 84%; }
.izw .izw-m-a { align-self: flex-start; align-items: flex-start; }
.izw .izw-m-v { align-self: flex-end; align-items: flex-end; }
.izw .izw-m-s { align-self: center; align-items: center; max-width: 100%; }
.izw .izw-b { padding: 10px 12px; border-radius: var(--izw-r); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; unicode-bidi: plaintext; text-align: start; }
.izw .izw-m-a .izw-b { background: var(--izw-alt); border: 1px solid var(--izw-line2); border-end-start-radius: var(--izw-r-tail); }
.izw .izw-m-v .izw-b { background: var(--izw-cta); color: #fff; border-end-end-radius: var(--izw-r-tail); }
.izw .izw-m-s .izw-b { padding: 2px 0; color: var(--izw-muted); font-size: 12.5px; text-align: center; }
.izw .izw-m-pend .izw-b { opacity: .7; }
.izw .izw-who { margin-block: 0 4px; margin-inline: 2px; color: var(--izw-agent); font: 700 12px/1.3 var(--izw-font-b); unicode-bidi: plaintext; }
.izw .izw-m-g .izw-b { background: var(--izw-tint); border-color: var(--izw-tint-line); }
.izw .izw-b a { color: var(--izw-anchor); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.izw .izw-m-v .izw-b a { color: #fff; }
.izw .izw-b a:focus-visible { outline: 2px solid transparent; box-shadow: 0 0 0 2px var(--izw-bg), 0 0 0 4px var(--izw-brand); border-radius: 2px; }
.izw .izw-t { margin-block: 4px 0; margin-inline: 2px; color: var(--izw-muted); font-size: 11.5px; }
.izw .izw-typing { display: inline-flex; align-items: center; gap: 4px; padding: 14px 12px; color: var(--izw-text2); }
.izw .izw-typing i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .45; }

/* Şeritler ve alt alanlar */
.izw .izw-strip { display: flex; align-items: flex-start; gap: 8px; flex: none; padding: 10px 16px; background: var(--izw-err-bg); border-top: 1px solid var(--izw-err-line); color: var(--izw-err); font-size: 13px; font-weight: 500; }
.izw .izw-strip svg { margin-top: 2px; }
.izw .izw-confirm, .izw .izw-closed { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; flex: none; padding: 12px 16px; border-top: 1px solid var(--izw-line2); background: var(--izw-alt); }
.izw .izw-confirm-t, .izw .izw-closed-t { font-weight: 600; color: var(--izw-text2); }
.izw .izw-confirm-b, .izw .izw-closed-b { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.izw .izw-confirm { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 16px; background: var(--izw-bg); border-top: 1px solid var(--izw-err-line); box-shadow: 0 -6px 16px rgba(15, 23, 42, .06); }
.izw .izw-confirm .izw-confirm-t { color: var(--izw-text); font-size: 14px; text-align: center; }
.izw .izw-confirm .izw-confirm-b { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.izw .izw-confirm #izw-confirm-yes { background: var(--izw-err); }
.izw .izw-confirm #izw-confirm-yes:hover:not([disabled]) { background: #7f1616; }
.izw .izw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--izw-r); background: var(--izw-cta); color: #fff; font-weight: 600; text-decoration: none; transition: background .12s; }
.izw .izw-btn:hover:not([disabled]) { background: var(--izw-cta-h); }
.izw .izw-btn-ghost { background: var(--izw-bg); color: var(--izw-text); border: 1px solid var(--izw-ghost-line); }
.izw .izw-btn-ghost:hover:not([disabled]) { background: var(--izw-alt); }
.izw .izw-btn[disabled] { opacity: .55; cursor: not-allowed; }
.izw .izw-btn[aria-busy="true"] { cursor: progress; }

/* Giriş alanı */
.izw .izw-foot { display: grid; grid-template-columns: 1fr 44px; grid-template-areas: "f s" "c c"; align-items: end; gap: 8px; flex: none; padding: 12px; border-top: 1px solid var(--izw-line2); background: var(--izw-bg); }
.izw .izw-field { grid-area: f; border: 1px solid var(--izw-line); border-radius: var(--izw-r); background: var(--izw-bg); transition: border-color .12s, box-shadow .12s; }
.izw .izw-field:focus-within { border-color: var(--izw-brand); box-shadow: 0 0 0 2px var(--izw-bg), 0 0 0 4px var(--izw-brand); }
.izw .izw-foot.is-lock .izw-field { background: var(--izw-alt); }
.izw .izw-field textarea { display: block; width: 100%; height: 44px; max-height: 120px; resize: none; padding: 10px 12px; line-height: 1.45; overflow-y: auto; color: var(--izw-text); unicode-bidi: plaintext; }
.izw .izw-field textarea:focus-visible { outline: none; }
.izw .izw-field textarea::placeholder { color: var(--izw-muted); opacity: 1; }
.izw .izw-count { grid-area: c; padding-inline-end: 2px; color: var(--izw-muted); font-size: 11.5px; text-align: end; font-variant-numeric: tabular-nums; }
html[dir="rtl"] .izw .izw-count { direction: ltr; text-align: left; }
.izw .izw-count.warn { color: var(--izw-warn); font-weight: 600; }
.izw .izw-count.over { color: var(--izw-over); font-weight: 700; }
.izw .izw-send { grid-area: s; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: var(--izw-r); background: var(--izw-cta); color: #fff; transition: background .12s; }
.izw .izw-send:hover:not([disabled]) { background: var(--izw-cta-h); }
.izw .izw-send[disabled] { background: var(--izw-line); color: var(--izw-muted); cursor: not-allowed; }
.izw .izw-foot.is-lock textarea { cursor: not-allowed; }

/* Hareket (azaltılmışsa hiçbiri çalışmaz) */
@media (prefers-reduced-motion: no-preference) {
  .izw .izw-typing i { animation: izw-blip 1.2s infinite var(--izw-ease); }
  .izw .izw-typing i:nth-child(2) { animation-delay: .15s; }
  .izw .izw-typing i:nth-child(3) { animation-delay: .3s; }
  .izw .izw-panel { animation: izw-rise 220ms var(--izw-ease); }
  .izw .izw-tipb { transition: opacity .12s var(--izw-ease), transform .12s var(--izw-ease), visibility .12s; }
}
@keyframes izw-blip { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
@keyframes izw-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .izw *, .izw *::before, .izw *::after { animation: none !important; transition: none !important; } }

/* Mobil: tam ekran sayfa, güvenli alanlar */
@media (max-width: 640px) {
  .izw { --izw-gap: 16px; --izw-side: 16px; }
  .izw .izw-panel {
    inset: 0; width: auto; max-width: none; height: 100vh; height: 100dvh; max-height: none;
    border: 0; border-radius: 0; box-shadow: none; z-index: var(--izw-z-full); animation: none;
  }
  .izw .izw-head { padding-top: env(safe-area-inset-top, 0px); padding-left: calc(16px + env(safe-area-inset-left, 0px)); padding-right: calc(6px + env(safe-area-inset-right, 0px)); }
  html[dir="rtl"] .izw .izw-head { padding-left: calc(6px + env(safe-area-inset-left, 0px)); padding-right: calc(16px + env(safe-area-inset-right, 0px)); }
  .izw .izw-log { padding-left: calc(16px + env(safe-area-inset-left, 0px)); padding-right: calc(16px + env(safe-area-inset-right, 0px)); }
  .izw .izw-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding-left: calc(12px + env(safe-area-inset-left, 0px)); padding-right: calc(12px + env(safe-area-inset-right, 0px)); }
  .izw .izw-field textarea { font-size: 16px; }
  .izw .izw-m { max-width: 90%; }
}

/* izhost/chat-sdk — puan kartı (satır içi; ileti listesinin altında) ve talep bağlantısı. */

.izw .izw-rate { display: flex; flex-direction: column; gap: 10px; margin-block: 0 16px; margin-inline: 16px; padding: 12px; background: var(--izw-alt); border: 1px solid var(--izw-line2); border-radius: var(--izw-r, 8px); }
.izw .izw-rate-t { color: var(--izw-text); font: 700 13px/1.4 var(--izw-font-b); }
/* Yıldız kutusu 40 px (mobilde 44); simge başlığın kenarıyla hizalı dursun diye grup kutu boşluğu kadar içeri çekilir */
.izw .izw-stars { display: flex; margin-inline-start: -7px; }
.izw .izw-star { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--izw-r-sm); color: var(--izw-muted); cursor: pointer; transition: color .12s; }
.izw .izw-star.on { color: var(--izw-brand); }
.izw .izw-star.on svg { fill: currentColor; }
.izw .izw-star:has(input:disabled) { cursor: default; }
@media (hover: hover) {   /* üzerine gelince seçilecek puan önizlenir: imlecin öncesindekiler dolu renk, sonrasındakiler boş */
  .izw .izw-stars:not(:has(input:disabled)):hover .izw-star { color: var(--izw-brand); }
  .izw .izw-stars:not(:has(input:disabled)) .izw-star:hover ~ .izw-star { color: var(--izw-muted); }
  .izw .izw-stars:not(:has(input:disabled)) .izw-star:hover ~ .izw-star svg { fill: none; }
}
.izw .izw-star input:focus-visible + svg { outline: 2px solid transparent; box-shadow: 0 0 0 2px var(--izw-bg), 0 0 0 4px var(--izw-brand); border-radius: var(--izw-r-sm); }
.izw .izw-rate-c { display: flex; flex-direction: column; gap: 4px; }
.izw .izw-rate-c textarea { display: block; width: 100%; height: 64px; resize: none; padding: 8px 10px; line-height: 1.45; border: 1px solid var(--izw-line); border-radius: var(--izw-r, 8px); background: var(--izw-bg); color: var(--izw-text); unicode-bidi: plaintext; }
.izw .izw-rate-c textarea::placeholder { color: var(--izw-muted); opacity: 1; }
.izw .izw-rate-c textarea:focus-visible { outline: 2px solid transparent; border-color: var(--izw-brand); box-shadow: 0 0 0 2px var(--izw-bg), 0 0 0 4px var(--izw-brand); }
.izw .izw-rate-c .izw-count { text-align: end; }
.izw .izw-rate-b { display: flex; justify-content: flex-end; gap: 8px; }
.izw .izw-rate-d { color: var(--izw-text2); font-weight: 600; }
/* Gönderildi: başlık düşer, salt okunur yıldızlar ve teşekkür tek satırda */
.izw .izw-rate.is-done { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.izw .izw-rate.is-done .izw-rate-t { display: none; }
/* Talep bağlantısı: görünüşü küçük, dokunma hedefi yüksek (masaüstü 32, mobil 44 px) */
.izw .izw-tl { display: inline-flex; align-items: center; min-height: 32px; padding-inline: 4px; color: var(--izw-tl); font-weight: 600; font-size: 12.5px; text-decoration: underline; text-underline-offset: 2px; }
.izw .izw-tl:focus-visible { outline: 2px solid transparent; box-shadow: 0 0 0 2px var(--izw-bg), 0 0 0 4px var(--izw-brand); border-radius: 2px; }

@media (max-width: 640px) {
  .izw .izw-rate { margin-inline: calc(16px + env(safe-area-inset-left, 0px)) calc(16px + env(safe-area-inset-right, 0px)); }
  .izw .izw-rate-c textarea { font-size: 16px; }
  .izw .izw-stars { margin-inline-start: -9px; }
  .izw .izw-star { width: 44px; height: 44px; }
  .izw .izw-tl { min-height: 44px; }
}

/* izhost/chat-sdk — insan kipi: başlatıcı noktası, departman adımı, çevrimdışı görünümü, yönlendirme düğmesi.
   Mevcut widget dilinin devamı: aynı yüzeyler (alt alan), aynı düğmeler, aynı belirteçler. */

/* Başlatıcıda çevrimiçi / çevrimdışı noktası (AI kipinde gizli) */
.izw .izw-dot {
  position: absolute; bottom: -3px; inset-inline-end: -3px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--izw-off); border: 2px solid var(--izw-bg); box-shadow: var(--izw-sh);
}
.izw .izw-dot.is-on { background: var(--izw-on); }
.izw.izw-hd .izw-ai, .izw.izw-hd .izw-tip, .izw.izw-hd .izw-bdg { display: none; }
.izw.izw-offv .izw-greet { display: none; }   /* çevrimdışı / sınır görünümünde karşılama yok */

/* Departman adımı ve çevrimdışı görünümü: giriş alanının yerinde, aynı alt yüzey */
.izw .izw-dept, .izw .izw-off {
  display: flex; flex-direction: column; gap: 10px; flex: none; padding: 12px 16px 16px;
  border-top: 1px solid var(--izw-line2); background: var(--izw-bg);
}
.izw .izw-dept-t, .izw .izw-alt-t { color: var(--izw-text2); font: 600 12.5px/1.4 var(--izw-font-b); }
.izw .izw-dept-l, .izw .izw-alt-l { display: flex; flex-direction: column; gap: 8px; }
/* Departman düğmesi: nokta + ad; uygun olmayanda ad altında kısa durum satırı (yalnız renkle bilgi verilmez).
   Uzun ad kesilmez, satır kırar. */
.izw .izw-dept-b {
  display: grid; grid-template-columns: 8px minmax(0, 1fr); align-items: center; column-gap: 10px; row-gap: 2px;
  width: 100%; min-height: 44px; padding: 10px 14px; text-align: start;
  border: 1px solid var(--izw-ghost-line); border-radius: var(--izw-r); background: var(--izw-bg); color: var(--izw-text); font-weight: 600;
  transition: background .12s, border-color .12s;
}
.izw .izw-dept-b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--izw-on); }
.izw .izw-dept-b:hover:not([aria-disabled="true"]) { background: var(--izw-alt); border-color: var(--izw-tint-line); }
.izw .izw-dept-b[aria-disabled="true"] { color: var(--izw-text2); background: var(--izw-alt); border-color: var(--izw-line2); cursor: not-allowed; }
.izw .izw-dept-b[aria-disabled="true"]::before { background: var(--izw-off); }
.izw .izw-dept-b:focus-visible { outline: 2px solid transparent; box-shadow: 0 0 0 2px var(--izw-bg), 0 0 0 4px var(--izw-brand); }
.izw .izw-dept-n { min-width: 0; line-height: 1.35; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.izw .izw-dept-s { grid-column: 2; color: var(--izw-muted); font: 500 12px/1.35 var(--izw-font-b); }

.izw .izw-off-t { color: var(--izw-text2); font-weight: 600; line-height: 1.45; }
.izw .izw-off .izw-btn, .izw .izw-closed .izw-go { align-self: flex-start; }
.izw .izw-alt { display: flex; flex-direction: column; gap: 8px; padding-top: 2px; }

/* Temsilci bulunamadan kapanan sohbet: yönlendirme ("Talebinizi iletin") asıl yol olur, "Yeni sohbet" ikincil */
.izw .izw-closed-b .izw-go { order: 2; background: var(--izw-cta); color: #fff; border: 0; }
.izw .izw-closed-b .izw-go:hover { background: var(--izw-cta-h); }
.izw .izw-closed-b:has(.izw-go:not([hidden])) #izw-new { background: var(--izw-bg); color: var(--izw-text); border: 1px solid var(--izw-ghost-line); }
.izw .izw-closed-b:has(.izw-go:not([hidden])) #izw-new:hover { background: var(--izw-alt); }

@media (max-width: 640px) {
  .izw .izw-dept, .izw .izw-off { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); padding-left: calc(16px + env(safe-area-inset-left, 0px)); padding-right: calc(16px + env(safe-area-inset-right, 0px)); }
}

/* izhost-chat site teması (config) */
.izw {
  --izw-brand: #2485B0;
  --izw-ink: #1D6E93;
  --izw-deep: #14283D;
  --izw-tint: #E7F1F5;
  --izw-tint-line: #C3CFD8;
  --izw-cta: #C34A20;
  --izw-cta-h: #A93E19;
  --izw-alt: #F3F8FA;
  --izw-text: #14283D;
  --izw-text2: #46586A;
  --izw-muted: #5A6B7B;
  --izw-line: #DDE5EA;
  --izw-line2: #DDE5EA;
  --izw-err: #B3261E;
  --izw-warn: #9A5B00;
  --izw-sh: 0 12px 28px -16px rgba(20, 40, 61, .28);
  --izw-ease: cubic-bezier(.16, 1, .3, 1);
  --izw-font-d: 'Manrope', 'Inter', system-ui, sans-serif;
  --izw-font-b: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --izw-r: 12px;
  --izw-r-panel: 16px;
  --izw-r-av: 8px;
  --izw-r-tip: 8px;
  --izw-r-tail: 4px;
  --izw-anchor: var(--izw-ink);
  --izw-err-bg: rgba(179, 38, 30, .08);
  --izw-err-line: rgba(179, 38, 30, .25);
  --izw-ghost-line: var(--izw-tint-line);
  --izw-over: var(--izw-err);
}
