.help-chat[hidden],
.help-chat-panel[hidden],
.help-chat-launcher[hidden],
a.whatsapp-chat[hidden] {
  display: none;
}

.help-chat {
  position: fixed;
  z-index: 6;
  inset-inline-end: max(1rem, env(safe-area-inset-right));
  inset-block-end: max(1rem, env(safe-area-inset-bottom));
  display: grid;
  justify-items: end;
  gap: .65rem;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
  font-size: .9375rem;
  color: #172a39;
}

.help-chat > * { pointer-events: auto; }

.help-chat-launcher,
.help-chat-header {
  background: #123648;
  color: white;
}

.help-chat-launcher {
  min-height: 44px;
  border: 1px solid white;
  border-radius: 2rem;
  padding: .55rem 1rem;
  box-shadow: 0 4px 12px #101e3130;
}

.help-chat button {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.help-chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - max(1rem, env(safe-area-inset-top)) - max(1rem, env(safe-area-inset-bottom)));
  border: 1px solid #ced8dd;
  border-radius: 1rem;
  background: white;
  box-shadow: 0 8px 30px #101e3133;
  overflow: hidden;
}

.help-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: .9rem .35rem;
}

.help-chat-header h2 {
  margin: 0;
  color: inherit;
  font: inherit;
  font-weight: 700;
}

.help-chat-header button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.4rem;
}

.help-chat-body {
  display: grid;
  gap: .5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: .75rem;
}

.help-chat-message {
  width: fit-content;
  margin: 0;
  padding: .55rem .75rem;
  border-radius: .3rem .75rem .75rem .75rem;
  background: #edf3f5;
}

.help-chat-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4rem;
}

.help-chat-topics button {
  min-height: 44px;
  border: 1px solid #9eb5bf;
  border-radius: .5rem;
  padding: .3rem .55rem;
  background: white;
  color: #123648;
  font-size: .875rem;
}

.help-chat-topics button:hover { background: #edf3f5; }

.help-chat-reply:empty { display: none; }

.help-chat-reply a { display: inline-block; margin-top: .45rem; }

.help-chat a {
  color: #104e5b;
  text-decoration: underline;
  text-underline-offset: .16em;
}

@media print {
  .help-chat { display: none; }
}

.help-chat-form label {
  display: block;
  margin-bottom: .3rem;
  font-weight: 700;
}

.help-chat-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .4rem;
}

.help-chat-form input,
.help-chat-form button {
  min-height: 44px;
  border: 1px solid #9eb5bf;
  border-radius: .5rem;
  padding: .35rem .55rem;
}

.help-chat-form input { min-width: 0; font: inherit; font-size: 1rem; }
.help-chat-form button { background: #123648; color: white; }
