.gb-chat-launch {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  padding: 8px 16px 8px 9px;
  border: 1px solid #425a49;
  border-radius: 999px;
  background: #1d3326;
  color: #fff;
  box-shadow:
    0 3px 8px #172a1c14,
    0 12px 32px #172a1c29;
  font:
    500 13px/1.2 system-ui,
    sans-serif;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 180ms ease;
}
.gb-chat-launch-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid #ffffff26;
  border-radius: 50%;
  background: #ffffff0d;
  color: #e2ecdb;
  font:
    500 12px/1 Georgia,
    serif;
  letter-spacing: -1px;
}
.gb-chat-launch > svg {
  width: 17px;
  height: 17px;
  margin-left: 3px;
  color: #bdcdb6;
}
#gb-assistant {
  width: min(580px, calc(100vw - 32px));
  height: min(790px, calc(100dvh - 48px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #d8e1d5;
  border-radius: 28px;
  background: #f7f9f4;
  color: #1e3024;
  box-shadow:
    0 2px 5px #0b1f1512,
    0 24px 80px #0b1f1529,
    0 50px 140px #0b1f151a;
  font:
    400 14px/1.55 system-ui,
    sans-serif;
  overscroll-behavior: contain;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 180ms ease,
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
  -webkit-font-smoothing: antialiased;
}
#gb-assistant[open] {
  display: flex;
  flex-direction: column;
}
#gb-assistant.is-entering,
#gb-assistant.is-closing {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
}
#gb-assistant.is-closing {
  transition-duration: 140ms;
  pointer-events: none;
}
#gb-assistant::backdrop {
  background: #14231b80;
  backdrop-filter: blur(7px);
  transition:
    background-color 180ms ease,
    backdrop-filter 180ms ease;
}
#gb-assistant.is-entering::backdrop,
#gb-assistant.is-closing::backdrop {
  background: #14231b00;
  backdrop-filter: blur(0);
}
#gb-assistant .gb-chat-header {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 23px 24px 21px;
  border: 0;
  border-bottom: 1px solid #dce4d7;
  background: #fbfcf8;
}
.gb-chat-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.gb-chat-monogram {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #344d3a;
  border-radius: 14px;
  background: #233d2c;
  color: #f1f6eb;
  font:
    400 18px/1 Georgia,
    serif;
  letter-spacing: -1.5px;
  box-shadow:
    inset 0 1px 0 #ffffff17,
    0 2px 4px #213b2b12;
}
#gb-assistant .gb-chat-brand small {
  display: block;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.8px;
  line-height: 1.5;
}
.gb-chat-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  color: #53644d;
  font-size: 11px;
}
.gb-chat-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #67835b;
}
#gb-chat-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 11px;
  border: 1px solid #e0e6da;
  border-radius: 50%;
  background: #f4f6ef;
  color: #41523b;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    transform 150ms ease;
}
#gb-chat-close svg {
  width: 20px;
  height: 20px;
}
.gb-chat-heading {
  flex: 0 0 100%;
}
#gb-assistant h2 {
  margin: 0;
  color: #1e3024;
  font:
    550 26px/1.15 system-ui,
    sans-serif;
  letter-spacing: -1px;
  text-wrap: balance;
}
#gb-chat-subtitle {
  margin: 7px 0 0;
  color: #596651;
  font-size: 12px;
  line-height: 1.5;
}
.gb-chat-viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  overflow-anchor: none;
  scrollbar-width: thin;
  scrollbar-color: #b7c6ad transparent;
  padding: 21px 24px;
  background: radial-gradient(ellipse at 0 0, #eaf0e333, transparent 70%), #f7f9f4;
}
#gb-chat-history {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-height: 0;
  margin: 0;
  outline-offset: 5px;
}
.gb-chat-message {
  width: fit-content;
  max-width: 94%;
  animation: gb-chat-message-enter 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.gb-chat-message-author {
  display: block;
  margin: 0 0 5px 3px;
  color: #62715b;
  font-size: 10px;
  line-height: 1.5;
}
#gb-chat-history .gb-chat-message p {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #e0e7d9;
  border-radius: 4px 18px 18px 18px;
  background: #fff;
  box-shadow: 0 2px 3px #213b2b03;
  color: #2b3d2c;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    400 13px/1.65 system-ui,
    sans-serif;
  text-wrap: pretty;
}
.gb-chat-customer {
  align-self: flex-end;
  max-width: 86%;
}
.gb-chat-customer .gb-chat-message-author {
  text-align: right;
  margin-right: 3px;
}
#gb-chat-history .gb-chat-customer p {
  border-color: #294932;
  border-radius: 18px 4px 18px 18px;
  background: #294932;
  color: #fff;
}
.gb-chat-options-caption {
  margin: 22px 0 9px;
  color: #5a6952;
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.2px;
}
#gb-chat-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
#gb-chat-options:empty {
  display: none;
}
#gb-chat-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid #d6e0cf;
  border-radius: 12px;
  background: #fff;
  color: #2c452f;
  text-align: left;
  font:
    500 11px/1.4 system-ui,
    sans-serif;
  cursor: pointer;
  box-shadow: 0 1px 2px #213b2b03;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
  animation: gb-chat-option-enter 240ms ease both;
}
#gb-chat-options button:nth-child(2) {
  animation-delay: 20ms;
}
#gb-chat-options button:nth-child(3) {
  animation-delay: 40ms;
}
#gb-chat-options button:nth-child(4) {
  animation-delay: 60ms;
}
#gb-chat-options button:nth-child(n + 5) {
  animation-delay: 80ms;
}
#gb-chat-options .gb-chat-service {
  min-height: 82px;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: #fdfefa;
}
.gb-chat-service-icon {
  display: grid;
  place-items: center;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  border: 1px solid #e0e7d9;
  border-radius: 8px;
  background: #edf2e7;
  color: #3d5c36;
}
.gb-chat-service-icon svg {
  width: 18px;
  height: 18px;
}
.gb-chat-option-label {
  flex: 1;
  min-width: 0;
}
.gb-chat-service .gb-chat-option-label {
  flex-basis: calc(100% - 43px);
  padding-top: 1px;
}
.gb-chat-option-label > span {
  display: block;
  text-wrap: balance;
}
.gb-chat-option-label small {
  display: block;
  margin-top: 4px;
  color: #617255;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  text-wrap: pretty;
}
.gb-chat-option-arrow {
  display: grid;
  flex: 0 0 13px;
  place-items: center;
  width: 13px;
  color: #73866a;
}
.gb-chat-option-arrow svg {
  width: 13px;
  height: 13px;
}
.gb-chat-service .gb-chat-option-arrow {
  display: none;
}
.gb-chat-typing {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 3px;
  animation: gb-chat-message-enter 180ms ease both;
}
.gb-chat-typing-mark {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid #dce5d4;
  border-radius: 50%;
  background: #edf2e7;
  color: #4a6542;
  font:
    400 9px/1 Georgia,
    serif;
  letter-spacing: -0.6px;
}
.gb-chat-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #e0e7d9;
  border-radius: 5px 13px 13px 13px;
  background: #fff;
}
.gb-chat-typing-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #5d7752;
  animation: gb-chat-typing-pulse 1.1s ease-in-out infinite;
}
.gb-chat-typing-dots i:nth-child(2) {
  animation-delay: 140ms;
}
.gb-chat-typing-dots i:nth-child(3) {
  animation-delay: 280ms;
}
.gb-chat-composer {
  flex: 0 0 auto;
  padding: 15px 24px 17px;
  border-top: 1px solid #dce4d7;
  background: #fbfcf8;
}
#gb-chat-form {
  margin: 0;
  padding: 0;
}
#gb-chat-form label {
  display: block;
  margin-bottom: 6px;
  color: #52634a;
  font-size: 10px;
  font-weight: 550;
}
.gb-chat-input-wrap {
  display: flex;
  gap: 5px;
  padding: 5px;
  border: 1px solid #cdd9c5;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 1px 3px #213b2b03;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}
.gb-chat-input-wrap:focus-within {
  border-color: #6e8a5d;
  box-shadow: 0 0 0 3px #799c5b1a;
}
#gb-chat-input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 9px 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #243a29;
  font:
    400 14px/1.4 system-ui,
    sans-serif;
}
#gb-chat-input::placeholder {
  color: #72826b;
  opacity: 1;
}
#gb-chat-form button {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 82px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #294932;
  border-radius: 10px;
  background: #294932;
  color: #fff;
  font:
    500 11px/1.4 system-ui,
    sans-serif;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    transform 150ms ease,
    opacity 150ms ease;
}
#gb-chat-form button svg {
  width: 15px;
  height: 15px;
}
#gb-chat-human {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  margin: 12px 0 0;
  padding: 9px 10px;
  border: 1px solid #dce5d5;
  border-radius: 14px;
  background: #f2f5ed;
  color: #49623d;
  font-size: 10px;
  line-height: 1.4;
  text-decoration: none;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}
