/* ========================================
   Widget Chat CS WhatsApp (Bot WA-AKG)
   Dipakai di semua halaman-utama: ../css/wa-cs.css
   ======================================== */

.wa-cs,
.wa-cs-toggle,
.wa-cs-panel {
  display: none !important;
}

@media print {
  .wa-cs,
  .wa-cs-toggle,
  .wa-cs-panel {
    display: none !important;
  }
}

.wa-cs-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 3.5rem;
  padding: 0 1.25rem 0 1rem;
  border: none;
  border-radius: 999px;
  background-color: #25d366;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-cs-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.45);
}

.wa-cs-toggle svg {
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
}

.wa-cs-panel {
  position: absolute;
  right: 0;
  bottom: 4.25rem;
  width: 20rem;
  max-width: calc(100vw - 2.5rem);
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.wa-cs.is-open .wa-cs-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.wa-cs-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(135deg, #15803d, #16a34a);
  color: #ffffff;
}

.wa-cs-avatar {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  font-size: 1.25rem;
}

.wa-cs-head strong {
  display: block;
  font-size: 0.95rem;
}

.wa-cs-head small {
  font-size: 0.75rem;
  opacity: 0.9;
}

.wa-cs-close {
  margin-left: auto;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.wa-cs-body {
  padding: 1rem;
  background-color: #f0fdf4;
}

.wa-cs-bubble {
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.9rem;
  border-radius: 0 0.75rem 0.75rem 0.75rem;
  background-color: #ffffff;
  color: #1f2937;
  font-size: 0.85rem;
  line-height: 1.45;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.wa-cs-topics {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wa-cs-topic {
  display: block;
  padding: 0.6rem 0.85rem;
  border: 1px solid #bbf7d0;
  border-radius: 0.6rem;
  background-color: #ffffff;
  color: #15803d;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.wa-cs-topic:hover {
  background-color: #dcfce7;
}

.wa-cs-foot {
  padding: 0.6rem 1rem;
  font-size: 0.7rem;
  color: #6b7280;
  text-align: center;
  background-color: #ffffff;
}

@media (max-width: 480px) {
  .wa-cs {
    right: 0.9rem;
    bottom: 0.9rem;
  }

  .wa-cs-toggle span {
    display: none; /* tampilkan ikon saja di layar kecil */
  }

  .wa-cs-toggle {
    width: 3.5rem;
    padding: 0;
    justify-content: center;
  }
}
