.cto-fo__support {
  --cto-sup-accent: var(--cto-fo-color-primary, #4f1138);
  --cto-sup-line: #d6d3dc;
  --cto-sup-muted: #5e5a6a;
  max-width: 40rem;
  margin-inline: auto;
  position: relative;
  margin-block: var(--cto-space-xl, 2rem);
  padding-top: .25rem;
  clear: both;
}
.t-Body-contentInner .t-Region.cto-fo__support,
.t-Body-content .t-Region.cto-fo__support {
  margin-top: calc(var(--cto-header-strip-height, .5rem) + var(--cto-space-xl, 2rem));
}
@media (max-width: 40rem) {
  .t-Body-contentInner .t-Region.cto-fo__support,
  .t-Body-content .t-Region.cto-fo__support {
    margin-top: calc(var(--cto-header-strip-height, .5rem) + var(--cto-space-lg, 1.25rem));
  }
}

.cto-fo__support .t-Region-header { padding-top: 0; min-height: 0; }
.cto-fo__support .t-Region-title { line-height: 1.2; overflow-wrap: anywhere; }
@media (max-width: 40rem) {
  .cto-fo__support { margin-block: var(--cto-space-lg, 1.25rem); }
}
.cto-fo__support .t-Region-title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
}

.cto-fo__support .t-Form-fieldContainer { margin-bottom: 1rem; }
.cto-fo__support .t-Form-labelContainer { text-align: left; padding-bottom: .375rem; }
.cto-fo__support .t-Form-label { font-size: .875rem; font-weight: 600; color: var(--cto-sup-muted); }
.cto-fo__support .t-Form-inputContainer input[type="text"],
.cto-fo__support .t-Form-inputContainer input[type="password"],
.cto-fo__support .t-Form-inputContainer select,
.cto-fo__support .t-Form-inputContainer textarea {
  width: 100%;
  min-height: 3rem;
  padding: .625rem 1rem;
  border: 2px solid var(--cto-sup-line);
  border-radius: .875rem;
  font: inherit;
  background: #fff;
}
.cto-fo__support .t-Form-inputContainer textarea { min-height: 10rem; resize: vertical; }
.cto-fo__support .t-Form-inputContainer input:focus,
.cto-fo__support .t-Form-inputContainer select:focus,
.cto-fo__support .t-Form-inputContainer textarea:focus {
  outline: 0;
  border-color: var(--cto-sup-accent);
  box-shadow: 0 0 0 .1875rem rgb(79 17 56 / 18%);
}
.cto-fo__support .t-Button--hot,
.cto-fo__support .t-Button--primary {
  width: 100%;
  min-height: 3rem;
  border-radius: .875rem;
  background: var(--cto-sup-accent);
  border-color: var(--cto-sup-accent);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
}

.cto-fo__support-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.cto-fo__support-message:empty { display: none; }
.cto-fo__support-message { margin: 0 0 1rem; color: #b00020; font-weight: 600; }
.cto-fo__support-closed { margin: 1rem 0; text-align: center; }

.cto-sup-fo-head { margin-bottom: 1rem; }
.cto-sup-fo-head__id { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .625rem; }
.cto-sup-fo-head__subject { margin: .5rem 0 0; font-size: 1.125rem; overflow-wrap: anywhere; }
.cto-fo__support .cto-sup-card__id {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cto-sup-accent);
}
.cto-fo__support .cto-sup-thread {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1rem;
  background: #f7f6fa;
  border: 1px solid var(--cto-sup-line);
  border-radius: 1rem;
}
.cto-fo__support .cto-sup-msg { display: flex; }
.cto-fo__support .cto-sup-msg--them { justify-content: flex-start; }
.cto-fo__support .cto-sup-msg--me { justify-content: flex-end; }
.cto-fo__support .cto-sup-msg__bubble {
  max-width: min(32rem, 90%);
  padding: .625rem .875rem;
  background: #fff;
  border: 1px solid var(--cto-sup-line);
  border-radius: 1rem;
  overflow-wrap: anywhere;
}
.cto-fo__support .cto-sup-msg--me .cto-sup-msg__bubble {
  background: var(--cto-sup-accent);
  border-color: var(--cto-sup-accent);
  color: #fff;
  border-top-right-radius: .25rem;
}
.cto-fo__support .cto-sup-msg--them .cto-sup-msg__bubble { border-top-left-radius: .25rem; }
.cto-fo__support .cto-sup-msg__meta { margin-bottom: .25rem; font-size: .75rem; opacity: .75; }
.cto-fo__support .cto-sup-msg__body { line-height: 1.45; }
.cto-fo__support .cto-sup-msg__files { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .5rem; }
.cto-fo__support .cto-sup-attach {
  padding: .1875rem .625rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .75rem;
  color: inherit;
  text-decoration: none;
}
.cto-fo__support .cto-sup-msg--system {
  justify-content: center;
  gap: .5rem;
  font-size: .75rem;
  color: var(--cto-sup-muted);
}

.cto-fo__support .cto-sup-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .125rem .625rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}
.cto-fo__support .cto-sup-badge__ico { font-style: normal; font-size: .625rem; font-weight: 800; }
.cto-fo__support .cto-sup-badge--error    { background: #fbe9e9; color: #c62f38; }
.cto-fo__support .cto-sup-badge--feature  { background: #fff; color: var(--cto-sup-accent); border-color: #d9b3c8; }
.cto-fo__support .cto-sup-badge--other,
.cto-fo__support .cto-sup-badge--closed   { background: #efedf3; color: var(--cto-sup-muted); border-color: var(--cto-sup-line); }
.cto-fo__support .cto-sup-badge--open     { background: #fbefdc; color: #b3730f; }
.cto-fo__support .cto-sup-badge--resolved { background: #e5f1ea; color: #2f7d5d; }

@media (max-width: 40rem) {
  .cto-fo__support .cto-sup-msg__bubble { max-width: 96%; }
}

.cto-fo__support--done .t-Region-body { text-align: center; }
.cto-fo__support--done .t-Region-body p { margin: 0 0 1.25rem; }
.cto-fo__support--done .t-ButtonRegion,
.cto-fo__support--done .t-Button { width: 100%; }
