/* Canlı destek kutusu — müşteri panelinde kullanılan bağımsız stil (site.css'ten türetildi) */
.chatw { --bg-2: #0a1323; --card-solid: #101a2c; --line: rgba(217, 168, 78, .28); --line-soft: rgba(255, 255, 255, .08); --gold-2: #e7bd63; --gold-grad: linear-gradient(180deg, #fbe0a0 0%, #ecc26a 45%, #cf9a3b 100%); --text: #f3f5f9; --muted: #a9b3c4; --ease: cubic-bezier(.2, .7, .2, 1); font-family: inherit; color: var(--text); }
@keyframes chatPing { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes chatIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.chatw .ico-sm { width: 16px; height: 16px; } .chatw .ico-md { width: 20px; height: 20px; } .chatw .ico-lg { width: 26px; height: 26px; }
.chatw .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; font-weight: 700; cursor: pointer; }
.chatw .btn-gold { background: var(--gold-grad); color: #1a1205; } .chatw .btn-block { width: 100%; } .chatw .btn-sm { padding: 10px 16px; font-size: 13.5px; }
.chatw input, .chatw textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; color: var(--text); background: rgba(255,255,255,.04); border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; }
.chatw { position: fixed; right: 22px; bottom: 22px; z-index: 45; }
.chatw-btn { position: relative; width: 60px; height: 60px; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: #1a1205; background: var(--gold-grad); box-shadow: 0 14px 34px rgba(231, 189, 99, .4); transition: transform .25s; }
.chatw-btn:hover { transform: translateY(-2px) scale(1.04); }
.chatw-btn::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(231, 189, 99, .5); animation: chatPing 2.4s ease-out infinite; }
.chatw.is-open .chatw-btn::after { display: none; }
.chatw-btn .ico-lg { width: 28px; height: 28px; }
.chatw-btn-close { display: none; }
.chatw.is-open .chatw-btn-open { display: none; }
.chatw.is-open .chatw-btn-close { display: grid; }
.chatw-badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; font-style: normal; display: grid; place-items: center; }
.chatw-panel { position: absolute; right: 0; bottom: 76px; width: 360px; max-height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: rgba(9, 16, 31, .98); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: chatIn .3s var(--ease) both; }
.chatw-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: linear-gradient(135deg, rgba(231, 189, 99, .2), rgba(231, 189, 99, .04)); border-bottom: 1px solid var(--line-soft); }
.chatw-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #0b1424; border: 1px solid var(--line); }
.chatw-avatar img { width: 26px; height: 26px; object-fit: contain; }
.chatw-head strong { display: block; color: #fff; font-size: 15px; }
.chatw-state { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.chatw-state i { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.chatw-state.is-on i { background: #3ad38b; box-shadow: 0 0 0 3px rgba(58, 211, 139, .2); }
.chatw-body { flex: 1; overflow-y: auto; padding: 16px; display: grid; gap: 12px; align-content: start; }
.chatw-hello { margin: 0; padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: rgba(231, 189, 99, .08); border: 1px solid var(--line-soft); font-size: 14px; line-height: 1.55; color: var(--text); }
.chatw-start { display: grid; gap: 8px; }
.chatw-start input, .chatw-start textarea, .chatw-input textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(4, 9, 19, .7); color: var(--text); font: inherit; font-size: 14px; resize: none; outline: none; }
.chatw-start input:focus, .chatw-start textarea:focus, .chatw-input textarea:focus { border-color: var(--gold-2); }
.chatw-hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.chatw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.chatw-msg { display: grid; gap: 3px; justify-items: start; }
.chatw-msg.is-me { justify-items: end; }
.chatw-bubble { max-width: 85%; padding: 10px 13px; border-radius: 14px 14px 14px 4px; background: rgba(255, 255, 255, .06); color: var(--text); font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.chatw-msg.is-me .chatw-bubble { border-radius: 14px 14px 4px 14px; background: var(--gold-grad); color: #1a1205; }
.chatw-msg small { font-size: 11px; color: var(--muted); }
.chatw-input { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--line-soft); }
.chatw-input textarea { max-height: 110px; }
.chatw-input button { flex-shrink: 0; width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: #1a1205; background: var(--gold-grad); }
.chatw-error { margin: 0; padding: 0 14px 12px; font-size: 12px; color: #ff9d9d; }
.chatw { right: 14px; bottom: 14px; }
.chatw-panel { position: fixed; right: 10px; left: 10px; bottom: 86px; width: auto; }
html[data-theme="light"] .chatw-panel { background: #fff; box-shadow: 0 24px 60px rgba(15, 26, 46, .2); }
html[data-theme="light"] .chatw-head strong { color: var(--text); }
html[data-theme="light"] .chatw-start input, html[data-theme="light"] .chatw-start textarea, html[data-theme="light"] .chatw-input textarea { background: #f6f7fa; border-color: rgba(15, 26, 46, .12); }
html[data-theme="light"] .chatw-bubble { background: #f1f3f7; }
.chatw-depts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 4px; }
.chatw-depts-label { grid-column: 1 / -1; font-size: 12px; font-weight: 700; color: var(--muted); }
.chatw-dept input { position: absolute; opacity: 0; pointer-events: none; }
.chatw-dept span { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 10px; border: 1px solid var(--line-soft); font-size: 12px; cursor: pointer; line-height: 1.2; }
.chatw-dept span .ico-sm { color: var(--gold-2); flex: none; }
.chatw-dept input:checked + span { border-color: var(--gold-2); background: rgba(231, 189, 99, .1); }
.chatw-dept input:focus-visible + span { outline: 2px solid var(--gold-2); }
@media (max-width: 480px) { .chatw { right: 14px; bottom: 14px; } .chatw-panel { position: fixed; right: 10px; left: 10px; bottom: 86px; width: auto; } }
.chatw [hidden] { display: none !important; }
