.customer-support-chat {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 1200;
  font: inherit;
  color: #17231e;
}
.customer-support-chat__toggle {
  min-height: 3rem;
  padding: .7rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: #174f3a;
  color: #fff;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 4px 18px #10251e44;
  cursor: pointer;
}
.customer-support-chat__toggle span {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-right: .35rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.customer-support-chat__panel {
  position: absolute;
  right: 0;
  bottom: 3.8rem;
  display: flex;
  flex-direction: column;
  width: min(22rem, calc(100vw - 2rem));
  max-height: min(36rem, calc(100vh - 6rem));
  padding: 1rem;
  border: 1px solid #d5dfd8;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 40px #10251e33;
}
.customer-support-chat__panel[hidden] { display: none; }
.customer-support-chat__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
}
.customer-support-chat__header h2 { margin: 0; font-size: 1.2rem; }
.customer-support-chat__eyebrow {
  margin: 0 0 .2rem;
  color: #476b5a;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.customer-support-chat__close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.5rem;
  cursor: pointer;
}
.customer-support-chat__notice,
.customer-support-chat__privacy,
.customer-support-chat__status {
  font-size: .82rem;
  line-height: 1.4;
}
.customer-support-chat__notice {
  padding: .65rem;
  border-radius: .5rem;
  background: #f2f6f3;
}
.customer-support-chat__messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .55rem;
  min-height: 8rem;
  max-height: 18rem;
  margin: 0;
  padding: .25rem .15rem;
  overflow-y: auto;
  list-style: none;
}
.customer-support-chat__message {
  max-width: 92%;
  padding: .65rem .75rem;
  border-radius: .75rem;
  font-size: .92rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.customer-support-chat__message--assistant {
  align-self: flex-start;
  background: #f0f3f1;
}
.customer-support-chat__message--user {
  align-self: flex-end;
  background: #174f3a;
  color: #fff;
}
.customer-support-chat__form {
  display: flex;
  align-items: end;
  gap: .5rem;
  margin-top: .65rem;
}
.customer-support-chat__form .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.customer-support-chat__form textarea {
  flex: 1;
  min-width: 0;
  resize: vertical;
  padding: .65rem;
  border: 1px solid #aebbb2;
  border-radius: .5rem;
  font: inherit;
}
.customer-support-chat__form button {
  min-height: 2.75rem;
  padding: .6rem .9rem;
  border: 0;
  border-radius: .5rem;
  background: #174f3a;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.customer-support-chat__form button:disabled { opacity: .55; cursor: wait; }
.customer-support-chat__privacy { margin-bottom: 0; }
.customer-support-chat__privacy a { color: #174f3a; font-weight: 700; }
.customer-support-chat__status[hidden] { display: none; }
@media (max-width: 480px) {
  .customer-support-chat { right: .65rem; bottom: max(.65rem, env(safe-area-inset-bottom)); }
  .customer-support-chat__panel { right: -.1rem; width: min(21rem, calc(100vw - 1.3rem)); }
}

