/* Tonerağacı — Müşteri Deneyimi + WhatsApp modülleri */
.x-close { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: inherit; cursor: pointer; }
.x-close:hover { background: rgba(127, 127, 127, .15); }

/* Duyuru çubuğu */
.x-announce { position: relative; z-index: 60; font-size: 14px; font-weight: 700; }
.x-announce .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding-right: 44px; text-align: center; }
.x-announce a, .x-announce span { color: inherit; text-decoration: none; }
.x-announce a:hover { text-decoration: underline; }
.x-announce .x-close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; }
.x-announce.tone-accent { background: var(--accent); color: var(--accent-ink); }
.x-announce.tone-magenta { background: #e0157a; color: #fff; }
.x-announce.tone-dark { background: #0a0a0b; color: #fff; }
.x-countdown { font-variant-numeric: tabular-nums; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .14); }

/* Pop-up */
.x-modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.x-modal.is-on { opacity: 1; }
.x-modal-box { position: relative; width: min(440px, 100%); padding: 34px 30px 28px; border-radius: 28px; background: var(--card); color: var(--text); text-align: center; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6); transform: translateY(14px) scale(.98); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.x-modal.is-on .x-modal-box { transform: none; }
.x-modal-box > .x-close { position: absolute; top: 12px; right: 12px; }
.x-pop-ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; background: rgba(198, 243, 107, .16); color: var(--accent-text); }
.x-modal-box h2 { margin: 0 0 8px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.x-modal-box p { margin: 0 0 18px; color: var(--text-2); }
.x-code { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 14px; padding: 12px 14px 12px 18px; border-radius: 16px; border: 2px dashed var(--accent); background: transparent; color: var(--text); cursor: pointer; font: inherit; }
.x-code b { font-size: 20px; letter-spacing: .08em; }
.x-code span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent-text); }

/* Çerez */
.x-cookie { position: fixed; left: 16px; bottom: 16px; z-index: 300; max-width: 520px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: 20px; background: var(--card); color: var(--text); border: 1px solid var(--line-2); box-shadow: var(--sh); opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s; }
.x-cookie.is-on { opacity: 1; transform: none; }
.x-cookie p { margin: 0; display: flex; gap: 10px; flex: 1 1 260px; font-size: 14px; color: var(--text-2); }
.x-cookie p .icon { flex: none; color: var(--accent-text); }
.x-cookie a { color: var(--text); }
.x-cookie > div { display: flex; gap: 8px; }

