#cataldexLiveChat {
  --live-chat-bottom: max(18px, env(safe-area-inset-bottom));
  --live-chat-black: #090b0e;
  --live-chat-carbon: #101318;
  --live-chat-raised: #171b21;
  --live-chat-line: #303740;
  --live-chat-ivory: #f2f0e9;
  --live-chat-muted: #a9adb4;
  --live-chat-dim: #737983;
  --live-chat-red: #f0443e;
  --live-chat-red-dark: #b72e2a;
  --live-chat-green: #3bd28b;
  --live-chat-cyan: #4fc1e8;
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: var(--live-chat-bottom);
  z-index: 1200;
  color: var(--live-chat-ivory);
  font-family: "Cataldex Sans", Arial, sans-serif;
  letter-spacing: 0;
  pointer-events: none;
}

#cataldexLiveChat *,
#cataldexLiveChat *::before,
#cataldexLiveChat *::after {
  box-sizing: border-box;
}

#liveChatLauncher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 7px 16px 7px 8px;
  color: var(--live-chat-ivory);
  background: rgba(16, 19, 24, .98);
  border: 1px solid #3d4650;
  border-top: 2px solid var(--live-chat-red);
  border-radius: 3px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .46);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease,
    opacity 160ms ease;
}

#liveChatLauncher:hover {
  border-color: #59636e;
  border-top-color: #ff5a54;
  box-shadow: 0 21px 58px rgba(0, 0, 0, .54);
  transform: translateY(-2px);
}

#liveChatLauncher > img,
#liveChatLauncher .live-chat-launcher-mark,
#liveChatLauncher .live-chat-brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  object-fit: contain;
}

#liveChatLauncher > span:not(#liveChatUnread),
#liveChatLauncher .live-chat-launcher-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  text-align: left;
}

#liveChatLauncher .live-chat-launcher-mark {
  display: grid;
  min-width: 40px;
  padding: 2px;
  place-items: center;
}

#liveChatLauncher .live-chat-launcher-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#liveChatLauncher strong {
  color: #fff;
  font: 600 18px/.9 "Cataldex Display", "Arial Narrow", sans-serif;
  letter-spacing: .035em;
  text-transform: uppercase;
}

#liveChatLauncher small {
  color: var(--live-chat-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#liveChatLauncher small::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  background: var(--live-chat-green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(59, 210, 139, .12);
  vertical-align: 1px;
}

#liveChatUnread {
  position: absolute;
  top: -8px;
  right: -7px;
  display: grid;
  min-width: 24px;
  height: 24px;
  padding-inline: 6px;
  place-items: center;
  color: #fff;
  background: var(--live-chat-red);
  border: 2px solid var(--live-chat-black);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

#liveChatUnread[hidden] {
  display: none;
}

#cataldexLiveChat.is-open #liveChatLauncher {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(.97);
}

#liveChatPanel {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  width: min(410px, calc(100vw - 36px));
  height: min(650px, calc(100dvh - 36px));
  min-height: 440px;
  overflow: hidden;
  flex-direction: column;
  color: var(--live-chat-ivory);
  background: var(--live-chat-black);
  border: 1px solid #3c4650;
  border-top: 4px solid var(--live-chat-red);
  border-radius: 4px;
  box-shadow: 0 28px 88px rgba(0, 0, 0, .68);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px) scale(.985);
  transform-origin: right bottom;
  transition: opacity 170ms ease, transform 170ms ease, visibility 170ms ease;
}

#cataldexLiveChat.is-open #liveChatPanel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

#liveChatPanel > header,
#liveChatPanel .live-chat-header {
  position: relative;
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  color: #fff;
  background: #11171d;
  border-bottom: 1px solid var(--live-chat-line);
}

#liveChatPanel > header::after,
#liveChatPanel .live-chat-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--live-chat-red), transparent 56%);
  content: "";
}

#liveChatPanel > header img,
#liveChatPanel .live-chat-header img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
}

#liveChatPanel > header > div,
#liveChatPanel .live-chat-header-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

#liveChatPanel .live-chat-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

#liveChatPanel .live-chat-brand > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

#liveChatPanel > header strong,
#liveChatPanel .live-chat-header-copy strong,
#liveChatPanel .live-chat-brand b {
  overflow: hidden;
  color: #fff;
  font: 600 21px/.9 "Cataldex Display", "Arial Narrow", sans-serif;
  letter-spacing: .03em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

