.ktr-chat{position:fixed;right:24px;bottom:24px;z-index:999999;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:#172033}.ktr-chat *{box-sizing:border-box}.ktr-launcher{position:relative;width:64px;height:64px;border:0;border-radius:22px;background:linear-gradient(145deg,var(--ktr-primary),#163a7d);box-shadow:0 16px 40px rgba(21,52,105,.28);display:grid;place-items:center;cursor:pointer;transition:.25s ease}.ktr-launcher:hover{transform:translateY(-3px)}.ktr-launcher svg{width:31px;height:31px;fill:#fff}.ktr-launcher-pulse{position:absolute;top:7px;right:7px;width:11px;height:11px;border-radius:50%;background:#4ade80;border:2px solid #fff}.ktr-unread{position:absolute;left:-6px;top:-7px;min-width:23px;height:23px;padding:0 6px;border-radius:99px;background:#ef4444;color:#fff;border:3px solid #fff;display:grid;place-items:center;font-size:10px;font-weight:800}.ktr-proactive{position:absolute;right:0;bottom:78px;width:270px;padding:14px 38px 14px 15px;background:#fff;border:1px solid #e6eaf1;border-radius:16px;box-shadow:0 16px 40px rgba(18,35,70,.16);font-size:13px;line-height:1.45;cursor:pointer;animation:ktr-pop .25s ease}.ktr-proactive:after{content:"";position:absolute;right:23px;bottom:-7px;width:14px;height:14px;background:#fff;border-right:1px solid #e6eaf1;border-bottom:1px solid #e6eaf1;transform:rotate(45deg)}.ktr-proactive-close{position:absolute;right:7px;top:7px;width:25px;height:25px;border:0;border-radius:9px;background:#f2f5f9;color:#64748b;cursor:pointer;font-size:17px;z-index:2}.ktr-panel{position:absolute;right:0;bottom:78px;width:min(410px,calc(100vw - 28px));height:min(690px,calc(100vh - 110px));background:#fff;border:1px solid rgba(23,32,51,.08);border-radius:28px;box-shadow:0 30px 80px rgba(18,35,70,.22);overflow:hidden;flex-direction:column;transform-origin:bottom right;animation:ktr-in .22s ease}.ktr-panel:not([hidden]){display:flex}@keyframes ktr-in{from{opacity:0;transform:scale(.96) translateY(8px)}to{opacity:1;transform:scale(1) translateY(0)}}@keyframes ktr-pop{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.ktr-header{min-height:82px;padding:15px 15px 15px 17px;background:linear-gradient(135deg,var(--ktr-primary),#173d82);display:flex;align-items:center;gap:11px;color:#fff;position:relative;overflow:hidden}.ktr-header:after{content:"";position:absolute;width:140px;height:140px;border:26px solid rgba(255,255,255,.05);border-radius:50%;right:-55px;top:-58px}.ktr-avatar,.ktr-mini-avatar{display:grid;place-items:center;font-weight:800;letter-spacing:-.04em}.ktr-avatar{width:46px;height:46px;border-radius:16px;background:#fff;color:var(--ktr-primary);position:relative;z-index:1}.ktr-heading{display:flex;flex-direction:column;gap:4px;position:relative;z-index:1;min-width:0}.ktr-heading strong{font-size:16px;line-height:1.1}.ktr-heading span{font-size:11.5px;opacity:.88;display:flex;align-items:center;gap:6px;white-space:nowrap}.ktr-heading i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 3px rgba(74,222,128,.15)}.ktr-heading b{font-weight:500}.ktr-lang{margin-left:auto;display:flex;gap:3px;position:relative;z-index:2}.ktr-lang button{border:0;background:rgba(255,255,255,.1);color:rgba(255,255,255,.7);font-size:9px;font-weight:800;padding:7px 7px;border-radius:8px;cursor:pointer}.ktr-lang button.active{background:#fff;color:var(--ktr-primary)}.ktr-close{position:relative;z-index:2;border:0;background:rgba(255,255,255,.12);color:#fff;width:34px;height:34px;border-radius:12px;font-size:23px;line-height:1;cursor:pointer}.ktr-body{padding:16px 15px 12px;overflow-y:auto;flex:1;background:linear-gradient(#fbfcff,#fff 45%);scroll-behavior:smooth}.ktr-context{background:#fff8df;border:1px solid #f7e9ad;border-radius:13px;padding:9px 10px;margin-bottom:12px;font-size:10.5px;color:#6b5b18;display:grid;grid-template-columns:1fr auto;gap:2px 8px}.ktr-context span{grid-column:1/3;color:#8d7d39}.ktr-context strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ktr-context button{border:0;background:transparent;color:var(--ktr-primary);font-weight:800;font-size:10px;cursor:pointer;padding:0}.ktr-intro{display:flex;gap:9px;align-items:flex-end}.ktr-mini-avatar{width:30px;height:30px;border-radius:10px;background:var(--ktr-primary);color:#fff;font-size:10px;flex:0 0 auto}.ktr-bubble{max-width:84%;padding:12px 14px;border-radius:16px;font-size:13.2px;line-height:1.5;white-space:pre-wrap}.ktr-bot-bubble{background:#f0f4fb;border-bottom-left-radius:5px;color:#23314d}.ktr-user-bubble{margin-left:auto;background:var(--ktr-primary);color:#fff;border-bottom-right-radius:5px}.ktr-home-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0 0 39px}.ktr-home-actions button{border:1px solid #e6eaf2;background:#fff;border-radius:14px;padding:10px 10px;text-align:left;cursor:pointer;box-shadow:0 4px 12px rgba(20,42,83,.04);transition:.2s}.ktr-home-actions button:hover{transform:translateY(-1px);border-color:#cfd8e8}.ktr-home-actions span{font-size:16px}.ktr-home-actions b{display:block;font-size:11.5px;color:#273651;margin-top:5px}.ktr-messages{display:flex;flex-direction:column;gap:11px;margin-top:14px}.ktr-message-row{display:flex;gap:8px;align-items:flex-end}.ktr-message-row.user{justify-content:flex-end}.ktr-typing{display:inline-flex;gap:4px;align-items:center;height:18px}.ktr-typing i{width:5px;height:5px;background:#7e8ba3;border-radius:50%;animation:ktr-dot 1s infinite ease-in-out}.ktr-typing i:nth-child(2){animation-delay:.15s}.ktr-typing i:nth-child(3){animation-delay:.3s}@keyframes ktr-dot{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}.ktr-flow{margin-top:13px}.ktr-flow-box,.ktr-lead-form{margin-left:39px;background:#fff;border:1px solid #e5eaf2;border-radius:17px;padding:13px;box-shadow:0 6px 20px rgba(20,42,83,.05)}.ktr-flow-box>strong{display:block;font-size:13px;margin-bottom:10px}.ktr-flow-options{display:flex;flex-wrap:wrap;gap:7px}.ktr-chip{border:1px solid #dfe5ee;background:#f8fafc;color:#263650;border-radius:12px;padding:8px 10px;font-size:11px;font-weight:700;cursor:pointer}.ktr-chip:hover{background:#eef4ff;border-color:#ccd9ee}.ktr-chip.ktr-back{margin-top:11px;background:transparent;color:#718096}.ktr-program-wrap{margin-left:39px;display:flex;flex-direction:column;gap:8px}.ktr-section-label{font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#8490a5;margin-bottom:1px}.ktr-program-card{border:1px solid #e5eaf2;border-radius:16px;padding:12px;background:#fff;box-shadow:0 5px 16px rgba(20,42,83,.04);display:grid;grid-template-columns:34px 1fr;gap:9px}.ktr-program-icon{width:34px;height:34px;border-radius:11px;background:#fff5cc;display:grid;place-items:center}.ktr-program-copy strong{display:block;font-size:12.5px;color:#1d2d49}.ktr-program-copy span{display:block;font-size:10px;color:#738096;margin-top:2px}.ktr-program-copy p{font-size:11px;line-height:1.45;color:#536176;margin:6px 0 0}.ktr-card-buttons{grid-column:1/3;display:flex;gap:6px;margin-top:2px}.ktr-card-buttons a,.ktr-card-buttons button{border:0;text-decoration:none!important;background:#edf3ff;color:var(--ktr-primary)!important;border-radius:10px;padding:7px 9px;font-size:10px!important;font-weight:800;cursor:pointer}.ktr-link-card{margin-left:39px;border:1px solid #e5eaf2;border-radius:14px;padding:9px;background:#fff;display:flex;flex-direction:column;gap:5px}.ktr-link-card a{text-decoration:none!important;color:var(--ktr-primary)!important;font-size:11px!important;font-weight:700;padding:7px 8px;border-radius:9px;background:#f4f7fb}.ktr-contact-card{margin-left:39px;border:1px solid #e5eaf2;border-radius:15px;padding:10px;background:#fff}.ktr-hours-note{font-size:10.5px;line-height:1.4;color:#8a6112;background:#fff8df;border-radius:10px;padding:8px;margin-bottom:8px}.ktr-contact-actions{display:flex;gap:6px;flex-wrap:wrap}.ktr-contact-actions a,.ktr-contact-actions button{text-decoration:none!important;border:0;font-size:10.5px!important;font-weight:800;color:var(--ktr-primary)!important;background:#edf3ff;border-radius:10px;padding:8px 9px;cursor:pointer}.ktr-contact-actions .ktr-wa{background:#eafaf0;color:#168246!important}.ktr-lead-form{display:flex;flex-direction:column;gap:8px}.ktr-form-title{font-size:13px;font-weight:800;margin-bottom:2px}.ktr-lead-form label>span{display:block;font-size:9.5px;font-weight:700;color:#67758d;margin:0 0 4px}.ktr-lead-form input[type=text],.ktr-lead-form input[type=tel],.ktr-lead-form input[type=email]{width:100%;border:1px solid #dfe5ee!important;border-radius:10px!important;background:#fff!important;padding:9px 10px!important;font-size:11.5px!important;outline:0!important;box-shadow:none!important}.ktr-two{display:grid;grid-template-columns:1fr 1fr;gap:7px}.ktr-consent{display:flex!important;gap:7px;align-items:flex-start}.ktr-consent input{margin-top:2px}.ktr-consent span{font-size:9px!important;line-height:1.4;font-weight:500!important}.ktr-legal{display:flex;gap:10px}.ktr-legal a{font-size:9px;color:var(--ktr-primary)!important}.ktr-submit{border:0;background:var(--ktr-primary);color:#fff;border-radius:11px;padding:10px 12px;font-size:11px;font-weight:800;cursor:pointer}.ktr-submit:disabled{opacity:.55}.ktr-text-back{border:0;background:transparent;color:#6f7d92;font-size:10px;cursor:pointer}.ktr-form-msg{font-size:10px;line-height:1.4}.ktr-form-msg.success{color:#168246}.ktr-form-msg.error{color:#b42318}.ktr-footer{padding:10px 14px 12px;border-top:1px solid #edf0f5;background:#fff}.ktr-input-row{display:flex;align-items:flex-end;gap:8px;background:#f5f7fb;border:1px solid #e8ecf3;border-radius:18px;padding:7px 8px 7px 13px}.ktr-input{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;resize:none;width:100%;max-height:90px;padding:6px 0!important;font-size:13.5px!important;line-height:1.45;color:#1f2a44}.ktr-input::placeholder{color:#97a1b2}.ktr-send{width:38px;height:38px;flex:0 0 auto;border:0;border-radius:13px;background:var(--ktr-accent);display:grid;place-items:center;cursor:pointer;transition:.2s}.ktr-send:hover{transform:scale(1.04)}.ktr-send svg{width:19px;height:19px;fill:#172033}.ktr-send:disabled{opacity:.5;cursor:wait}.ktr-footer-note{text-align:center;color:#a0a9b8;font-size:9.5px;margin-top:7px}@media(max-width:600px){.ktr-chat{right:12px;bottom:12px}.ktr-launcher{width:58px;height:58px;border-radius:20px}.ktr-proactive{right:0;bottom:70px;width:min(280px,calc(100vw - 34px))}.ktr-panel{position:fixed;left:0;right:0;bottom:0;top:0;width:100vw;height:100dvh;max-height:none;border-radius:0}.ktr-header{min-height:76px}.ktr-body{padding:14px 13px}.ktr-home-actions,.ktr-flow-box,.ktr-lead-form,.ktr-program-wrap,.ktr-link-card,.ktr-contact-card{margin-left:0}.ktr-bubble{max-width:88%}.ktr-footer{padding-bottom:max(12px,env(safe-area-inset-bottom))}}@media(prefers-reduced-motion:reduce){.ktr-chat *{animation:none!important;transition:none!important}}

/* ===== KT Robotics Chatbot Pro V4 ===== */
#ktr-chat-root.ktr-chat button,
#ktr-chat-root.ktr-chat input,
#ktr-chat-root.ktr-chat textarea,
#ktr-chat-root.ktr-chat select{font-family:inherit;text-transform:none;letter-spacing:normal;box-shadow:none}
#ktr-chat-root.ktr-chat button:focus-visible,
#ktr-chat-root.ktr-chat a:focus-visible,
#ktr-chat-root.ktr-chat input:focus-visible,
#ktr-chat-root.ktr-chat textarea:focus-visible,
#ktr-chat-root.ktr-chat select:focus-visible{outline:2px solid var(--ktr-accent);outline-offset:2px}

/* Tema butonu */
#ktr-chat-root .ktr-theme-toggle{position:relative;z-index:2;border:0!important;background:rgba(255,255,255,.12)!important;color:#fff!important;width:34px;height:34px;border-radius:12px!important;font-size:15px!important;line-height:1!important;cursor:pointer!important;padding:0!important;display:grid;place-items:center}
#ktr-chat-root .ktr-theme-toggle:hover{background:rgba(255,255,255,.22)!important;color:#fff!important}

/* Duyuru bandı */
#ktr-chat-root .ktr-announcement{display:flex;align-items:center;gap:8px;padding:9px 14px;background:linear-gradient(90deg,#fff6cf,#fff9e7);border-bottom:1px solid #f1df95;color:#5e4a00;font-size:11px;line-height:1.35;min-height:36px}
#ktr-chat-root .ktr-announcement[hidden]{display:none!important}
#ktr-chat-root .ktr-announcement span{font-size:14px;flex:0 0 auto}
#ktr-chat-root .ktr-announcement b,#ktr-chat-root .ktr-announcement a{color:#5e4a00!important;font-weight:800;text-decoration:none!important}
#ktr-chat-root .ktr-announcement a:hover{text-decoration:underline!important}

/* Otomatik SSS */
#ktr-chat-root .ktr-popular{margin:13px 0 2px 39px;border:1px solid #e5eaf2;background:#fff;border-radius:15px;padding:10px;box-shadow:0 5px 16px rgba(20,42,83,.035)}
#ktr-chat-root .ktr-popular[hidden]{display:none!important}
#ktr-chat-root .ktr-popular-title{font-size:10px;font-weight:850;color:#66758d;margin-bottom:7px;text-transform:uppercase;letter-spacing:.045em}
#ktr-chat-root .ktr-popular-list{display:flex;flex-wrap:wrap;gap:6px}
#ktr-chat-root .ktr-popular-list button{border:1px solid #e0e6ef!important;background:#f8fafc!important;color:#31415d!important;border-radius:999px!important;padding:6px 9px!important;font-size:9.8px!important;line-height:1.2!important;font-weight:750!important;cursor:pointer!important;margin:0!important;min-height:0!important}
#ktr-chat-root .ktr-popular-list button:hover{background:#17243d!important;border-color:#17243d!important;color:#fff!important}

/* Ana buton hover - tema kaynaklı siyah/karanlık yazı sorununu kesin olarak ezer */
#ktr-chat-root .ktr-home-actions button{color:#273651!important;background:#fff!important;border-color:#e6eaf2!important}
#ktr-chat-root .ktr-home-actions button b{color:#273651!important}
#ktr-chat-root .ktr-home-actions button:hover,
#ktr-chat-root .ktr-home-actions button:focus-visible{background:#17243d!important;border-color:#17243d!important;color:#fff!important;box-shadow:0 10px 22px rgba(17,31,56,.18)!important;transform:translateY(-1px)}
#ktr-chat-root .ktr-home-actions button:hover b,
#ktr-chat-root .ktr-home-actions button:hover span,
#ktr-chat-root .ktr-home-actions button:focus-visible b,
#ktr-chat-root .ktr-home-actions button:focus-visible span{color:#fff!important}

/* Program karşılaştırma */
#ktr-chat-root .ktr-compare-wrap{margin-left:39px;display:flex;flex-direction:column;gap:7px}
#ktr-chat-root .ktr-compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:stretch}
#ktr-chat-root .ktr-compare-card{border:1px solid #e5eaf2;border-radius:16px;background:#fff;padding:11px;box-shadow:0 5px 16px rgba(20,42,83,.04);min-width:0;display:flex;flex-direction:column}
#ktr-chat-root .ktr-compare-head{display:flex;align-items:center;gap:7px;border-bottom:1px solid #edf0f4;padding-bottom:8px;margin-bottom:8px}
#ktr-chat-root .ktr-compare-head span{width:29px;height:29px;display:grid;place-items:center;background:#fff5cc;border-radius:9px;font-size:14px;flex:0 0 auto}
#ktr-chat-root .ktr-compare-head strong{font-size:11.5px;line-height:1.25;color:#1d2d49}
#ktr-chat-root .ktr-compare-card dl{margin:0;display:grid;gap:3px;flex:1}
#ktr-chat-root .ktr-compare-card dt{font-size:8.7px;color:#8b96a8;text-transform:uppercase;letter-spacing:.035em;font-weight:800;margin-top:5px}
#ktr-chat-root .ktr-compare-card dd{font-size:9.8px;line-height:1.35;color:#3e4d65;margin:0}
#ktr-chat-root .ktr-compare-wa{margin-top:9px!important;border:0!important;background:#eafaf0!important;color:#168246!important;border-radius:9px!important;padding:7px 8px!important;font-size:9.5px!important;font-weight:800!important;cursor:pointer!important}
#ktr-chat-root .ktr-compare-wa:hover{background:#168246!important;color:#fff!important}

/* Şubeler */
#ktr-chat-root .ktr-branch-title{font-size:10px;font-weight:850;color:#66758d;margin:2px 0 8px;text-transform:uppercase;letter-spacing:.045em}
#ktr-chat-root .ktr-branches{display:flex;flex-direction:column;gap:7px;margin-bottom:9px}
#ktr-chat-root .ktr-branch-card{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;border:1px solid #e5eaf2;background:#f9fbfe;border-radius:12px;padding:9px}
#ktr-chat-root .ktr-branch-card div{min-width:0}
#ktr-chat-root .ktr-branch-card strong{display:block;font-size:10.5px;color:#1e2d48;margin-bottom:3px}
#ktr-chat-root .ktr-branch-card span{display:block;font-size:9.3px;line-height:1.35;color:#6f7d92}
#ktr-chat-root .ktr-branch-card a{text-decoration:none!important;border:0!important;background:#edf3ff!important;color:var(--ktr-primary)!important;border-radius:9px!important;padding:7px 8px!important;font-size:9px!important;font-weight:850!important;white-space:nowrap}
#ktr-chat-root .ktr-branch-card a:hover{background:#17243d!important;color:#fff!important}

/* Form select */
#ktr-chat-root .ktr-lead-form select{width:100%;border:1px solid #dfe5ee!important;border-radius:10px!important;background:#fff!important;color:#1f2a44!important;padding:9px 10px!important;font-size:11.5px!important;outline:0!important;box-shadow:none!important;min-height:38px}

/* Açık/Koyu tema */
#ktr-chat-root[data-theme="dark"] .ktr-panel{background:#121923;border-color:#273244;box-shadow:0 30px 80px rgba(0,0,0,.42)}
#ktr-chat-root[data-theme="dark"] .ktr-body{background:linear-gradient(#151d29,#111822 45%);color:#e8edf5}
#ktr-chat-root[data-theme="dark"] .ktr-footer{background:#121923;border-top-color:#273244}
#ktr-chat-root[data-theme="dark"] .ktr-input-row{background:#1b2532;border-color:#2c394b}
#ktr-chat-root[data-theme="dark"] .ktr-input{color:#f2f5f9!important}
#ktr-chat-root[data-theme="dark"] .ktr-input::placeholder{color:#7f8da2}
#ktr-chat-root[data-theme="dark"] .ktr-bot-bubble{background:#1d2836;color:#e7edf6}
#ktr-chat-root[data-theme="dark"] .ktr-context{background:#2b271a;border-color:#524724;color:#e9d77d}
#ktr-chat-root[data-theme="dark"] .ktr-context span{color:#cdbb69}
#ktr-chat-root[data-theme="dark"] .ktr-popular,
#ktr-chat-root[data-theme="dark"] .ktr-flow-box,
#ktr-chat-root[data-theme="dark"] .ktr-lead-form,
#ktr-chat-root[data-theme="dark"] .ktr-program-card,
#ktr-chat-root[data-theme="dark"] .ktr-link-card,
#ktr-chat-root[data-theme="dark"] .ktr-contact-card,
#ktr-chat-root[data-theme="dark"] .ktr-compare-card{background:#17212d;border-color:#2b394b;box-shadow:none}
#ktr-chat-root[data-theme="dark"] .ktr-popular-title,
#ktr-chat-root[data-theme="dark"] .ktr-section-label,
#ktr-chat-root[data-theme="dark"] .ktr-branch-title{color:#93a2b8}
#ktr-chat-root[data-theme="dark"] .ktr-popular-list button{background:#1d2937!important;border-color:#324154!important;color:#dfe7f2!important}
#ktr-chat-root[data-theme="dark"] .ktr-popular-list button:hover{background:#090e16!important;color:#fff!important;border-color:#090e16!important}
#ktr-chat-root[data-theme="dark"] .ktr-home-actions button{background:#17212d!important;border-color:#2b394b!important;color:#e8edf5!important}
#ktr-chat-root[data-theme="dark"] .ktr-home-actions button b{color:#e8edf5!important}
#ktr-chat-root[data-theme="dark"] .ktr-home-actions button:hover{background:#05080d!important;border-color:#05080d!important;color:#fff!important}
#ktr-chat-root[data-theme="dark"] .ktr-program-copy strong,
#ktr-chat-root[data-theme="dark"] .ktr-compare-head strong,
#ktr-chat-root[data-theme="dark"] .ktr-branch-card strong{color:#edf2f8}
#ktr-chat-root[data-theme="dark"] .ktr-program-copy span,
#ktr-chat-root[data-theme="dark"] .ktr-program-copy p,
#ktr-chat-root[data-theme="dark"] .ktr-compare-card dd,
#ktr-chat-root[data-theme="dark"] .ktr-branch-card span{color:#9cabc0}
#ktr-chat-root[data-theme="dark"] .ktr-compare-head{border-bottom-color:#2b394b}
#ktr-chat-root[data-theme="dark"] .ktr-branch-card{background:#1b2634;border-color:#2c3b4e}
#ktr-chat-root[data-theme="dark"] .ktr-chip{background:#1d2937!important;border-color:#334256!important;color:#e7edf6!important}
#ktr-chat-root[data-theme="dark"] .ktr-chip:hover{background:#05080d!important;border-color:#05080d!important;color:#fff!important}
#ktr-chat-root[data-theme="dark"] .ktr-lead-form label>span{color:#9aa8ba}
#ktr-chat-root[data-theme="dark"] .ktr-lead-form input[type=text],
#ktr-chat-root[data-theme="dark"] .ktr-lead-form input[type=tel],
#ktr-chat-root[data-theme="dark"] .ktr-lead-form input[type=email],
#ktr-chat-root[data-theme="dark"] .ktr-lead-form select{background:#111923!important;border-color:#324154!important;color:#edf2f8!important}
#ktr-chat-root[data-theme="dark"] .ktr-footer-note{color:#6f7d91}
#ktr-chat-root[data-theme="dark"] .ktr-announcement{background:#302a13;border-bottom-color:#51461e;color:#f3db72}
#ktr-chat-root[data-theme="dark"] .ktr-announcement b,
#ktr-chat-root[data-theme="dark"] .ktr-announcement a{color:#f3db72!important}
#ktr-chat-root[data-theme="dark"] .ktr-hours-note{background:#302a13;color:#f0d77a}

/* Mobil: artık tam ekran değil; site görünmeye devam eder */
@media(max-width:600px){
  #ktr-chat-root.ktr-chat{right:10px;bottom:10px;left:auto}
  #ktr-chat-root .ktr-panel{position:fixed!important;left:10px!important;right:10px!important;bottom:max(10px,env(safe-area-inset-bottom))!important;top:auto!important;width:auto!important;height:min(78dvh,650px)!important;max-height:calc(100dvh - 22px)!important;border-radius:22px!important;transform-origin:bottom center}
  #ktr-chat-root .ktr-header{min-height:68px;padding:11px 11px 11px 13px}
  #ktr-chat-root .ktr-avatar{width:40px;height:40px;border-radius:13px}
  #ktr-chat-root .ktr-close,#ktr-chat-root .ktr-theme-toggle{width:31px;height:31px;border-radius:10px!important}
  #ktr-chat-root .ktr-body{padding:12px 11px 10px}
  #ktr-chat-root .ktr-home-actions,#ktr-chat-root .ktr-flow-box,#ktr-chat-root .ktr-lead-form,#ktr-chat-root .ktr-program-wrap,#ktr-chat-root .ktr-link-card,#ktr-chat-root .ktr-contact-card,#ktr-chat-root .ktr-compare-wrap,#ktr-chat-root .ktr-popular{margin-left:0}
  #ktr-chat-root .ktr-home-actions{grid-template-columns:1fr 1fr;gap:7px}
  #ktr-chat-root .ktr-home-actions button{padding:9px!important;min-height:56px}
  #ktr-chat-root .ktr-compare-grid{grid-template-columns:1fr 1fr;overflow-x:auto}
  #ktr-chat-root .ktr-compare-card{min-width:0;padding:9px}
  #ktr-chat-root .ktr-compare-card dd{font-size:9.2px}
  #ktr-chat-root .ktr-footer{padding:8px 10px max(9px,env(safe-area-inset-bottom))}
}
@media(max-width:390px){
  #ktr-chat-root .ktr-panel{left:7px!important;right:7px!important;height:min(76dvh,620px)!important}
  #ktr-chat-root .ktr-heading strong{font-size:14px}
  #ktr-chat-root .ktr-heading span{font-size:10px}
  #ktr-chat-root .ktr-lang button{padding:6px 5px}
  #ktr-chat-root .ktr-compare-grid{grid-template-columns:minmax(146px,1fr) minmax(146px,1fr)}
}
@media(max-height:650px) and (max-width:600px){
  #ktr-chat-root .ktr-panel{height:82dvh!important;max-height:calc(100dvh - 14px)!important}
}


/* V4.1 — Mobil klavye / iOS Safari stabilizasyonu */
#ktr-chat-root .ktr-header,
#ktr-chat-root .ktr-announcement,
#ktr-chat-root .ktr-footer{flex-shrink:0}
#ktr-chat-root .ktr-body{min-height:0;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}

@media(max-width:600px){
  /* iOS Safari 16px altındaki form alanlarında otomatik zoom yapar. */
  #ktr-chat-root .ktr-input,
  #ktr-chat-root .ktr-lead-form input[type=text],
  #ktr-chat-root .ktr-lead-form input[type=tel],
  #ktr-chat-root .ktr-lead-form input[type=email],
  #ktr-chat-root .ktr-lead-form select{font-size:16px!important}

  #ktr-chat-root:not(.ktr-keyboard-open) .ktr-panel{
    max-height:min(650px,calc(100dvh - 22px))!important;
  }

  /* Klavye açıldığında panel görünür ekranın içine yerleşir ve klavyenin altına girmez. */
  #ktr-chat-root.ktr-keyboard-open .ktr-panel{
    position:fixed!important;
    top:calc(var(--ktr-vv-top,0px) + 6px)!important;
    bottom:auto!important;
    left:7px!important;
    right:7px!important;
    width:auto!important;
    height:calc(var(--ktr-vv-height,100dvh) - 12px)!important;
    max-height:none!important;
    border-radius:18px!important;
    transform:none!important;
    animation:none!important;
  }
  #ktr-chat-root.ktr-keyboard-open .ktr-header{min-height:58px;padding:8px 9px 8px 11px}
  #ktr-chat-root.ktr-keyboard-open .ktr-avatar{width:36px;height:36px;border-radius:11px}
  #ktr-chat-root.ktr-keyboard-open .ktr-heading strong{font-size:13px}
  #ktr-chat-root.ktr-keyboard-open .ktr-heading span{font-size:9.5px}
  #ktr-chat-root.ktr-keyboard-open .ktr-close,
  #ktr-chat-root.ktr-keyboard-open .ktr-theme-toggle{width:29px;height:29px}
  #ktr-chat-root.ktr-keyboard-open .ktr-announcement{padding-top:6px;padding-bottom:6px;font-size:9.5px}
  #ktr-chat-root.ktr-keyboard-open .ktr-body{padding:8px 9px 7px;scroll-behavior:auto}
  #ktr-chat-root.ktr-keyboard-open .ktr-footer{padding:6px 8px max(6px,env(safe-area-inset-bottom))}
  #ktr-chat-root.ktr-keyboard-open .ktr-input-row{border-radius:15px;padding:5px 6px 5px 10px}
  #ktr-chat-root.ktr-keyboard-open .ktr-send{width:36px;height:36px;border-radius:11px}
  #ktr-chat-root.ktr-keyboard-open .ktr-footer-note{display:none}
}
\n\n/* V4.2 — müşteri revizeleri: şubeler ekranı + mobil klavye okunabilirliği */\n#ktr-chat-root .ktr-contact-screen{display:flex;flex-direction:column;gap:9px}\n#ktr-chat-root .ktr-contact-screen>.ktr-branch-title{display:none}\n#ktr-chat-root .ktr-contact-screen-title{font-size:13px!important;margin:0 0 1px!important;color:#1f2d47}\n#ktr-chat-root .ktr-contact-screen .ktr-branches{margin-bottom:1px}\n#ktr-chat-root .ktr-contact-screen .ktr-branch-card{padding:11px}\n#ktr-chat-root .ktr-contact-screen .ktr-branch-card strong{font-size:11.5px}\n#ktr-chat-root .ktr-contact-screen .ktr-branch-card span{font-size:10.2px}\n#ktr-chat-root .ktr-contact-screen .ktr-branch-card a{font-size:9.8px!important;padding:8px 9px!important}\n#ktr-chat-root .ktr-contact-screen .ktr-contact-actions{margin-top:1px}\n#ktr-chat-root .ktr-contact-back{align-self:flex-start;margin-top:2px}\n#ktr-chat-root .ktr-contact-empty{font-size:11px;color:#6f7d92;margin:0}\n#ktr-chat-root[data-theme="dark"] .ktr-contact-screen-title{color:#edf2f8}\n\n@media(max-width:600px){\n  /* Klavye açıkken ikincil kartları geçici gizle; son konuşma metni okunabilir kalsın. */\n  #ktr-chat-root.ktr-keyboard-open .ktr-context,\n  #ktr-chat-root.ktr-keyboard-open .ktr-intro,\n  #ktr-chat-root.ktr-keyboard-open .ktr-popular,\n  #ktr-chat-root.ktr-keyboard-open .ktr-home-actions,\n  #ktr-chat-root.ktr-keyboard-open .ktr-program-wrap,\n  #ktr-chat-root.ktr-keyboard-open .ktr-link-card,\n  #ktr-chat-root.ktr-keyboard-open .ktr-contact-card,\n  #ktr-chat-root.ktr-keyboard-open .ktr-compare-wrap{display:none!important}\n\n  #ktr-chat-root.ktr-keyboard-open .ktr-panel{\n    overflow:hidden!important;\n  }\n  #ktr-chat-root.ktr-keyboard-open .ktr-body{\n    min-height:0!important;\n    overflow-y:auto!important;\n    padding-top:8px!important;\n    padding-bottom:8px!important;\n  }\n  #ktr-chat-root.ktr-keyboard-open .ktr-messages{margin-top:0!important}\n  #ktr-chat-root.ktr-keyboard-open .ktr-message-row{scroll-margin-top:8px}\n  #ktr-chat-root.ktr-keyboard-open .ktr-bubble{max-width:92%;font-size:12.8px}\n  #ktr-chat-root.ktr-keyboard-open .ktr-footer{position:relative;z-index:10}\n}\n

