#ChatViveWidget {
  position: fixed;
  right: 20px;
  bottom: 35px; /* arriba del botón de WhatsApp */
  z-index: 99;
  font-family: var(--font-paragraph);
}

/* BOTÓN CON IMAGEN */
#ChatViveToggle {
  width: 95px;
  height: 95px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

#ChatViveToggle:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.28);
}

#ChatViveToggle:active {
  transform: scale(0.96);
}

.chatvive-logo {
  -webkit-user-drag: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* PANEL */
#ChatVivePanel {
  position: absolute;
  right: 0;
  bottom: 110px;
  width: 390px;
  height: 680px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: none;
  flex-direction: column;
}

#ChatVivePanel.is-open {
  display: flex;
}

/* HEADER */
.chatvive-header {
  min-height: 72px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
    135deg,
    var(--color-green),
    var(--color-green-title)
  );
  color: #fff;
}

.chatvive-header-text h3 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 20px;
  line-height: 1.1;
  font-weight: 800;
}

.chatvive-header-text p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.2;
  opacity: 0.9;
}

#ChatViveClose {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  transition: background 0.2s ease;
}

#ChatViveClose:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* BODY */
.chatvive-body {
  flex: 1;
  background: var(--color-bg);
}

.chatvive-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--color-bg);
}

/* RESPONSIVE */
@media (max-width: 640px) {
  #ChatViveWidget {
    right: 10px;
    bottom: 30px;
  }

  #ChatVivePanel {
    width: calc(100vw - 20px);
    height: min(78vh, 680px);
    right: 0;
    bottom: 95px;
  }

  #ChatViveToggle {
    width: 75px;
    height: 75px;
  }
}
