/* ==========================================================================
   Ayklo — sağ altta sabit iletişim düğmeleri (js/contact-float.js).
   Kaydırmada yerinde kalır (position: fixed). Etiketler masaüstünde üzerine
   gelince açılır; dar ekranda yalnız yuvarlak düğmeler.
   ========================================================================== */
.fc {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  font-family: var(--font-sans); letter-spacing: -0.01em;
}
@media (max-width: 575.98px) { .fc { right: 14px; bottom: 14px; gap: 8px; } }

.fc__btn {
  position: relative; display: inline-flex; align-items: center; gap: 0; height: 52px; min-width: 52px; padding: 0 14px;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; overflow: hidden;
  box-shadow: 0 10px 28px -8px rgb(0 0 0 / .45), 0 0 0 1px rgb(255 255 255 / .08) inset;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), gap .25s var(--ease-out);
}
.fc__btn:hover { transform: translateY(-2px); gap: 8px; box-shadow: 0 14px 34px -10px rgb(0 0 0 / .55), 0 0 0 1px rgb(255 255 255 / .08) inset; }
.fc__btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.fc__btn--wa { background: #25d366; color: #fff; }
.fc__btn--chat { background: var(--black-200, #111); color: #fff; }
.fc__ico { flex: none; width: 24px; height: 24px; }
.fc__ico--close { display: none; width: 20px; height: 20px; margin: 0 2px; }
.fc.is-open .fc__ico--chat { display: none; }
.fc.is-open .fc__ico--close { display: block; }
/* Etiket: üzerine gelince yana açılır */
.fc__label {
  max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  font-weight: 600; font-size: 14px; line-height: 20px;
  transition: max-width .3s var(--ease-out), opacity .2s var(--ease-out);
}
@media (hover: hover) {
  .fc__btn:hover .fc__label, .fc__btn:focus-visible .fc__label { max-width: 140px; opacity: 1; }
}
/* Canlı destek düğmesinde çevrimiçi noktası */
.fc__btn--chat::after {
  content: ""; position: absolute; right: 9px; top: 9px; width: 9px; height: 9px; border-radius: 50%;
  background: #2fd38f; box-shadow: 0 0 0 2px var(--black-200, #111);
}
.fc.is-open .fc__btn--chat::after { display: none; }

/* Panel */
.fc__panel {
  width: min(340px, calc(100vw - 28px)); overflow: hidden; border-radius: 18px;
  background: var(--surface-page, #fff); color: var(--text-primary);
  box-shadow: 0 24px 60px -16px rgb(0 0 0 / .45), 0 0 0 1px var(--border-subtle);
  transform-origin: bottom right; animation: fc-in .22s var(--ease-out) both;
}
.fc__panel[hidden] { display: none; }
@keyframes fc-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.fc__head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px 16px; background: var(--black-200, #111); color: #fff; }
.fc__avatar { position: relative; flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #0b0c0e; }
.fc__mark { width: 20px; height: 15px; }
.fc__online { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #2fd38f; box-shadow: 0 0 0 2px var(--black-200, #111); }
.fc__who { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fc__who b { font-size: 15px; line-height: 20px; }
.fc__who small { font-size: 12px; line-height: 16px; color: rgb(255 255 255 / .65); }
.fc__close { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .1); color: #fff; cursor: pointer; }
.fc__close svg { width: 14px; height: 14px; }
.fc__body { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.fc__bubble { margin: 0 0 4px; padding: 10px 12px; border-radius: 4px 14px 14px 14px; background: var(--surface-subtle); font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.fc__opt {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--border-subtle); border-radius: 12px;
  font-weight: 500; font-size: 14px; line-height: 18px; color: var(--text-primary); text-decoration: none;
  transition: background-color .2s, border-color .2s;
}
.fc__opt:hover { background: var(--surface-subtle); border-color: var(--border-default); }
.fc__opt-ico { flex: none; width: 18px; height: 18px; color: var(--text-muted); }
.fc__opt--wa .fc__opt-ico { color: #25d366; }

@media (prefers-reduced-motion: reduce) {
  .fc__btn, .fc__label, .fc__panel { transition: none; animation: none; }
}
@media print { .fc { display: none; } }
