.voiceadv-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99999;
  width: min(360px, calc(100vw - 24px));
  font-family: Arial, Helvetica, sans-serif;
}

.voiceadv-card {
  background: transparent;
  color: #182433;
  border-radius: 18px;
  box-shadow: none;
  border: 0;
  overflow: hidden;
}

.voiceadv-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 10px;
}

.voiceadv-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.voiceadv-status {
  font-size: 11px;
  line-height: 1;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.12);
}

.voiceadv-status[data-kind="ok"] {
  background: #1d8348;
}

.voiceadv-status[data-kind="error"] {
  background: #b03a2e;
}

.voiceadv-status[data-kind="loading"] {
  background: #8a6d1f;
}

.voiceadv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  justify-content: center;
}

.voiceadv-btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.voiceadv-btn:hover {
  transform: translateY(-1px);
}

.voiceadv-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.voiceadv-btn-primary {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  margin: 0 auto;
  padding: 0;
  font-size: 0;
  border-radius: 50%;
  color: #ffffff;
  text-shadow: 0 1px 3px #000;
  background: url('/htmlf/voiceadv/gennie-button.png') center / contain no-repeat;
  border: 2px solid #43d477;
  box-shadow: 0 5px 18px rgba(0, 80, 35, .45);
  line-height: 1.15;
}

.voiceadv-btn-primary.is-active {
  background: #9aa0a6 !important;
  animation: voiceadv-pulse 1.2s ease-in-out infinite;
  font-size: 0;
}

.voiceadv-btn-primary.is-active::after {
  content: "Encerrar";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(70, 75, 80, .55);
}

.voiceadv-btn-primary.is-connecting {
  background: #9aa0a6 !important;
  animation: voiceadv-pulse 1.2s ease-in-out infinite;
}

.voiceadv-btn-primary.is-connecting::after {
  content: "Aguarde, conectando com a Gennie...";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 8px;
  box-sizing: border-box;
  color: #fff;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 800;
  background: rgba(70, 75, 80, .58);
}

@keyframes voiceadv-pulse {
  0%, 100% { transform: scale(1); opacity: .78; }
  50% { transform: scale(1.08); opacity: 1; }
}

.voiceadv-btn-secondary {
  display: none;
}

.voiceadv-btn-read {
  background: #8ecae6;
  color: #182433;
  flex: 1 1 100%;
  min-height: 46px;
  font-size: 15px;
}

.voiceadv-help {
  position: fixed;
  right: 22px;
  bottom: 205px;
  width: 30px;
  height: 30px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #ffd43b;
  color: #17202a;
  font-size: 19px;
  font-weight: 800;
  line-height: 18px;
  cursor: pointer;
  z-index: 100001;
}

@media (max-width: 600px) {
  .voiceadv-widget {
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
  }

  .voiceadv-card {
    border-radius: 16px;
  }

  .voiceadv-title {
    font-size: 18px;
  }

  .voiceadv-status {
    font-size: 13px;
    padding: 7px 10px;
  }

  .voiceadv-actions {
    gap: 8px;
    padding: 0 12px 12px;
  }

  .voiceadv-btn {
    min-height: 48px;
    padding: 13px 12px;
    font-size: 16px;
  }

  .voiceadv-btn-primary {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
  }

  .voiceadv-btn-secondary {
    flex: 1 1 100%;
  }

  .voiceadv-btn-read {
    font-size: 17px;
    font-weight: 800;
  }
}

.voiceadv-detail {
  font-size: 12px;
  line-height: 1.45;
  margin: 0 16px 16px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #fff2f0;
  background: rgba(176, 58, 46, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
