/* Assistente de dúvidas — respostas prontas */
.gp-assist {
  position: fixed;
  right: 1.25rem;
  bottom: 5.65rem;
  z-index: 1510;
  font-family: "DM Sans", "Roboto", system-ui, sans-serif;
}

.gp-assist__launch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 56px;
  margin: 0;
  padding: 0 1.05rem 0 0.9rem;
  border: 0;
  border-radius: 999px;
  background: #0f1850;
  color: #fdcf33;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  font: 700 0.95rem/1 "DM Sans", "Roboto", system-ui, sans-serif;
}

.gp-assist__launch svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex: 0 0 auto;
}

.gp-assist__launch:hover {
  background: #081041;
}

.gp-assist__launch:focus-visible {
  outline: 2px solid #fdcf33;
  outline-offset: 3px;
}

.gp-assist__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  display: flex;
  flex-direction: column;
  width: min(22.5rem, calc(100vw - 2.5rem));
  max-height: min(32rem, calc(100dvh - 9.5rem));
  overflow: hidden;
  background: #fff;
  color: #1c2430;
  border-radius: 16px;
  border: 1px solid rgba(15, 24, 80, 0.12);
  box-shadow: 0 18px 48px rgba(2, 8, 39, 0.28);
}

.gp-assist__panel[hidden] {
  display: none;
}

.gp-assist__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.85rem 0.85rem 1rem;
  background: #0f1850;
  color: #fff;
}

.gp-assist__head strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.gp-assist__head span {
  display: block;
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 500;
}

.gp-assist__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: 600 1.35rem/1 "DM Sans", sans-serif;
}

.gp-assist__close:hover,
.gp-assist__close:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.gp-assist__log {
  flex: 1 1 auto;
  overflow: auto;
  padding: 0.9rem 0.9rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.gp-assist__msg {
  max-width: 92%;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.gp-assist__msg p {
  margin: 0;
}

.gp-assist__msg a {
  display: inline-block;
  margin-top: 0.55rem;
  color: #0f1850;
  font-weight: 700;
}

.gp-assist__msg--bot {
  align-self: flex-start;
  background: #f3f5f8;
  color: #1c2430;
  border-bottom-left-radius: 4px;
}

.gp-assist__msg--user {
  align-self: flex-end;
  background: #0f1850;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.gp-assist__msg--user a {
  color: #fdcf33;
}

.gp-assist__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem 0.7rem;
}

.gp-assist__chips button {
  margin: 0;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(15, 24, 80, 0.18);
  border-radius: 999px;
  background: #fff;
  color: #0f1850;
  cursor: pointer;
  font: 600 0.78rem/1.2 "DM Sans", sans-serif;
}

.gp-assist__chips button:hover,
.gp-assist__chips button:focus-visible {
  border-color: #0f1850;
  background: #fff8dc;
}

.gp-assist__form {
  display: flex;
  gap: 0.45rem;
  padding: 0.7rem 0.75rem 0.8rem;
  border-top: 1px solid rgba(15, 24, 80, 0.1);
}

.gp-assist__form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  margin: 0;
  padding: 0 0.75rem;
  border: 1px solid rgba(15, 24, 80, 0.18);
  border-radius: 10px;
  background: #fff;
  color: #1c2430;
  font: 500 0.92rem/1 "DM Sans", sans-serif;
}

.gp-assist__form button {
  flex: 0 0 auto;
  height: 42px;
  margin: 0;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 10px;
  background: #fdcf33;
  color: #081041;
  cursor: pointer;
  font: 700 0.88rem/1 "DM Sans", sans-serif;
}

.gp-assist__form button:hover {
  filter: brightness(0.96);
}

@media (max-width: 640px) {
  .gp-assist {
    right: 0.85rem;
    bottom: 5.35rem;
  }

  .gp-assist__launch-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .gp-assist__launch {
    width: 56px;
    padding: 0;
    justify-content: center;
  }
}
