/* ============================================================
   mumm — sohbet asistanı
   Sade çizgi üslubu korunur; renk yalnızca --cb-accent ile
   iç kulak, burun, tasma ve çevrimiçi noktasında. Animasyonlar
   küçük ve seyrek: kırpma, kulak seğirmesi, yeni mesajda zıplama.
   prefers-reduced-motion açıksa hepsi kapanır.
   ============================================================ */

.cbot{position:fixed;bottom:22px;z-index:8500;font-family:Inter,system-ui,sans-serif;
  --cb-accent:#D9885B}
.cbot--right{right:22px}
.cbot--left{left:22px}

/* --- kedi ---------------------------------------------------- */
.cb-cat{width:100%;height:100%;fill:none;stroke:var(--ink,#1F1D1B);stroke-width:1.25;
  stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.cb-cat .cb-fill{fill:var(--cb-accent);stroke:none}
.cb-cat .cb-pupil{fill:var(--ink,#1F1D1B);stroke:none}
.cb-cat .cb-lid{fill:var(--bg,#F4F1EC);stroke:none;transform-origin:center;
  transform:scaleY(0);transition:transform .12s}
.cb-cat.is-blink .cb-lid{transform:scaleY(1)}
.cb-cat .cb-collar{stroke:var(--cb-accent);stroke-width:2}
.cb-cat .cb-ear{transform-origin:50% 100%;transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.cb-cat .cb-whisk{opacity:.7}

/* --- başlatıcı ------------------------------------------------ */
.cbot__fab{position:relative;width:60px;height:60px;padding:8px;border:1px solid var(--hair,rgba(31,29,27,.14));
  border-radius:50%;background:var(--bg,#F4F1EC);cursor:pointer;
  box-shadow:0 8px 28px rgba(31,29,27,.16);
  transition:transform .22s cubic-bezier(.2,.8,.2,1),box-shadow .22s}
.cbot__fab:hover{transform:translateY(-2px);box-shadow:0 12px 34px rgba(31,29,27,.22)}
.cbot__fab:hover .cb-ear--l{transform:rotate(-8deg)}
.cbot__fab:hover .cb-ear--r{transform:rotate(8deg)}
.cbot__fab:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.cbot__fab.is-bounce{animation:cb-bounce .6s cubic-bezier(.2,.8,.2,1)}
@keyframes cb-bounce{0%,100%{transform:translateY(0)}35%{transform:translateY(-9px)}65%{transform:translateY(-3px)}}

.cbot__dot{position:absolute;right:6px;top:6px;width:10px;height:10px;border-radius:50%;
  background:var(--cb-accent);border:2px solid var(--bg,#F4F1EC);
  animation:cb-pulse 2.6s ease-in-out infinite}
@keyframes cb-pulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.25);opacity:.75}}
.cbot.is-open .cbot__fab{display:none}

/* --- konuşma balonu -------------------------------------------- */
.cbot__teaser{position:absolute;bottom:70px;max-width:240px;padding:12px 34px 12px 14px;
  background:var(--bg,#F4F1EC);border:1px solid var(--hair,rgba(31,29,27,.14));
  box-shadow:0 10px 30px rgba(31,29,27,.14);font-size:13px;line-height:1.5;color:var(--ink);
  animation:cb-in .32s cubic-bezier(.2,.8,.2,1)}
.cbot--right .cbot__teaser{right:0}
.cbot--left .cbot__teaser{left:0}
.cbot__teaser::after{content:'';position:absolute;bottom:-7px;width:12px;height:12px;
  background:var(--bg,#F4F1EC);border-right:1px solid var(--hair);border-bottom:1px solid var(--hair);
  transform:rotate(45deg)}
.cbot--right .cbot__teaser::after{right:22px}
.cbot--left .cbot__teaser::after{left:22px}
.cbot__teaser[hidden]{display:none}
.cbot__teaser-x{position:absolute;top:6px;right:8px;border:0;background:none;font-size:16px;
  line-height:1;color:var(--muted);cursor:pointer;padding:2px 4px}
@keyframes cb-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* --- panel ---------------------------------------------------- */
.cbot__panel{width:360px;max-width:calc(100vw - 32px);height:540px;max-height:calc(100vh - 60px);
  display:flex;flex-direction:column;background:var(--bg,#F4F1EC);
  border:1px solid var(--hair,rgba(31,29,27,.14));box-shadow:0 20px 60px rgba(31,29,27,.22);
  animation:cb-in .28s cubic-bezier(.2,.8,.2,1)}
.cbot__panel[hidden]{display:none}

.cbot__head{display:flex;align-items:center;gap:12px;padding:12px 14px;
  border-bottom:1px solid var(--hair);background:var(--bg2,#E6E0D6)}
.cbot__avatar{width:38px;height:38px;flex:0 0 auto;padding:4px;border-radius:50%;background:var(--bg)}
.cbot__who{flex:1;min-width:0;line-height:1.25}
.cbot__who strong{display:block;font-weight:500;font-size:14px;font-family:'Cormorant Garamond',Georgia,serif;font-size:19px}
.cbot__who small{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted)}
.cbot__who small i{width:7px;height:7px;border-radius:50%;background:var(--cb-accent);display:inline-block}
.cbot__min{width:34px;height:34px;border:0;background:none;cursor:pointer;color:var(--ink);
  display:grid;place-items:center;border-radius:50%}
.cbot__min:hover{background:rgba(31,29,27,.06)}
.cbot__min svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}

.cbot__log{flex:1;overflow-y:auto;padding:16px 14px 6px;display:flex;flex-direction:column;gap:10px;
  scroll-behavior:smooth;overscroll-behavior:contain}
.cb-msg{max-width:86%;padding:10px 13px;font-size:13.5px;line-height:1.55;
  animation:cb-in .22s cubic-bezier(.2,.8,.2,1)}
.cb-msg--bot{align-self:flex-start;background:var(--bg2,#E6E0D6);border-radius:2px 12px 12px 12px}
.cb-msg--me{align-self:flex-end;background:var(--ink,#1F1D1B);color:var(--bg,#F4F1EC);border-radius:12px 2px 12px 12px}
.cb-msg p{margin:0 0 6px}
.cb-msg p:last-child{margin:0}
.cb-msg a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.cb-msg strong{font-weight:500}

/* ürün kartı */
.cb-card{display:flex;gap:10px;align-items:center;margin-top:8px;padding:8px;
  background:var(--bg);border:1px solid var(--hair);text-decoration:none!important;color:var(--ink);border-radius:2px}
.cb-card img{width:56px;height:56px;object-fit:cover;flex:0 0 auto;background:var(--bg3,#E3DDD3)}
.cb-card b{display:block;font-weight:500;font-size:13.5px}
.cb-card span{display:block;font-size:12px;color:var(--muted)}
.cb-card em{display:block;font-style:normal;font-size:13px;margin-top:2px;font-variant-numeric:tabular-nums}

/* yazıyor... */
.cb-typing{display:inline-flex;gap:4px;padding:12px 14px}
.cb-typing i{width:6px;height:6px;border-radius:50%;background:rgba(31,29,27,.45);
  animation:cb-dot 1.2s infinite ease-in-out}
.cb-typing i:nth-child(2){animation-delay:.15s}
.cb-typing i:nth-child(3){animation-delay:.3s}
@keyframes cb-dot{0%,80%,100%{transform:translateY(0);opacity:.5}40%{transform:translateY(-4px);opacity:1}}

/* hızlı cevaplar */
.cbot__chips{display:flex;flex-wrap:wrap;gap:6px;padding:6px 14px 10px}
.cbot__chips:empty{display:none}
.cbot__chips button{border:1px solid var(--hair);background:var(--bg);font:inherit;font-size:12px;
  padding:7px 11px;border-radius:14px;cursor:pointer;color:var(--ink);transition:border-color .15s,background .15s}
.cbot__chips button:hover{border-color:var(--ink);background:var(--bg2)}

/* giriş */
.cbot__form{display:flex;gap:8px;padding:10px 14px;border-top:1px solid var(--hair)}
.cbot__form input{flex:1;min-width:0;border:1px solid var(--hair);background:var(--bg);
  font:inherit;font-size:14px;padding:10px 12px;border-radius:2px;outline:none}
.cbot__form input:focus{border-color:var(--ink)}
.cbot__form button{width:42px;height:42px;flex:0 0 auto;border:0;border-radius:50%;
  background:var(--ink);color:var(--bg);cursor:pointer;display:grid;place-items:center}
.cbot__form button:hover{background:#3A3633}
.cbot__form button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;
  stroke-linecap:round;stroke-linejoin:round}
.cbot__foot{margin:0;padding:0 14px 10px;font-size:10.5px;color:var(--muted);text-align:center}

/* diğer sabit öğelerle çakışma */
body.has-bot .exitcard{bottom:96px}
body.consent-open .cbot{display:none}

/* telefon: panel tam ekran */
@media (max-width:520px){
  .cbot{bottom:14px}
  .cbot--right{right:14px}
  .cbot--left{left:14px}
  .cbot.is-open{inset:0;bottom:0;right:0;left:0}
  .cbot.is-open .cbot__panel{width:100%;max-width:none;height:100%;max-height:none;border:0}
  .cbot__teaser{max-width:220px}
}

@media (prefers-reduced-motion:reduce){
  .cbot *,.cbot *::before,.cbot *::after{animation:none!important;transition:none!important}
}
