.novocont-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.novocont-btn {
  position: relative; /* << ekledik */
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-clip: padding-box;
  overflow: hidden;
}

.novocont-btn img {
  width: 28px;
  height: 28px;
  image-rendering: -webkit-optimize-contrast;
}

.novocont-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}


.novocont-whatsapp {
  background-color: #25D366;
}

.novocont-phone {
  background-color: #007AFF;
}

/* === Sağ altta butona bağlı mini popover === */
.novocont-popover {
  position: fixed;
  right: 20px;            /* buton grubuyla aynı sağ boşluk */
  bottom: 90px;           /* butonların biraz üstü */
  width: 300px;
  background: #25D366;    /* WhatsApp için yeşil; JS'le türüne göre değiştiriyoruz */
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  overflow: hidden;
  transform: translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: transform .18s ease, opacity .18s ease;
  z-index: 10000;
}

.novocont-popover[data-open="true"] {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.novocont-pop-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  position: relative;
}

.novocont-pop-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;           /* tam merkezleme */
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.18);
  cursor: pointer;
  padding: 0;
  line-height: 0;                 /* metin yüksekliği etkisini sıfırla */
}

.novocont-pop-close:hover { background: rgba(255,255,255,.28); }
.novocont-pop-close:focus-visible { outline: 2px solid rgba(255,255,255,.6); outline-offset: 2px; }

.novocont-pop-close svg {
  width: 14px;
  height: 14px;
  pointer-events: none;           /* tıklamayı butonda bırak */
}

/* Bazı Windows ölçeklemelerinde 1px kayma olursa aç: */
/* .novocont-pop-close { transform: translateY(-0.5px); } */


.novocont-pop-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.novocont-pop-avatar img { width: 100%; height: 100%; object-fit: cover; }

.novocont-pop-title { font-weight: 700; line-height: 1.15; }
.novocont-pop-sub { font-size: 12px; opacity: .9; margin-top: 2px; }

.novocont-pop-body { background: #fff; color: #111; padding: 14px; }
.novocont-pop-action {
  width: 100%; height: 42px; border-radius: 999px;
  display: grid; place-items: center; font-weight: 700;
  text-decoration: none; background: #25D366; color: #fff;
  box-shadow: 0 6px 16px rgba(37,211,102,.45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.novocont-pop-action:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37,211,102,.5); }

/* Telefon için mavi tema */
.novocont-popover[data-type="phone"] { background: #007AFF; }
.novocont-popover[data-type="phone"] .novocont-pop-action {
  background: #007AFF; box-shadow: 0 6px 16px rgba(0,122,255,.45);
}
.novocont-popover[data-type="phone"] .novocont-pop-action:hover {
  box-shadow: 0 8px 20px rgba(0,122,255,.5);
}

/* Popover ok işareti */
.novocont-popover::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -8px;
  border: 8px solid transparent;
  border-top-color: inherit; /* üstteki arka plan rengi */
}

/* Kenar pürüz düzeltmeleri (butonlar) */
.novocont-btn { background-clip: padding-box; overflow: hidden; }
.novocont-btn img { width: 28px; height: 28px; image-rendering: -webkit-optimize-contrast; }

/* === Nazik dikkat efekti (pulse + hafif scale) === */
@keyframes novocont-attn-kf {
  0%   { transform: scale(1);     filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
  40%  { transform: scale(1.15);  filter: drop-shadow(0 0 8px rgba(255,255,255,0.5)); }
  100% { transform: scale(1);     filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
}

.novocont-attn {
  animation: novocont-attn-kf 1.2s ease-out 1;
  will-change: transform, box-shadow;
}

/* Renkleri hafifçe öne çıkarmak için halka efekti */
.novocont-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}

.novocont-attn::after {
  animation: novocont-attn-ring 1.2s ease-out 1;
}

@keyframes novocont-attn-ring {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.4); opacity: 1; }
  80%  { box-shadow: 0 0 0 18px rgba(255,255,255,0); opacity: 0; }
  100% { box-shadow: 0 0 0 18px rgba(255,255,255,0); opacity: 0; }
}

/* Hareket kısıtlama: Kullanıcı "reduced motion" seçtiyse animasyonu kapat */
@media (prefers-reduced-motion: reduce) {
  .novocont-attn,
  .novocont-attn::after {
    animation: none !important;
  }
}
