/* WhatsApp akıllı sohbet */
.wa-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.wa-launcher__btn { width: 60px; height: 60px; border-radius: 50%; border: 0; background: #25d366; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 25px -5px rgba(37, 211, 102, .6); position: relative; transition: transform .2s; }
.wa-launcher__btn:hover { transform: scale(1.06); }
.wa-launcher__btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; animation: wa-pulse 2.4s infinite; z-index: -1; }
.wa-open .wa-launcher__btn::before { animation: none; }
.wa-launcher__teaser { order: -1; max-width: 240px; background: #fff; color: var(--text); border: 0; border-radius: 14px 14px 4px 14px; padding: 12px 14px; font: 600 .9rem var(--font); box-shadow: var(--shadow-lg); cursor: pointer; text-align: left; animation: wa-in .35s ease both; }

.wa-chat { order: -2; width: 370px; max-width: calc(100vw - 40px); height: min(580px, calc(100vh - 120px)); display: flex; flex-direction: column; background: #efeae2; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(7, 26, 51, .45); animation: wa-in .25s ease both; }
.wa-chat[hidden] { display: none; }
.wa-chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #075e54; color: #fff; }
.wa-chat__avatar { width: 42px; height: 42px; border-radius: 50%; background: #25d366; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; flex-shrink: 0; }
.wa-chat__who { flex: 1; min-width: 0; }
.wa-chat__who strong { display: block; font-size: 1rem; }
.wa-chat__who span { display: flex; align-items: center; gap: 6px; font-size: .75rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-chat__who i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; flex-shrink: 0; }
.wa-chat__close { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; opacity: .8; }
.wa-chat__body { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 14px 14px; }
.wa-msg { max-width: 85%; padding: 9px 12px; border-radius: 12px; font-size: .92rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.08); animation: wa-in .2s ease both; word-wrap: break-word; }
.wa-msg--bot { align-self: flex-start; background: #fff; border-top-left-radius: 4px; color: #111827; }
.wa-msg--user { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 4px; color: #111827; }
.wa-msg--summary { align-self: stretch; max-width: none; background: #fff; border-left: 4px solid #25d366; color: #111827; }
.wa-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.wa-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9ca3af; animation: wa-dot 1s infinite ease-in-out; }
.wa-typing span:nth-child(2) { animation-delay: .15s; }
.wa-typing span:nth-child(3) { animation-delay: .3s; }
.wa-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.wa-chips--services { justify-content: flex-start; }
.wa-chip { border: 1px solid #25d366; background: #fff; color: #075e54; border-radius: 999px; padding: 7px 13px; font: 600 .85rem var(--font); cursor: pointer; transition: background .15s, color .15s; }
.wa-chip:hover { background: #25d366; color: #fff; }
.wa-send { align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 8px; background: #25d366; color: #fff !important; border-radius: 12px; padding: 13px; font-weight: 800; text-decoration: none; box-shadow: 0 8px 20px -8px rgba(37, 211, 102, .8); animation: wa-in .25s ease both; }
.wa-send:hover { background: #1ebe57; }
.wa-chat__input { display: flex; gap: 8px; padding: 10px; background: #f0f2f5; }
.wa-chat__input[hidden] { display: none; }
.wa-chat__input input { flex: 1; border: 0; border-radius: 999px; padding: 11px 16px; font: inherit; font-size: .92rem; outline: none; background: #fff; }
.wa-chat__input button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #25d366; color: #fff; display: grid; place-items: center; cursor: pointer; }
.wa-chat__foot { text-align: center; background: #f0f2f5; padding: 0 0 8px; }
.wa-chat__restart { background: none; border: 0; color: #667781; font-size: .78rem; cursor: pointer; }
.wa-chat--inline { width: 100%; max-width: none; height: 520px; margin-top: 20px; box-shadow: var(--shadow); border: 1px solid var(--border); animation: none; }

@keyframes wa-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes wa-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
@media (max-width: 520px) {
  .wa-launcher { right: 14px; bottom: 14px; }
  .wa-launcher .wa-chat { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; max-width: none; height: 85vh; border-radius: 18px 18px 0 0; }
  .wa-open .wa-launcher__btn { display: none; }
  .wa-chat__input input { font-size: 16px; }   /* iOS'ta yazarken sayfa yakınlaşmasın */
  .wa-launcher__teaser { max-width: 200px; font-size: .85rem; }
}