/* Ürün sayfası */
.x-pd { display: grid; gap: 14px; margin: 4px 0 20px; }
.x-pd-info { list-style: none; margin: 0; padding: 14px 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); display: grid; gap: 9px; font-size: 14px; color: var(--text-2); }
.x-pd-info li { display: flex; align-items: center; gap: 10px; }
.x-pd-info .icon { color: var(--accent-text); flex: none; }
.x-pd-info b { color: var(--text); }
.x-pd-actions { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.x-act { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.x-act:hover { border-color: var(--fg); color: var(--text); }
.x-act.is-on { border-color: #e0157a; color: #e0157a; }
.x-act.is-on .icon { fill: currentColor; }
.x-act.x-hl { border-color: var(--accent); color: var(--accent-text); }
.x-wa-order { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 18px; border-radius: 16px; background: #25d366; color: #06301a; font-weight: 800; text-decoration: none; transition: filter .2s, transform .1s; }
.x-wa-order:hover { filter: brightness(1.06); color: #06301a; }
.x-wa-order:active { transform: translateY(1px); }
.x-alert-form { padding: 14px 16px; border-radius: 18px; border: 1px dashed var(--line-3); }
.x-alert-form p { margin: 0 0 10px; font-weight: 700; font-size: 14px; }
.x-alert-row { display: flex; gap: 8px; flex-wrap: wrap; }
.x-alert-row input, .x-alert-row select { flex: 1 1 180px; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; }
.x-alert-msg { display: block; margin-top: 8px; font-size: 13px; color: var(--text-2); }
.x-alert-msg.ok { color: var(--ok); } .x-alert-msg.err { color: var(--err); }
.x-share-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; display: grid; min-width: 200px; padding: 6px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--sh); }
.x-share-pop a, .x-share-pop button { padding: 10px 12px; border-radius: 10px; border: 0; background: none; color: var(--text); text-align: left; font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; }
.x-share-pop a:hover, .x-share-pop button:hover { background: var(--glass-2); }
.x-rating { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); text-decoration: none; font-size: 13px; }
.x-g { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #4285f4; font-weight: 900; font-size: 13px; }
.x-rating b { color: var(--text); font-size: 15px; }
.x-stars { color: #fbbc04; letter-spacing: 1px; }

/* SSS + son bakılanlar */
.x-faq { margin: 50px 0 10px; display: grid; gap: 10px; }
.x-faq h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 24px; font-weight: 800; }
.x-faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.x-faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.x-faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--text-3); transition: transform .2s; }
.x-faq details[open] summary::after { transform: rotate(45deg); }
.x-faq summary::-webkit-details-marker { display: none; }
.x-faq details p { margin: 0; padding: 0 18px 16px; color: var(--text-2); }
.x-recent { margin-top: 40px; }

/* Kartlarda kalp */
.x-heart { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #555; cursor: pointer; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .4); transition: transform .2s, color .2s; }
.x-heart:hover { transform: scale(1.08); color: #e0157a; }
.x-heart.is-on { color: #e0157a; }
.x-heart.is-on svg { fill: currentColor; }

/* Karşılaştırma çubuğu ve tablo */
.x-cmpbar { position: fixed; left: 50%; bottom: 18px; z-index: 250; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--card); color: var(--text); border: 1px solid var(--line-2); box-shadow: var(--sh); font-weight: 600; }
.x-cmpbar span { display: inline-flex; align-items: center; gap: 8px; }
.table-scroll { overflow-x: auto; }
.x-cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 640px; }
.x-cmp-table th, .x-cmp-table td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.x-cmp-table tbody th { width: 160px; color: var(--text-3); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.x-cmp-table thead th a { display: grid; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.x-cmp-table thead img { width: 100%; max-width: 180px; aspect-ratio: 1; object-fit: contain; border-radius: 16px; background: var(--plate); padding: 10px; }
.x-cmp-table td small { display: block; color: var(--text-3); margin-top: 4px; }
.x-cmp-table .ok { color: var(--ok); } .x-cmp-table .err { color: var(--err); }

/* Sepet ekleri */
.x-coupon { margin: 12px 0; }
.x-coupon-row { display: flex; gap: 8px; }
.x-coupon-row input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; text-transform: uppercase; }
.x-coupon-on { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(198, 243, 107, .12); color: var(--accent-text); font-size: 14px; }
.x-coupon-on .link-btn { margin-left: auto; }
.x-coupon-err { display: block; margin-top: 6px; color: var(--err); font-size: 13px; }
.x-cart-links { display: grid; gap: 8px; margin: 0 0 14px; }
.x-cart-links .x-wa-order { padding: 11px 16px; border-radius: 14px; font-size: 14.5px; }
.x-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; text-decoration: none; }
.x-link:hover { color: var(--text); }
.x-quick textarea { min-height: 220px; }

/* Yukarı çık */
.x-top { position: fixed; right: 22px; bottom: 96px; z-index: 200; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--card); color: var(--text); display: grid; place-items: center; box-shadow: var(--sh); cursor: pointer; }
.x-top svg:not(.icon) { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.x-top circle { fill: none; stroke: var(--line-2); stroke-width: 2.5; }
.x-top .x-top-p { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.xwa.pos-right ~ .x-top, body:has(.xwa.pos-right) .x-top { bottom: 100px; }

/* Arama geçmişi */
.x-searches { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 120; padding: 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--sh); }
.x-searches p { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.x-searches p button { border: 0; background: none; color: var(--text-3); font: inherit; font-size: 12px; cursor: pointer; text-transform: none; letter-spacing: 0; }
.x-searches div { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.x-searches div:last-child { margin-bottom: 0; }
.x-searches a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); text-decoration: none; font-size: 13.5px; }
.x-searches a:hover { background: var(--fg); color: var(--fg-inv); }

/* Bildirim */
.x-toast { position: fixed; left: 50%; bottom: 24px; z-index: 500; transform: translate(-50%, 20px); display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 999px; background: var(--fg); color: var(--fg-inv); font-weight: 600; font-size: 14px; opacity: 0; transition: opacity .3s, transform .3s; box-shadow: var(--sh); }
.x-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.x-toast a { color: inherit; font-weight: 800; }

/* ---------------- WhatsApp ---------------- */
.xwa { position: fixed; bottom: 22px; z-index: 260; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.xwa.pos-right { right: 22px; }
.xwa.pos-left { left: 22px; align-items: flex-start; }
.xwa-btn { position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #25d366; color: #fff; cursor: pointer; box-shadow: 0 16px 34px -12px rgba(37, 211, 102, .7); transition: transform .2s; }
.xwa-btn:hover { transform: scale(1.06); }
.xwa-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: xwaPulse 2.4s ease-out infinite; }
.xwa.is-open .xwa-btn::after { animation: none; opacity: 0; }
@keyframes xwaPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.xwa-badge { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #e0157a; color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.xwa-bubble { position: relative; max-width: 290px; padding: 14px 40px 14px 16px; border-radius: 18px 18px 4px 18px; background: var(--card); color: var(--text); border: 1px solid var(--line-2); box-shadow: var(--sh); font-size: 14px; animation: xwaIn .4s cubic-bezier(.2, .8, .2, 1); }
.xwa.pos-left .xwa-bubble { border-radius: 18px 18px 18px 4px; }
.xwa-bubble p { margin: 0; }
.xwa-bubble .x-close { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; }
.xwa-panel { width: min(360px, calc(100vw - 32px)); border-radius: 24px; overflow: hidden; background: var(--card); color: var(--text); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .55); animation: xwaIn .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes xwaIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.xwa-head { display: flex; align-items: center; gap: 12px; padding: 16px 12px 16px 18px; background: #075e54; color: #fff; }
.xwa-head strong { display: block; font-size: 15.5px; }
.xwa-head small { display: block; font-size: 12.5px; opacity: .85; }
.xwa-head .x-close { margin-left: auto; color: #fff; }
.xwa-logo { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #25d366; flex: none; }
.xwa-body { padding: 16px; display: grid; gap: 10px; max-height: min(60vh, 460px); overflow-y: auto; }
.xwa-msg { margin: 0; padding: 12px 14px; border-radius: 4px 16px 16px 16px; background: var(--glass-2); font-size: 14px; line-height: 1.5; }
.xwa-off { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 199, 44, .14); color: var(--text); font-size: 13px; }
.xwa-agents { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.xwa-agents a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .2s, background .2s; }
.xwa-agents a:hover, .xwa-agents a:focus-visible { border-color: #25d366; background: rgba(37, 211, 102, .08); }
.xwa-agents a > .icon { margin-left: auto; color: #25d366; }
.xwa-av { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #25d366, #128c7e); color: #fff; font-weight: 800; flex: none; }
.xwa-av i { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: #9a9aa0; border: 2px solid var(--card); }
.xwa-agents a.is-on .xwa-av i { background: #25d366; }
.xwa-who { display: grid; min-width: 0; }
.xwa-who small { color: var(--text-3); font-size: 12.5px; }
.xwa-who em { font-style: normal; }
.xwa-agents a.is-on .xwa-who em { color: #1fa855; font-weight: 700; }
.xwa-ctx { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--text-3); }

@media (max-width: 980px) {
  .xwa.no-mobile { display: none; }
  .xwa { bottom: 84px; }
  .x-top { bottom: 160px; right: 16px; width: 46px; height: 46px; }
  .x-cmpbar { bottom: 84px; }
  .x-cookie { left: 10px; right: 10px; bottom: 84px; }
}
@media (min-width: 981px) { .xwa.no-desktop { display: none; } }
@media (max-width: 560px) {
  .xwa.pos-right { right: 14px; } .xwa.pos-left { left: 14px; }
  .xwa-btn { width: 56px; height: 56px; }
  .x-cmpbar { left: 10px; right: 10px; transform: none; justify-content: space-between; border-radius: 20px; }
  .x-announce { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .xwa-btn::after { animation: none; } }

.x-page .page-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; overflow-wrap: anywhere; }
.x-page { min-width: 0; }

/* =================== WhatsApp v2 — sohbet arayüzü =================== */
.xwa { --wa: #25d366; --wa-dk: #075e54; --wa-mid: #128c7e; --wa-chat: #efeae2; --wa-in: #fff; --wa-out: #d9fdd3; --wa-ink: #111b21; --wa-ink2: #667781; }
html[data-theme="dark"] .xwa, html:not([data-theme]) .xwa { --wa-chat: #0b141a; --wa-in: #202c33; --wa-out: #005c4b; --wa-ink: #e9edef; --wa-ink2: #8696a0; }
.xwa-btn { width: 64px; height: 64px; background: linear-gradient(145deg, #2fe077, #1ebe5b); box-shadow: 0 18px 40px -14px rgba(37, 211, 102, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.xwa-btn-ic { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
.xwa-btn-x { opacity: 0; transform: rotate(-90deg) scale(.6); }
.xwa.is-open .xwa-btn-wa { opacity: 0; transform: rotate(90deg) scale(.6); }
.xwa.is-open .xwa-btn-x { opacity: 1; transform: none; }
.xwa-label { position: absolute; bottom: 20px; right: 76px; padding: 7px 12px; border-radius: 999px; background: var(--card); color: var(--text); border: 1px solid var(--line-2); font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: var(--sh); opacity: 0; transform: translateX(8px); transition: opacity .2s, transform .2s; pointer-events: none; }
.xwa.pos-left .xwa-label { right: auto; left: 76px; transform: translateX(-8px); }
@media (hover: hover) { .xwa:not(.is-open) .xwa-btn:hover ~ .xwa-label { opacity: 1; transform: none; } }

.xwa-teaser { all: unset; box-sizing: border-box; position: relative; display: flex; align-items: center; gap: 12px; width: min(320px, calc(100vw - 32px)); padding: 14px 40px 14px 14px; border-radius: 20px 20px 6px 20px; background: var(--card); color: var(--text); border: 1px solid var(--line-2); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .5); cursor: pointer; animation: xwaIn .45s cubic-bezier(.2, .8, .2, 1); }
.xwa.pos-left .xwa-teaser { border-radius: 20px 20px 20px 6px; }
.xwa-teaser:focus-visible { outline: 2px solid var(--wa); outline-offset: 2px; }
.xwa-teaser-t { display: grid; gap: 2px; font-size: 13.5px; line-height: 1.4; }
.xwa-teaser-t span { color: var(--text-2); }
.xwa-teaser .x-close { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; }
.xwa-av.sm { width: 40px; height: 40px; font-size: 15px; }

.xwa-panel { width: min(380px, calc(100vw - 24px)); border-radius: 26px; border: 0; background: var(--wa-chat); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(127, 127, 127, .15); display: flex; flex-direction: column; max-height: min(640px, calc(100vh - 120px)); transform-origin: bottom right; animation: xwaPop .35s cubic-bezier(.2, .8, .2, 1); }
.xwa.pos-left .xwa-panel { transform-origin: bottom left; }
@keyframes xwaPop { from { opacity: 0; transform: translateY(16px) scale(.94); } }
.xwa-head { gap: 12px; padding: 16px 12px 16px 16px; background: linear-gradient(135deg, var(--wa-dk), var(--wa-mid)); }
.xwa-avs { display: flex; flex: none; }
.xwa-avs .xwa-av { width: 38px; height: 38px; font-size: 14px; border: 2px solid var(--wa-dk); }
.xwa-avs .xwa-av + .xwa-av { margin-left: -12px; }
.xwa-avs .xwa-av i { border-color: var(--wa-dk); }
.xwa.is-online .xwa-avs .xwa-av:first-child i { background: var(--wa); }
.xwa-head-t { min-width: 0; }
.xwa-head-t small { display: flex; align-items: center; gap: 6px; }
.xwa-dot { width: 8px; height: 8px; border-radius: 50%; background: #c7c7c7; flex: none; }
.xwa.is-online .xwa-dot { background: #6dff9f; box-shadow: 0 0 0 3px rgba(109, 255, 159, .25); }
.xwa-tabs { display: flex; gap: 4px; padding: 8px 10px; background: var(--wa-mid); }
.xwa-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 6px; border: 0; border-radius: 12px; background: transparent; color: rgba(255, 255, 255, .78); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.xwa-tabs button[aria-selected="true"] { background: rgba(255, 255, 255, .18); color: #fff; }
.xwa-view { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.xwa-view[hidden] { display: none; }
.xwa-thread { flex: 1; overflow-y: auto; padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 8px; min-height: 200px;
  background-image: radial-gradient(rgba(127, 127, 127, .09) 1px, transparent 1.2px); background-size: 16px 16px; }
.xwa-day { align-self: center; padding: 4px 10px; border-radius: 8px; background: var(--wa-in); color: var(--wa-ink2); font-size: 11.5px; font-weight: 700; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.xwa-in, .xwa-out { position: relative; max-width: 86%; padding: 8px 12px 18px; border-radius: 0 14px 14px 14px; background: var(--wa-in); color: var(--wa-ink); font-size: 14px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); animation: xwaIn .35s cubic-bezier(.2, .8, .2, 1); }
.xwa-in b { display: block; font-size: 12.5px; color: var(--wa-mid); margin-bottom: 2px; }
html[data-theme="dark"] .xwa-in b, html:not([data-theme]) .xwa-in b { color: #53bdeb; }
.xwa-in p, .xwa-out p { margin: 0; white-space: pre-line; }
.xwa-in time, .xwa-out time { position: absolute; right: 10px; bottom: 4px; font-size: 10.5px; color: var(--wa-ink2); }
.xwa-out { align-self: flex-end; border-radius: 14px 0 14px 14px; background: var(--wa-out); }
.xwa-out time { color: #53bdeb; }
.xwa-in-off { background: rgba(255, 199, 44, .2); color: var(--wa-ink); padding-bottom: 8px; }
.xwa-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 0 14px 14px 14px; background: var(--wa-in); box-shadow: 0 1px 1px rgba(0, 0, 0, .1); }
.xwa-typing[hidden] { display: none; }
.xwa-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--wa-ink2); animation: xwaDot 1.2s infinite ease-in-out; }
.xwa-typing i:nth-child(2) { animation-delay: .15s; } .xwa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes xwaDot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.xwa-card { display: flex; align-items: center; gap: 10px; max-width: 92%; padding: 8px; border-radius: 14px; background: var(--wa-in); color: var(--wa-ink); box-shadow: 0 1px 1px rgba(0, 0, 0, .1); animation: xwaIn .35s cubic-bezier(.2, .8, .2, 1); }
.xwa-card[hidden] { display: none; }
.xwa-card img { width: 52px; height: 52px; border-radius: 10px; object-fit: contain; background: #f2f1ee; flex: none; }
.xwa-card-ic { width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center; background: rgba(37, 211, 102, .15); color: var(--wa-mid); flex: none; }
.xwa-card span { display: grid; gap: 2px; min-width: 0; font-size: 13px; }
.xwa-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xwa-card em { font-style: normal; font-weight: 800; color: var(--wa-mid); }
html[data-theme="dark"] .xwa-card em, html:not([data-theme]) .xwa-card em { color: #25d366; }
.xwa-card small { color: var(--wa-ink2); font-size: 11.5px; }
.xwa-chips { display: flex; gap: 6px; padding: 8px 12px 4px; overflow-x: auto; scrollbar-width: none; }
.xwa-chips::-webkit-scrollbar { display: none; }
.xwa-chips button { flex: none; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(37, 211, 102, .55); background: var(--wa-in); color: var(--wa-ink); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background .2s; }
.xwa-chips button:hover { background: rgba(37, 211, 102, .14); }
.xwa-compose { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px 6px; }
.xwa-compose textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 11px 16px; border-radius: 22px; border: 0; background: var(--wa-in); color: var(--wa-ink); font: inherit; font-size: 14.5px; line-height: 1.4; resize: none; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.xwa-compose textarea:focus { outline: 2px solid rgba(37, 211, 102, .6); }
.xwa-compose textarea::placeholder { color: var(--wa-ink2); }
.xwa-compose button { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--wa); color: #fff; cursor: pointer; transition: transform .15s, filter .2s; }
.xwa-compose button:hover { filter: brightness(1.08); }
.xwa-compose button:active { transform: scale(.94); }
.xwa-note { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 0; padding: 2px 12px 12px; font-size: 11.5px; color: var(--wa-ink2); text-align: center; }
.xwa-view-t { margin: 0; padding: 16px 16px 6px; font-weight: 800; color: var(--wa-ink); }
.xwa-view .xwa-agents { padding: 6px 12px 14px; overflow-y: auto; }
.xwa-agents button { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--wa-in); color: var(--wa-ink); cursor: pointer; border: 2px solid transparent; transition: border-color .2s; }
.xwa-agents button:hover, .xwa-agents button:focus-visible { border-color: rgba(37, 211, 102, .6); }
.xwa-agents button.is-sel { border-color: var(--wa); }
.xwa-agents button.is-on .xwa-av i { background: var(--wa); }
.xwa-agents button.is-on em { color: #1fa855; font-weight: 700; font-style: normal; }
.xwa-agents button .icon { margin-left: auto; color: var(--wa-ink2); }
.xwa-agents .xwa-who small { color: var(--wa-ink2); }
.xwa-hours { font-size: 11.5px !important; }
.xwa-qr { align-items: center; justify-content: center; gap: 16px; padding: 26px 22px 30px; text-align: center; color: var(--wa-ink); }
.xwa-qr p { margin: 0; font-size: 13.5px; color: var(--wa-ink2); }
.xwa-qr p strong { color: var(--wa-ink); font-size: 15px; }
.xwa-qr-box { width: 208px; height: 208px; padding: 12px; border-radius: 20px; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .4); }
.xwa-qr-box img, .xwa-qr-box canvas { display: block; }
@media (pointer: coarse) { .xwa-only-desk { display: none !important; } }
@media (max-width: 560px) {
  .xwa-panel { position: fixed; left: 8px; right: 8px; bottom: 148px; width: auto; max-height: calc(100vh - 210px); max-height: calc(100dvh - 210px); }
  .xwa-label { display: none; }
  .xwa-teaser { width: calc(100vw - 100px); }
}
@media (max-width: 760px) {
  .x-announce .wrap { justify-content: flex-start; min-height: 36px; }
  .x-announce .wrap > a, .x-announce .wrap > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
  .x-announce .x-countdown { display: none; }
}

.xwa-mail { display: grid; gap: 8px; padding: 6px 14px 16px; }
.xwa-mail .xwa-view-t { padding: 10px 0 2px; }
.xwa-mail input, .xwa-mail textarea { width: 100%; padding: 11px 14px; border-radius: 14px; border: 0; background: var(--wa-in); color: var(--wa-ink); font: inherit; font-size: 14px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); resize: vertical; }
.xwa-mail input:focus, .xwa-mail textarea:focus { outline: 2px solid rgba(37, 211, 102, .6); }
.xwa-mail small { font-size: 12.5px; color: var(--wa-ink2); text-align: center; }
.xwa-mail small.ok { color: #1fa855; } .xwa-mail small.err { color: #e5484d; }
.co-upsell { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); display: grid; gap: 8px; }
.co-upsell > p { display: flex; align-items: center; gap: 6px; margin: 0 0 2px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.co-up { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); }
.co-up img { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: var(--plate); flex: none; }
.co-up span { flex: 1; min-width: 0; display: grid; font-size: 13px; line-height: 1.35; }
.co-up span b { font-size: 13.5px; }
.co-up .icon-btn { flex: none; border: 1px solid var(--line-2); }
.co-up .icon-btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.xwa-who { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 12px 0; }
.xwa-who input { min-width: 0; padding: 9px 12px; border-radius: 12px; border: 0; background: var(--wa-in); color: var(--wa-ink); font: inherit; font-size: 13.5px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.xwa-who input:focus { outline: 2px solid rgba(37, 211, 102, .6); }
.xwa-note a { color: inherit; font-weight: 700; text-decoration: underline; }

.x-top svg.icon, .x-top .icon { transform: none !important; }
/* Sohbet çipleri: ayrı zemin, sağda kaydırma ipucu */
.xwa-chips { background: var(--wa-bg, #efeae2); border-top: 1px solid rgba(0, 0, 0, .06); padding: 8px 12px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); flex: none; }
.xwa-chips[hidden] { display: none; }

.x-coupon-auto { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 8px; font-size: 13px; color: var(--accent-text); line-height: 1.45; }
.x-coupon-auto .icon { flex: none; margin-top: 2px; }

/* Sohbet: hazır sorular sarılır, hiçbiri pencere dışında kalmaz */
.xwa-chips { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; row-gap: 6px; }
.xwa-chips button { flex: 0 1 auto; }