#liveChatPanel > header small,
#liveChatPanel .live-chat-header-copy small,
#liveChatPanel .live-chat-brand small {
  overflow: hidden;
  color: #9da6ae;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .07em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

#liveChatPanel .live-chat-brand small i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  background: var(--live-chat-green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(59, 210, 139, .12);
  vertical-align: 1px;
}

#liveChatDismiss {
  display: grid;
  width: 38px;
  height: 38px;
  margin-left: auto;
  padding: 0;
  flex: 0 0 38px;
  color: #dce0e3;
  background: #1a2128;
  border: 1px solid #3a4650;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  place-items: center;
}

#liveChatDismiss:hover {
  color: #fff;
  border-color: #68737d;
  background: #252e36;
}

#liveChatDismiss svg,
#liveChatSend svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

#liveChatStatus {
  min-height: 27px;
  padding: 7px 14px 6px;
  color: #9ba4ad;
  background: #0e1318;
  border-bottom: 1px solid #252d34;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.45;
}

#liveChatStatus.is-error {
  color: #ff918d;
  background: #221112;
  border-bottom-color: #532523;
}

#liveChatThread {
  min-height: 0;
  display: flex;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  flex-direction: column;
  padding: 18px 14px;
  background:
    linear-gradient(rgba(9, 11, 14, .92), rgba(9, 11, 14, .92)),
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(255, 255, 255, .018) 29px 30px);
  overscroll-behavior: contain;
  scrollbar-color: #3f4a54 #0b0e12;
  scrollbar-width: thin;
}

#liveChatIntro {
  min-height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 24px 22px;
  color: var(--live-chat-muted);
  text-align: center;
}

#liveChatIntro[hidden] {
  display: none;
}

#liveChatIntro img {
  width: 56px;
  height: 56px;
  margin-bottom: 5px;
  object-fit: contain;
}

#liveChatIntro > span {
  color: var(--live-chat-red);
  font: 800 8px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .04em;
}

#liveChatIntro h2 {
  margin: 0;
  color: var(--live-chat-ivory);
  font: 600 29px/.95 "Cataldex Display", "Arial Narrow", sans-serif;
  letter-spacing: .025em;
  text-transform: uppercase;
}

#liveChatIntro strong {
  color: var(--live-chat-ivory);
  font: 600 27px/.95 "Cataldex Display", "Arial Narrow", sans-serif;
  letter-spacing: .025em;
  text-transform: uppercase;
}

#liveChatIntro p {
  max-width: 290px;
  margin: 0;
  color: #9ba3ab;
  font-size: 11px;
  line-height: 1.6;
}

.cataldex-live-chat__messages {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.cataldex-live-chat__message {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 91%;
}

.cataldex-live-chat__message.is-member {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.cataldex-live-chat__avatar {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  overflow: hidden;
  background: #151b21;
  border: 1px solid #3a444e;
  border-radius: 50%;
  place-items: center;
}

.cataldex-live-chat__avatar img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.cataldex-live-chat__bubble {
  min-width: 0;
  padding: 11px 12px;
  color: #dce1e4;
  background: #131920;
  border: 1px solid #303b45;
  border-left: 3px solid var(--live-chat-red);
  border-radius: 3px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .2);
}

.cataldex-live-chat__message.is-member .cataldex-live-chat__bubble {
  color: #f7f9fa;
  background: #14242d;
  border-color: #285064;
  border-right: 3px solid var(--live-chat-cyan);
  border-left-width: 1px;
}

.cataldex-live-chat__message.is-pending {
  opacity: .68;
}

.cataldex-live-chat__bubble header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cataldex-live-chat__bubble header strong {
  color: #f1f3f4;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.cataldex-live-chat__bubble time {
  color: #78828b;
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.cataldex-live-chat__message.is-member time {
  color: #8eb6c8;
}

.cataldex-live-chat__bubble p {
  margin: 7px 0 0;
  overflow-wrap: anywhere;
  color: inherit;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

#liveChatIdentityForm {
  min-height: 0;
  display: flex;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  flex-direction: column;
  gap: 15px;
  padding: 20px 18px 16px;
  background:
    linear-gradient(rgba(9, 11, 14, .94), rgba(9, 11, 14, .94)),
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(255, 255, 255, .018) 29px 30px);
  overscroll-behavior: contain;
}

#liveChatIdentityForm[hidden],
#liveChatThread[hidden],
#liveChatForm[hidden] {
  display: none;
}

