/* The support window is shared by the storefront, articles and account screens. */
.rc-chat-launch, dialog.rc-chat {
  --rc-text: #f6f3ff;
  --rc-muted: #c7bfd8;
  --rc-lilac: #d2bdff;
  --rc-edge: clamp(12px, 2vw, 26px);
  font-family: Manrope, system-ui, sans-serif;
  color: var(--rc-text);
  color-scheme: dark;
  text-align: left;
  box-sizing: border-box;
}
.rc-chat-launch {
  position: fixed;
  bottom: max(var(--rc-edge), env(safe-area-inset-bottom));
  left: max(var(--rc-edge), env(safe-area-inset-left));
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 19px 0 15px;
  margin: 0;
  border: 1px solid #aa81f4;
  border-radius: 17px 17px 17px 6px;
  background: linear-gradient(125deg, #7042b4, #462a70 80%);
  color: #fff;
  box-shadow: 0 5px 24px #08021770, inset 0 1px 0 #ffffff20;
  font-size: 14px;
  line-height: 1;
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}
.rc-chat-launch > svg { width: 22px; height: 22px; }
.rc-chat-launch--unread::after {
  content: "";
  position: absolute;
  inset: -3px -3px auto auto;
  width: 12px;
  height: 12px;
  border: 2px solid #241336;
  border-radius: 50%;
  background: #b9ffd9;
}
dialog.rc-chat {
  position: fixed;
  --rc-bottom: max(var(--rc-edge), env(safe-area-inset-bottom));
  inset: auto auto calc(var(--rc-bottom) + var(--rc-keyboard, 0px)) max(var(--rc-edge), env(safe-area-inset-left));
  width: min(410px, calc(100vw - var(--rc-edge) * 2));
  max-width: none;
  height: min(575px, calc(100vh - var(--rc-edge) - var(--rc-bottom)));
  height: min(575px, calc(var(--rc-visible, 100dvh) - var(--rc-edge) - var(--rc-bottom)));
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #776086;
  border-radius: 23px;
  background: #171021;
  box-shadow: 0 20px 75px #0703119c;
  line-height: 1.5;
  font-size: 14px;
  font-weight: 450;
}
dialog.rc-chat[open] { display: flex; flex-direction: column; }
.rc-chat::backdrop { background: #09041754; }
.rc-chat *, .rc-chat *::after, .rc-chat *::before { box-sizing: border-box; }
.rc-chat [hidden], [data-open-support-chat][hidden] { display: none !important; }
.rc-chat button, .rc-chat textarea { font-family: inherit; font-size: inherit; }
.rc-chat button { cursor: pointer; }
.rc-chat button:disabled { cursor: default; }
.rc-chat a { color: var(--rc-lilac); }
.rc-chat-launch:focus-visible, .rc-chat :is(a, button, textarea):focus-visible {
  outline: 2px solid #e2ceff;
  outline-offset: 2px;
}
.rc-chat .rc-chat__head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 15px 13px 15px 18px;
  border-bottom: 1px solid #513660;
  background: radial-gradient(ellipse at top left, #56356c 0%, transparent 71%), #24182f;
}
.rc-chat__brand {
  flex: 0 0 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #a27db770;
  border-radius: 13px;
  background: #21112e;
}
.rc-chat__brand img { width: 32px; height: 32px; margin: 0; max-width: none; }
.rc-chat__identity { flex: 1; min-width: 0; margin: 0 3px 0 6px; }
.rc-chat__identity strong { display: block; font-size: 16px; line-height: 1.3; color: #fff; font-weight: 760; }
.rc-chat__identity span { display: block; margin-top: 3px; font-size: 11px; line-height: 1.4; color: #d4c0e0; }
.rc-chat .rc-chat__icon {
  flex: 0 0 35px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #e0d3ea;
}
.rc-chat .rc-chat__icon:disabled { opacity: .35; }
.rc-chat__scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #5b4571 transparent;
  scrollbar-width: thin;
  background: radial-gradient(ellipse at 92% 0%, #35213f88 0, transparent 62%), #171021;
}
.rc-chat__welcome { margin: 0; padding: clamp(20px, 4vh, 34px) 22px 20px; }
.rc-chat .rc-chat__welcome h2 {
  margin: 0 0 7px;
  color: #fff;
  font: 740 28px/1.15 Manrope, system-ui, sans-serif;
  letter-spacing: -.05em;
}
.rc-chat .rc-chat__welcome p { margin: 0; max-width: 34ch; color: var(--rc-muted); font-size: 14px; line-height: 1.58; }
.rc-chat__suggestions { display: grid; gap: 8px; margin-top: 20px; }
.rc-chat__suggestions button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 43px;
  padding: 9px 12px;
  border: 1px solid #4c3a5b;
  border-radius: 11px;
  background: #2b2035;
  color: #f0e7f7;
  text-align: left;
  font-weight: 580;
  line-height: 1.4;
}
.rc-chat__suggestions svg { flex: none; width: 15px; color: #c3a2eb; transition: transform .16s ease; }
.rc-chat__log:not(:empty) { padding: 20px 18px 22px; }
.rc-chat__turn + .rc-chat__turn { margin-top: 23px; }
.rc-chat__question {
  display: table;
  max-width: 92%;
  margin-left: auto;
  padding: 9px 14px;
  border: 1px solid #75588f;
  border-radius: 14px 14px 3px 14px;
  background: #4b3363;
  color: #fff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.rc-chat__who { display: block; margin: 15px 0 5px; color: #cfb2f0; font-size: 11px; font-weight: 700; }
.rc-chat__answer { color: #ede7f2; line-height: 1.63; overflow-wrap: anywhere; }
.rc-chat__answer p, .rc-chat__answer :is(ol, ul) { margin: 0 0 .65em; color: inherit; font-size: inherit; line-height: inherit; }
.rc-chat__answer :last-child { margin-bottom: 0; }
.rc-chat__answer :is(ol, ul) { padding-left: 1.6em; }
.rc-chat__answer li { padding: 0; margin: .15em 0; }
.rc-chat__answer a, .rc-chat__foot a { text-decoration: underline; text-underline-offset: 3px; }
.rc-chat__answer code { padding: 1px 4px; border-radius: 4px; background: #372b42; color: #f4dcff; font-size: .92em; }
.rc-chat__pending { color: var(--rc-muted); }
.rc-chat__pending::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #bf98f2;
}
.rc-chat .rc-chat__retry, .rc-chat__confirm button {
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid #705285;
  border-radius: 8px;
  background: #362541;
  color: #edddff;
  font-size: 13px;
  font-weight: 650;
}
.rc-chat__confirm { padding: 12px 18px; border-bottom: 1px solid #634775; background: #30203b; }
.rc-chat__confirm strong, .rc-chat__confirm span { display: block; }
.rc-chat__confirm span { margin: 2px 0 7px; color: var(--rc-muted); font-size: 12px; }
.rc-chat .rc-chat__form { flex: 0 0 auto; display: block; margin: 0; padding: 10px 14px 12px; border: 0; border-top: 1px solid #3a2c45; background: #201728; }
.rc-chat__field {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 7px;
  border: 1px solid #655173;
  border-radius: 14px;
  background: #18111f;
}
.rc-chat__field:focus-within { border-color: #b18ad6; }
.rc-chat .rc-chat__field textarea {
  flex: 1;
  min-width: 0;
  width: auto;
  height: 44px;
  min-height: 0;
  margin: 0;
  padding: 4px 5px;
  border: 0;
  border-radius: 0;
  outline: 0;
  resize: none;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font: 450 16px/1.4 Manrope, system-ui, sans-serif;
}
.rc-chat__field textarea::placeholder { color: #ad9bb8; opacity: 1; }
.rc-chat .rc-chat__send {
  flex: 0 0 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #d7b7ff;
  color: #291437;
}
.rc-chat .rc-chat__send:disabled { background: #392b43; color: #ae9bb9; }
.rc-chat__foot { display: flex; justify-content: space-between; gap: 8px; margin: 8px 2px 0; }
.rc-chat__foot a { color: #c9b4da; font-size: 11px; line-height: 1.4; text-decoration-color: #776285; }
@media (hover: hover) {
  .rc-chat-launch:hover { transform: translateY(-2px); border-color: #e2bfff; }
  .rc-chat .rc-chat__icon:enabled:hover, .rc-chat__suggestions button:hover { background: #3b2b49; }
  .rc-chat__suggestions button:hover svg { transform: translateX(2px); }
  .rc-chat .rc-chat__send:enabled:hover { background: #e6ccff; }
  .rc-chat a:hover { color: white; }
}
@media (max-width: 520px) {
  .rc-chat-launch { min-width: 48px; padding: 0; }
  .rc-chat-launch > span { display: none; }
  dialog.rc-chat { --rc-edge: 8px; width: calc(100% - var(--rc-edge) * 2); border-radius: 18px; }
  .rc-chat .rc-chat__head { padding: 12px; }
  .rc-chat__welcome { padding: 22px 17px; }
  .rc-chat__log:not(:empty) { padding: 16px; }
}
@media (max-height: 470px) {
  .rc-chat .rc-chat__head { padding-top: 6px; padding-bottom: 6px; }
  .rc-chat .rc-chat__form { padding-top: 6px; padding-bottom: 6px; }
  .rc-chat__welcome { padding-top: 13px; }
}
@media (prefers-reduced-motion: no-preference) {
  dialog.rc-chat[open] { animation: rc-chat-open .18s ease-out; }
  .rc-chat__pending::before { animation: rc-chat-wait 1.2s ease-in-out infinite alternate; }
  @keyframes rc-chat-open { from { opacity: 0; transform: translateY(7px); } }
  @keyframes rc-chat-wait { to { opacity: .35; } }
}
@media (prefers-reduced-motion: reduce) {
  .rc-chat-launch, .rc-chat__suggestions svg { transition: none; }
}
@media print { .rc-chat-launch, dialog.rc-chat, [data-open-support-chat] { display: none !important; } }