.gb-chat-human-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: #4d7140;
}
.gb-chat-human-icon svg {
  width: 22px;
  height: 22px;
}
#gb-chat-human > span:nth-child(2) {
  flex: 1;
}
#gb-chat-human small {
  display: block;
  margin-top: 2px;
  color: #294b2d;
  font-size: 11px;
  font-weight: 600;
}
#gb-chat-human > svg {
  width: 16px;
  height: 16px;
  margin-right: 2px;
}
#gb-chat-human.is-recommended {
  border-color: #9eb98f;
  background: #eaf1e2;
}
.gb-chat-notice {
  margin: 10px 1px 0;
  color: #67755d;
  font-size: 9px;
  line-height: 1.5;
  text-wrap: pretty;
}
#gb-assistant :focus-visible,
.gb-chat-launch:focus-visible {
  outline: 3px solid #668753;
  outline-offset: 3px;
}
#gb-chat-input:focus-visible {
  outline-width: 2px;
  outline-offset: -2px;
}
#gb-assistant button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.gb-chat-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (hover: hover) {
  .gb-chat-launch:hover {
    background: #294932;
    box-shadow:
      0 4px 10px #172a1c1a,
      0 16px 36px #172a1c33;
    transform: translateY(-2px);
  }
  #gb-chat-close:hover {
    background: #eaf0e2;
  }
  #gb-chat-options button:hover:not(:disabled) {
    border-color: #94ac83;
    background: #f2f6ec;
    box-shadow: 0 3px 8px #213b2b0a;
    transform: translateY(-1px);
  }
  #gb-chat-form button:hover:not(:disabled) {
    background: #355f40;
  }
  #gb-chat-human:hover {
    border-color: #a8bd9a;
    background: #eaf1e2;
  }
}
.gb-chat-launch:active,
#gb-chat-close:active,
#gb-chat-options button:active:not(:disabled),
#gb-chat-form button:active:not(:disabled) {
  transform: scale(0.98);
}
@keyframes gb-chat-message-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes gb-chat-option-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes gb-chat-typing-pulse {
  0%,
  70%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  35% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
@media (max-width: 600px) {
  .gb-chat-launch {
    right: 16px;
    bottom: 84px;
    min-height: 50px;
    gap: 8px;
    padding-right: 14px;
    font-size: 12px;
  }
  .gb-chat-launch-mark {
    width: 32px;
    height: 32px;
  }
  #gb-assistant {
    width: calc(100vw - 16px);
    height: min(820px, calc(100dvh - 16px));
    max-height: calc(100dvh - 16px);
    border-radius: 24px;
  }
  #gb-assistant .gb-chat-header {
    gap: 16px;
    padding: 18px 18px 17px;
  }
  #gb-assistant h2 {
    max-width: 280px;
    font-size: 24px;
  }
  .gb-chat-viewport {
    padding: 18px 16px;
  }
  .gb-chat-message {
    max-width: 97%;
  }
  #gb-chat-history .gb-chat-message p {
    padding: 12px 13px;
    font-size: 13px;
  }
  #gb-chat-options {
    gap: 7px;
  }
  #gb-chat-options button {
    padding: 10px;
  }
  #gb-chat-options .gb-chat-service {
    min-height: 105px;
    gap: 7px;
  }
  .gb-chat-service .gb-chat-option-label {
    flex: 1 1 100%;
  }
  .gb-chat-composer {
    padding: 12px 16px max(14px, env(safe-area-inset-bottom));
  }
  #gb-chat-input {
    font-size: 16px;
  }
  #gb-chat-form button {
    min-width: 72px;
    gap: 5px;
    padding: 0 10px;
  }
  #gb-chat-human {
    margin-top: 10px;
  }
  .gb-chat-notice {
    font-size: 9px;
  }
}
@media (max-height: 560px) and (min-width: 601px) {
  #gb-assistant .gb-chat-header {
    gap: 10px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .gb-chat-heading h2 {
    font-size: 22px;
  }
  .gb-chat-composer {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .gb-chat-notice {
    margin-top: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gb-chat-launch,
  #gb-assistant,
  #gb-assistant *,
  #gb-assistant::backdrop {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    scroll-behavior: auto !important;
  }
  .gb-chat-typing-dots i {
    opacity: 0.65;
  }
  #gb-assistant::backdrop {
    backdrop-filter: none;
  }
}
@media (max-height: 600px) {
  #gb-assistant .gb-chat-header {
    gap: 9px;
    padding: 12px 16px;
  }
  #gb-assistant .gb-chat-heading h2 {
    font-size: 19px;
  }
  #gb-chat-subtitle {
    display: none;
  }
  .gb-chat-composer {
    padding: 10px 16px;
  }
  .gb-chat-notice {
    line-height: 1.35;
  }
  #gb-chat-human {
    min-height: 42px;
    margin-top: 7px;
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .gb-chat-viewport {
    min-height: 65px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

/* Espera em três tempos: esqueleto da resposta (1–10 s) e progresso com tempo restante (>10 s) */
.gb-chat-skeleton {
  flex-wrap: wrap;
  align-items: flex-start;
}
.gb-chat-skeleton-lines {
  display: grid;
  gap: 7px;
  width: min(260px, 72%);
  padding: 12px 14px;
  border: 1px solid #e0e7d9;
  border-radius: 5px 13px 13px 13px;
  background: #fff;
}
.gb-chat-skeleton-lines i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #edf2e7 0%, #f7faf4 50%, #edf2e7 100%) 0 0 / 200% 100%;
  animation: gb-chat-skeleton 1.4s ease-in-out infinite;
}
.gb-chat-skeleton-lines i:nth-child(2) {
  width: 86%;
}
.gb-chat-skeleton-lines i:nth-child(3) {
  width: 58%;
}
@keyframes gb-chat-skeleton {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}
.gb-chat-progress {
  display: grid;
  gap: 6px;
  flex: 1 0 100%;
  margin-left: 33px;
  max-width: 260px;
  font-size: 12px;
  color: #4a5d44;
}
.gb-chat-progress-label {
  font-weight: 600;
}
.gb-chat-progress-track {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #edf2e7;
  overflow: hidden;
}
.gb-chat-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #4a6542;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 900ms linear;
}
@media (prefers-reduced-motion: reduce) {
  .gb-chat-skeleton-lines i {
    animation: none;
  }
  .gb-chat-progress-track i {
    transition: none;
  }
}