.live-chat-identity__heading {
  display: grid;
  gap: 8px;
  text-align: left;
}

.live-chat-identity__heading > span {
  color: var(--live-chat-red);
  font: 850 8px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .055em;
}

.live-chat-identity__heading h2 {
  margin: 0;
  color: var(--live-chat-ivory);
  font: 600 30px/.95 "Cataldex Display", "Arial Narrow", sans-serif;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.live-chat-identity__heading p,
.live-chat-privacy {
  margin: 0;
  color: #9099a2;
  font-size: 10px;
  line-height: 1.55;
}

.live-chat-identity__fields {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 7px 10px;
}

.live-chat-identity__fields > label {
  color: #aab2b9;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.live-chat-identity__fields > label[for="liveChatEmail"] {
  grid-column: 2;
  grid-row: 1;
}

#liveChatName {
  grid-column: 1;
}

#liveChatEmail {
  grid-column: 2;
  grid-row: 2;
}

#liveChatEmailHelp,
.live-chat-identity__fields > label[for="liveChatFirstMessage"],
#liveChatFirstMessage {
  grid-column: 1 / -1;
}

#liveChatEmailHelp {
  color: #747e87;
  font-size: 8px;
  line-height: 1.4;
}

.live-chat-identity__fields input,
.live-chat-identity__fields textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  color: #fff;
  background: #080c10;
  border: 1px solid #3b4651;
  border-radius: 3px;
  outline: 0;
  font: 400 16px/1.4 "Cataldex Sans", Arial, sans-serif;
}

.live-chat-identity__fields input {
  height: 44px;
}

.live-chat-identity__fields textarea {
  min-height: 78px;
  max-height: 130px;
  resize: vertical;
}

.live-chat-identity__fields input::placeholder,
.live-chat-identity__fields textarea::placeholder {
  color: #747e87;
}

.live-chat-identity__fields input:focus,
.live-chat-identity__fields textarea:focus {
  border-color: var(--live-chat-cyan);
  box-shadow: 0 0 0 3px rgba(79, 193, 232, .12);
}

.live-chat-identity__fields [aria-invalid="true"] {
  border-color: #e75b55;
  box-shadow: 0 0 0 3px rgba(231, 91, 85, .12);
}

.live-chat-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.live-chat-identity__error {
  margin: -4px 0 0;
  padding: 8px 9px;
  color: #ffaaa6;
  background: #221112;
  border: 1px solid #5b2927;
  font-size: 9px;
  line-height: 1.45;
}

.live-chat-identity__error[hidden] {
  display: none;
}

.live-chat-start {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 16px;
  color: #fff;
  background: var(--live-chat-red);
  border: 1px solid var(--live-chat-red);
  border-radius: 3px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.live-chat-start:hover:not(:disabled) {
  background: #ff5a54;
  border-color: #ff5a54;
  transform: translateY(-1px);
}

.live-chat-start:disabled {
  cursor: wait;
  opacity: .5;
}

.live-chat-privacy a {
  color: #c0c8ce;
  font-weight: 800;
}

#liveChatForm {
  display: grid;
  gap: 7px;
  padding: 11px 13px 8px;
  background: #10151a;
  border-top: 1px solid var(--live-chat-line);
}

#liveChatForm > label {
  color: #aab2b9;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

#liveChatForm > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 9px;
  align-items: end;
}

#liveChatForm > p {
  margin: 1px 0 0;
  color: #747e87;
  font-size: 8px;
  line-height: 1.45;
}

#liveChatForm > p a {
  color: #b4c0c9;
  font-weight: 800;
}

#liveChatInput {
  width: 100%;
  min-height: 46px;
  max-height: 120px;
  resize: none;
  padding: 11px 12px;
  color: #fff;
  background: #080c10;
  border: 1px solid #3b4651;
  border-radius: 3px;
  outline: 0;
  font: 400 16px/1.4 "Cataldex Sans", Arial, sans-serif;
}

#liveChatInput::placeholder {
  color: #747e87;
}

#liveChatInput:focus {
  border-color: var(--live-chat-cyan);
  box-shadow: 0 0 0 3px rgba(79, 193, 232, .12);
}

#liveChatInput:disabled {
  cursor: wait;
  opacity: .58;
}