/* V4.2.2 — iletişim aksiyonları ve form gönderim durumu */
#ktr-chat-root .ktr-contact-actions{
  display:grid!important;
  grid-template-columns:minmax(0,1.15fr) minmax(64px,.68fr) minmax(0,1.25fr);
  gap:7px!important;
  width:100%;
  align-items:stretch;
}
#ktr-chat-root .ktr-contact-actions a,
#ktr-chat-root .ktr-contact-actions button{
  min-width:0;
  min-height:40px;
  display:flex!important;
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height:1.15;
  padding:8px 8px!important;
  white-space:normal;
}
#ktr-chat-root .ktr-submit.is-success{
  background:#17834a!important;
  opacity:1!important;
}
@media(max-width:360px){
  #ktr-chat-root .ktr-contact-actions{grid-template-columns:minmax(0,1fr) 62px minmax(0,1.15fr);gap:5px!important}
  #ktr-chat-root .ktr-contact-actions a,#ktr-chat-root .ktr-contact-actions button{font-size:9.7px!important;padding:7px 5px!important}
}


/* V4.2.3 — Android soft keyboard + AJAX transport UX */
@media(max-width:600px){
  #ktr-chat-root .ktr-input,
  #ktr-chat-root .ktr-lead-form input,
  #ktr-chat-root .ktr-lead-form select{touch-action:manipulation}
  #ktr-chat-root.ktr-keyboard-open .ktr-panel{overscroll-behavior:none!important}
  #ktr-chat-root.ktr-keyboard-open .ktr-footer{flex:0 0 auto!important}
  #ktr-chat-root.ktr-keyboard-open .ktr-body{flex:1 1 auto!important;min-height:0!important}
}

/* V4.2.4 – branch working hours */
.ktr-branch-hours{display:block;margin-top:7px;font-size:11px;line-height:1.45;color:var(--ktr-muted,#70809a);font-weight:600}
.ktr-branch-card .ktr-branch-hours{max-width:100%}
.ktr-dark .ktr-branch-hours{color:#aebbd0}
