/* FORMA host: own mobile shade, Manrope, modal stacking, light composer. */
.support-chat-modal,
.sc-launcher,
#formaSupportShade {
  font-family: Manrope, Inter, system-ui, sans-serif;
}
#formaSupportShade {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  width: 100%;
  box-sizing: border-box;
  background: rgba(18, 14, 28, 0.46);
  height: var(--sc-height, 100dvh);
  top: var(--sc-top, 0px);
  bottom: auto;
}
#formaSupportShade[hidden] { display: none !important; }
#formaSupportShade .modal.support-chat-modal {
  position: relative;
  height: min(860px, calc(var(--sc-height, 100dvh) - 16px));
  max-height: calc(var(--sc-height, 100dvh) - 16px);
  width: 100%;
  max-width: 480px;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  color: #292633;
  box-shadow: 0 18px 60px #0004;
}
#formaSupportShade .support-chat-modal .sc-close,
.support-chat-modal .sc-close {
  position: absolute;
  width: 44px;
  height: 44px;
  right: 9px;
  top: 16px;
  z-index: 4;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: #80798b;
  border: 0;
  border-radius: 12px;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}
.support-chat-modal button {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  color: inherit;
}
.support-chat-modal .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sc-loading,
.sc-history-error {
  font-size: 13px;
  line-height: 1.6;
  color: #8a8098;
  margin: 16px 0;
  text-align: center;
}
.sc-history-error { color: #a0526d; }
body.sc-mobile-lock {
  overflow: hidden;
  touch-action: none;
}
html.sc-chat-under-modal .sc-docked,
html.sc-chat-under-modal .sc-launcher {
  pointer-events: none;
}
html.sc-chat-under-modal .sc-docked {
  filter: saturate(0.85);
}

/* Dark site skin paints every textarea #141416. Keep the chat field lilac. */
html body.forma-ui .support-chat-modal,
html body.fw36 .support-chat-modal {
  color-scheme: light;
}
html body.forma-ui .support-chat-modal .sc-composer,
html body.fw36 .support-chat-modal .sc-composer {
  background: #f4f1f8 !important;
  color: #3c334c !important;
  border: 0 !important;
  border-radius: 20px !important;
  box-shadow: 0 5px 24px #38225b15, 0 1px 4px #38225b08 !important;
}
html body.forma-ui .support-chat-modal .sc-composer:focus-within,
html body.fw36 .support-chat-modal .sc-composer:focus-within {
  background: #f0ecf7 !important;
}
html body.forma-ui .support-chat-modal .sc-composer textarea,
html body.fw36 .support-chat-modal .sc-composer textarea,
html body.forma-ui .support-chat-modal #supportMessage,
html body.fw36 .support-chat-modal #supportMessage {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #3c334c !important;
  caret-color: #6b4eff;
  box-shadow: none !important;
  font-family: Manrope, Inter, system-ui, sans-serif !important;
  font-size: 16px !important;
  line-height: 22px !important;
  -webkit-text-fill-color: #3c334c;
}
html body.forma-ui .support-chat-modal .sc-composer textarea::placeholder,
html body.fw36 .support-chat-modal .sc-composer textarea::placeholder {
  color: #b0a7bc !important;
  -webkit-text-fill-color: #b0a7bc;
  opacity: 1;
}

@media (min-width: 700px) {
  #formaSupportShade { padding: 24px; }
  #formaSupportShade .modal.support-chat-modal {
    height: min(780px, calc(var(--sc-height, 100dvh) - 48px));
    max-height: calc(var(--sc-height, 100dvh) - 48px);
  }
}
@media (min-width: 900px) {
  #formaSupportShade { display: none !important; }
}
@media (max-width: 899px) {
  .sc-docked,
  .sc-launcher { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-launcher:active { transform: none; }
}