#liveChatSend {
  display: flex;
  width: 76px;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  color: #fff;
  background: var(--live-chat-red);
  border: 1px solid var(--live-chat-red);
  border-radius: 3px;
  cursor: pointer;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

#liveChatSend b {
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

#liveChatSend:hover:not(:disabled) {
  background: #ff5a54;
  border-color: #ff5a54;
  transform: translateY(-1px);
}

#liveChatSend:disabled {
  cursor: wait;
  opacity: .48;
}

.live-chat-footer {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px 10px;
  background: #10151a;
}

.live-chat-footer > a {
  color: #8d969f;
  font-size: 8px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.live-chat-footer > a:hover {
  color: #fff;
}

.live-chat-footer > span {
  margin-left: auto;
  color: #737d86;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

#liveChatEnd {
  min-height: 29px;
  margin: 0;
  padding: 0 11px;
  align-self: flex-start;
  color: #929aa2;
  background: transparent;
  border: 1px solid #3c454d;
  border-radius: 2px;
  cursor: pointer;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

#liveChatEnd:hover:not(:disabled) {
  color: #ff918d;
  border-color: #8d3e3a;
  background: #211314;
}

#liveChatEnd:disabled {
  cursor: wait;
  opacity: .45;
}

#liveChatEnd[hidden] {
  display: none;
}

#liveChatLauncher:focus-visible,
#liveChatDismiss:focus-visible,
#liveChatSend:focus-visible,
#liveChatEnd:focus-visible,
.live-chat-start:focus-visible {
  outline: 3px solid rgba(79, 193, 232, .42);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  body.cataldex-live-chat-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  #cataldexLiveChat {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  #liveChatLauncher {
    min-height: 54px;
    padding: 6px 12px 6px 7px;
  }

  #liveChatLauncher > img,
  #liveChatLauncher .live-chat-launcher-mark,
  #liveChatLauncher .live-chat-brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  #liveChatLauncher .live-chat-launcher-mark {
    min-width: 36px;
  }

  #liveChatLauncher strong {
    font-size: 16px;
  }

  #liveChatLauncher .live-chat-launcher-copy {
    display: grid;
    min-width: 72px;
  }

  #liveChatLauncher small {
    display: none;
  }

  #liveChatPanel {
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    width: calc(100vw - 16px);
    height: min(650px, calc(100dvh - 16px));
    min-height: min(430px, calc(100dvh - 16px));
    max-height: calc(100dvh - 16px);
    border-radius: 3px;
  }

  #liveChatPanel > header,
  #liveChatPanel .live-chat-header {
    min-height: 74px;
    padding: 10px 11px;
  }

  #liveChatPanel > header img,
  #liveChatPanel .live-chat-header img {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  #liveChatPanel > header strong,
  #liveChatPanel .live-chat-header-copy strong,
  #liveChatPanel .live-chat-brand b {
    font-size: 19px;
  }

  #liveChatThread {
    padding: 14px 11px;
  }

  #liveChatIdentityForm {
    gap: 13px;
    padding: 16px 12px 13px;
  }

  .live-chat-identity__heading h2 {
    font-size: 27px;
  }

  .live-chat-identity__fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .live-chat-identity__fields > label,
  .live-chat-identity__fields > label[for="liveChatEmail"],
  #liveChatName,
  #liveChatEmail,
  #liveChatEmailHelp,
  #liveChatFirstMessage {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .cataldex-live-chat__message {
    max-width: 94%;
  }

  .cataldex-live-chat__avatar {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
  }

  .cataldex-live-chat__avatar img {
    width: 21px;
    height: 21px;
  }

  #liveChatForm {
    padding: 9px 10px 7px;
  }

  #liveChatForm > div {
    grid-template-columns: minmax(0, 1fr) 68px;
    gap: 7px;
  }

  #liveChatSend {
    width: 68px;
  }

  .live-chat-footer {
    padding-right: 10px;
    padding-bottom: max(9px, env(safe-area-inset-bottom));
    padding-left: 10px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  #liveChatPanel {
    height: calc(100dvh - 16px);
    min-height: 0;
  }

  #liveChatPanel > header,
  #liveChatPanel .live-chat-header {
    min-height: 62px;
  }

  #liveChatIntro img {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #liveChatLauncher,
  #liveChatPanel,
  #liveChatSend,
  .live-chat-start {
    transition: none;
  }
}
