.Bakirsal-wa {
  position: fixed;
  z-index: 240;
  right: max(2.25rem, calc(env(safe-area-inset-right, 0px) + 1.75rem));
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
  width: min(19.5rem, calc(100vw - 3.5rem));
  pointer-events: none;
}

.Bakirsal-wa > * {
  pointer-events: auto;
}

.Bakirsal-wa__fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.55rem;
  height: 3.55rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, #2fe374 0%, #1ebe57 55%, #18a34a 100%);
  color: #fff;
  box-shadow:
    0 10px 28px rgba(18, 140, 70, 0.38),
    0 0 0 4px rgba(37, 211, 102, 0.12);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.Bakirsal-wa__fab:hover,
.Bakirsal-wa__fab:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 14px 32px rgba(18, 140, 70, 0.45),
    0 0 0 5px rgba(37, 211, 102, 0.16);
  outline: none;
}

.Bakirsal-wa.is-open .Bakirsal-wa__fab {
  filter: saturate(0.95);
  box-shadow:
    0 8px 20px rgba(18, 140, 70, 0.28),
    0 0 0 3px rgba(37, 211, 102, 0.1);
}

.Bakirsal-wa__fab-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  line-height: 0;
}

.Bakirsal-wa__pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(37, 211, 102, 0.42);
  animation: Bakirsal-wa-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

.Bakirsal-wa__pulse--delay {
  animation-delay: 1.2s;
}

.Bakirsal-wa.is-open .Bakirsal-wa__pulse {
  opacity: 0;
  animation: none;
}

@keyframes Bakirsal-wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.65;
  }
  70% {
    transform: scale(1.7);
    opacity: 0;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

.Bakirsal-wa__panel {
  width: 100%;
  transform-origin: bottom right;
  animation: Bakirsal-wa-in 0.28s ease;
}

.Bakirsal-wa__panel[hidden] {
  display: none !important;
}

@keyframes Bakirsal-wa-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.Bakirsal-wa__card {
  position: relative;
  display: grid;
  grid-template-columns: 4.35rem minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 0.95rem 1rem;
  border-radius: 1.25rem;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(37, 211, 102, 0.14), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
  border: 1px solid rgba(18, 140, 70, 0.12);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.16),
    0 2px 0 rgba(255, 255, 255, 0.8) inset;
  overflow: hidden;
}

.Bakirsal-wa__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #5b6573;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.Bakirsal-wa__close:hover,
.Bakirsal-wa__close:focus-visible {
  background: rgba(15, 23, 42, 0.1);
  color: #1f2937;
  outline: none;
}

.Bakirsal-wa__agent {
  position: relative;
  align-self: center;
  width: 4.35rem;
  height: 4.35rem;
  margin: 0;
  overflow: hidden;
  border-radius: 1.1rem;
  background: #d9f3e5;
  box-shadow: 0 8px 18px rgba(18, 140, 70, 0.14);
}

.Bakirsal-wa__agent img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.Bakirsal-wa__body {
  min-width: 0;
  padding-right: 1.1rem;
  padding-top: 0.15rem;
}

.Bakirsal-wa__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1f9d63;
}

.Bakirsal-wa__title {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #12261a;
}

.Bakirsal-wa__sub {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #5d6b63;
}

.Bakirsal-wa__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.35rem;
  padding: 0.4rem 0.85rem 0.4rem 0.55rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.78rem;
  font-weight: 750;
  box-shadow: 0 8px 18px rgba(18, 140, 70, 0.28);
  transition: transform 0.15s ease, background 0.15s ease;
}

.Bakirsal-wa__cta:hover,
.Bakirsal-wa__cta:focus-visible {
  background: #1ebe57;
  transform: translateY(-1px);
  outline: none;
}

.Bakirsal-wa__cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  line-height: 0;
}

.Bakirsal-wa__cta-icon svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 767px) {
  .Bakirsal-wa {
    right: max(1.35rem, calc(env(safe-area-inset-right, 0px) + 1rem));
    bottom: calc(3.55rem + 2.75rem + env(safe-area-inset-bottom, 0px));
    width: min(18rem, calc(100vw - 2.4rem));
  }

  .Bakirsal-wa__fab {
    width: 3.25rem;
    height: 3.25rem;
  }

  .Bakirsal-wa__fab-icon svg {
    width: 22px;
    height: 22px;
  }

  .Bakirsal-wa__card {
    grid-template-columns: 3.85rem minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.8rem 0.85rem 0.9rem;
  }

  .Bakirsal-wa__agent {
    width: 3.85rem;
    height: 3.85rem;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .Bakirsal-wa__pulse,
  .Bakirsal-wa__panel {
    animation: none;
  }

  .Bakirsal-wa__fab:hover,
  .Bakirsal-wa__fab:focus-visible,
  .Bakirsal-wa__cta:hover,
  .Bakirsal-wa__cta:focus-visible {
    transform: none;
  }
}
