/* Adres Bilgisayar — canlı destek asistanı (assets/js/chat.js). Sitenin renkleri ve yazı tipiyle (Inter) uyumlu, kendi değişkenleri vardır. */

.abc {
  --abc-primary: #002271;
  --abc-primary-2: #0a369d;
  --abc-secondary: #006398;
  --abc-ink: #131b2e;
  --abc-muted: #444653;
  --abc-line: #dae2fd;
  --abc-soft: #f2f3ff;
  --abc-surface: #faf8ff;
  --abc-accent: #850024;
  position: fixed; right: 20px; bottom: 20px; z-index: 55;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px; line-height: 1.45; color: var(--abc-ink);
}
.abc *, .abc *::before, .abc *::after { box-sizing: border-box; }
.abc [hidden] { display: none !important; }
.abc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.abc-launch {
  position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--abc-primary-2) 0%, var(--abc-primary) 100%);
  box-shadow: 0 12px 28px -10px rgba(0, 34, 113, .6), 0 2px 6px rgba(0, 34, 113, .25);
  transition: transform .2s ease;
  margin-left: auto;
}
.abc-launch:hover { transform: translateY(-2px); }
.abc-launch > span { grid-area: 1 / 1; display: grid; place-items: center; transition: opacity .15s, transform .2s; }
.abc-ic-close { opacity: 0; transform: rotate(-45deg); }
.abc.is-open .abc-ic-open { opacity: 0; transform: rotate(45deg); }
.abc.is-open .abc-ic-close { opacity: 1; transform: none; }
.abc-badge {
  position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--abc-accent); color: #fff; font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid #fff;
}

.abc-teaser {
  position: absolute; right: 0; bottom: 74px; width: 280px; background: #fff; border: 1px solid var(--abc-line);
  border-radius: 16px 16px 4px 16px; padding: 12px 34px 12px 14px; cursor: pointer;
  box-shadow: 0 20px 40px -20px rgba(0, 34, 113, .45); animation: abc-in .2s ease-out;
}
.abc-teaser p { margin: 0; font-size: 14px; color: var(--abc-ink); }
.abc-teaser p b { display: block; font-size: 12px; color: var(--abc-muted); margin-bottom: 2px; }
.abc-teaser-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; background: none; color: var(--abc-muted); cursor: pointer; display: grid; place-items: center; padding: 0; }
.abc-teaser-x svg { width: 16px; height: 16px; }

.abc-panel {
  position: absolute; right: 0; bottom: 76px; width: 380px; height: min(600px, calc(100vh - 120px));
  display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(0, 34, 113, .5), 0 0 0 1px rgba(0, 34, 113, .08);
  animation: abc-in .2s ease-out;
}
@keyframes abc-in { from { opacity: 0; transform: translateY(12px); } }

.abc-head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; background: var(--abc-primary); color: #fff; flex: none; }
.abc-avatar { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; flex: none; color: #b6c4ff; }
.abc-who { flex: 1; min-width: 0; }
.abc-who b { display: block; font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-size: 16px; font-weight: 700; }
.abc-status { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #b6c4ff; }
.abc-status i { width: 8px; height: 8px; border-radius: 50%; background: #8b95a9; flex: none; }
.abc-status.on i { background: #5bd38a; box-shadow: 0 0 0 3px rgba(91, 211, 138, .25); }
.abc-status em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.abc-x { width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: #dce1ff; cursor: pointer; display: grid; place-items: center; flex: none; }
.abc-x:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.abc-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: var(--abc-soft); padding: 16px 14px; }
.abc-msgs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.abc-m { max-width: 85%; }
.abc-label { display: block; font-size: 11.5px; font-weight: 700; color: var(--abc-muted); margin: 0 0 3px 4px; }
.abc-text { padding: 10px 13px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.abc-text a { color: inherit; text-decoration: underline; }
.abc-text small { opacity: .85; }
.abc-in { align-self: flex-start; }
.abc-in .abc-text { background: #fff; border: 1px solid var(--abc-line); border-bottom-left-radius: 5px; }
.abc-bot .abc-text { background: #eaedff; border-color: #dae2fd; }
.abc-out { align-self: flex-end; }
.abc-out .abc-text { background: var(--abc-primary-2); color: #fff; border-bottom-right-radius: 5px; }
.abc-pending { opacity: .6; }

.abc-quick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.abc-quick button {
  border: 1px solid #b6c4ff; background: #fff; color: var(--abc-primary-2); border-radius: 999px; padding: 7px 13px;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.abc-quick button:hover { background: #eaedff; }
.abc-notice { align-self: center; font-size: 13px; color: #93000a; background: #ffdad6; border-radius: 10px; padding: 8px 12px; text-align: center; }

.abc-formwrap { max-width: 92%; }
.abc-form { display: grid; gap: 8px; background: #fff; border: 1px solid var(--abc-line); border-radius: 16px; border-bottom-left-radius: 5px; padding: 14px; }
.abc-form b { font-size: 15px; color: var(--abc-primary); }
.abc-form input {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid #c4c5d5; border-radius: 8px; background: var(--abc-surface);
  font: inherit; font-size: 16px; color: var(--abc-ink);
}
.abc-form input:focus { outline: none; border-color: var(--abc-primary-2); box-shadow: 0 0 0 3px rgba(10, 54, 157, .15); }
.abc-form button {
  height: 42px; border: 0; border-radius: 8px; background: var(--abc-primary); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.abc-form button:hover { background: var(--abc-primary-2); }
.abc-form button:disabled { opacity: .6; }
.abc-form small { color: var(--abc-muted); font-size: 12px; }
.abc-err { margin: 0; color: #ba1a1a; font-size: 13px; }
.abc-err:empty { display: none; }

.abc-compose { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--abc-line); background: #fff; flex: none; }
.abc-compose textarea {
  flex: 1; min-width: 0; height: 44px; max-height: 120px; resize: none; padding: 11px 14px; border-radius: 22px;
  border: 1px solid #c4c5d5; background: var(--abc-surface); font: inherit; font-size: 16px; color: var(--abc-ink); line-height: 1.35;
  scrollbar-width: none;
}
.abc-compose textarea::-webkit-scrollbar { display: none; }
.abc-compose textarea:focus { outline: none; border-color: var(--abc-primary-2); box-shadow: none; }
.abc-send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--abc-primary-2); color: #fff; cursor: pointer; display: grid; place-items: center; }
.abc-send:hover { background: var(--abc-primary); }
.abc :focus-visible { outline: 3px solid #93ccff; outline-offset: 2px; }

/* Telefonda pencere tam ekran açılır */
@media (max-width: 520px) {
  .abc { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .abc-panel {
    position: fixed; inset: 0; width: auto; height: auto; border-radius: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .abc-head { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
  .abc.is-open .abc-launch { display: none; }
  .abc-teaser { width: calc(100vw - 32px); }
  .abc-opened body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .abc-panel, .abc-teaser { animation: none; }
  .abc-launch, .abc-launch > span { transition: none; }
}
