.circle-support {
  --circle-support-blue: #154ae0;
  --circle-support-navy: #10233f;
  --circle-support-muted: #52617a;
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 18;
  width: min(420px, calc(100vw - 48px));
  color: #1f2e43;
  font-family: var(--font, Arial, sans-serif);
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
  color-scheme: light;
  pointer-events: none;
}

.circle-support[hidden],
.circle-support [hidden],
.hero-intro-active .circle-support {
  display: none !important;
}

.circle-support *,
.circle-support *::before,
.circle-support *::after {
  box-sizing: border-box;
}

.circle-support button,
.circle-support input,
.circle-support select,
.circle-support textarea {
  font: inherit;
}

.circle-support button,
.circle-support a,
.circle-support input,
.circle-support select,
.circle-support textarea {
  -webkit-tap-highlight-color: transparent;
}

.circle-support button:focus-visible,
.circle-support a:focus-visible,
.circle-support input:focus-visible,
.circle-support select:focus-visible,
.circle-support textarea:focus-visible,
.circle-support [tabindex]:focus-visible {
  outline: 2px solid #154ae0;
  outline-offset: 3px;
}

.circle-support-launcher {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: auto;
  min-height: 56px;
  margin-left: auto;
  padding: 14px 21px;
  border: 1px solid #154ae0;
  border-radius: 100px;
  background: #154ae0;
  color: #fff;
  box-shadow: 0 12px 38px rgba(21, 74, 224, .22);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .015em;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.circle-support-launcher:hover {
  background: #123bb3;
  border-color: #123bb3;
}

.circle-support-mark {
  display: block;
  width: 18px;
  height: 18px;
  border: 1px solid #fff;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px #154ae0;
  background: #fff;
}

.circle-support[data-open="true"] .circle-support-launcher {
  margin-top: 12px;
}

.circle-support-panel {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: min(740px, calc(100dvh - 114px));
  min-height: min(260px, calc(100dvh - 114px));
  overflow: hidden;
  border: 1px solid #d6deea;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 90px rgba(16, 35, 63, .2);
  isolation: isolate;
}

.circle-support-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px 16px;
  flex-shrink: 0;
  background: linear-gradient(115deg, #f2f6ff, #fff 80%);
}

.circle-support-eyebrow {
  margin: 0 0 4px;
  color: #154ae0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.circle-support .circle-support-title {
  margin: 0;
  color: #10233f;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
  text-transform: none;
  text-wrap: pretty;
}

.circle-support-close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: -4px -10px -4px 0;
  padding: 0;
  flex-shrink: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #33455e;
  font-size: 28px !important;
  font-weight: 400;
  cursor: pointer;
}

.circle-support-close:hover {
  background: #eaf0fb;
}

.circle-support-availability {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 11px 22px;
  border-top: 1px solid #e2e8f1;
  border-bottom: 1px solid #e2e8f1;
  background: #f7f9fc;
  color: #52617a;
  font-size: 12px;
  flex-shrink: 0;
}

.circle-support-availability::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #78869b;
}

.circle-support-availability[data-online="true"]::before {
  background: #168353;
}

.circle-support-availability[data-online="false"]::before {
  background: #8a95a6;
}

.circle-support-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px;
  scrollbar-width: thin;
  background: #fff;
  scrollbar-color: #b6c4d8 transparent;
}

.circle-support-description,
.circle-support-form-hint {
  margin: 0 0 18px;
  color: #52617a;
  font-size: 15px;
  line-height: 1.65;
}

.circle-support-assistant-label {
  margin: 0 0 10px;
  color: #154ae0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.circle-support-faqs,
.circle-support-active-faqs {
  display: grid;
  gap: 8px;
}

.circle-support-faq-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #d8e2f1;
  border-radius: 8px;
  background: #f5f8fd;
  color: #263c5b;
  text-align: left;
  font-size: 14px !important;
  line-height: 1.5;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.circle-support-faq-button:hover {
  border-color: #a9bfe9;
  background: #eaf1ff;
}

.circle-support-actions,
.circle-support-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.circle-support-actions .circle-support-button {
  flex: 1 1 140px;
}

.circle-support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #bccce8;
  border-radius: 8px;
  background: #fff;
  color: #154ae0;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: background .2s ease;
}

.circle-support-button:hover {
  background: #edf3ff;
}

.circle-support-button-primary {
  border-color: #154ae0;
  background: #154ae0;
  color: #fff;
}

.circle-support-button-primary:hover {
  background: #265cef;
}

.circle-support-button-quiet {
  border-color: #d7e0ed;
  color: #345580;
}

.circle-support button:disabled {
  opacity: .55;
  cursor: wait;
}

.circle-support-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 5px;
  color: #154ae0;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.circle-support-messages {
  display: grid;
  gap: 13px;
}

.circle-support-welcome + .circle-support-messages:not([hidden]) {
  margin-top: 22px;
}

.circle-support-message {
  max-width: 94%;
  padding: 13px 14px;
  border: 1px solid #dbe3ef;
  border-radius: 10px 10px 10px 2px;
  background: #f5f7fb;
  overflow-wrap: anywhere;
}

.circle-support-message[data-role="visitor"] {
  margin-left: auto;
  border-color: #c8d8fa;
  border-radius: 10px 10px 2px 10px;
  background: #e9f0ff;
}

.circle-support-message[data-role="operator"] {
  border-color: #dce2ea;
  background: #f4f5f7;
}

.circle-support-message[data-role="system"] {
  max-width: 100%;
  border-color: #e1e6ee;
  border-radius: 8px;
  background: #f7f8fa;
}

.circle-support-message-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
  color: #456080;
  font-size: 12px;
  line-height: 1.4;
}

.circle-support-message-meta time {
  color: #66758c;
  flex-shrink: 0;
}

.circle-support-message-text {
  margin: 0;
  color: #1f2e43;
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.circle-support .circle-support-form-title {
  margin: 0 0 10px;
  color: #10233f;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -.02em;
  font-weight: 700;
  text-transform: none;
}

.circle-support-form {
  display: grid;
  gap: 15px;
}

.circle-support-field {
  display: grid;
  gap: 7px;
}

.circle-support-field label {
  color: #33455e;
  font-size: 12px;
  font-weight: 700;
}

.circle-support-field input,
.circle-support-field select,
.circle-support-field textarea,
.circle-support-composer textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #c6cfdd;
  border-radius: 7px;
  background: #fff;
  color: #1f2e43;
  font-size: 16px;
  line-height: 1.5;
}

.circle-support-field textarea,
.circle-support-composer textarea {
  resize: vertical;
  max-height: 180px;
}

.circle-support-field select {
  padding-right: 28px;
}

.circle-support-consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 48px;
  padding: 9px 0;
  color: #52617a;
  font-size: 12px;
  line-height: 1.7;
  cursor: pointer;
}

.circle-support-consent input {
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: #154ae0;
}

.circle-support-form-actions {
  margin-top: 0;
}

.circle-support-form-actions .circle-support-button-primary {
  flex: 1;
}

.circle-support-conversation-tools {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f1;
}

.circle-support-conversation-note {
  margin: 0;
  color: #52617a;
  font-size: 12px;
  line-height: 1.6;
}

.circle-support-status {
  margin: 0;
  padding: 0 22px;
  color: #345580;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  flex-shrink: 0;
}

.circle-support-status:not(:empty) {
  padding-top: 11px;
  padding-bottom: 11px;
  border-top: 1px solid #e2e8f1;
}

.circle-support-status[data-state="error"] {
  color: #b42318;
  background: #fff0ef;
}

.circle-support-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px;
  padding: 15px 18px;
  border-top: 1px solid #dfe6ef;
  background: #fff;
  flex-shrink: 0;
}

.circle-support-composer textarea {
  min-height: 60px;
  max-height: 120px;
  font-size: 15px;
}

.circle-support-composer textarea::placeholder {
  color: #758197;
}

.circle-support-footer {
  margin: 0;
  padding: 10px 20px;
  border-top: 1px solid #e8edf4;
  color: #66758c;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: 11px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .circle-support {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom), var(--circle-support-footer-offset, 0px));
    width: min(420px, calc(100vw - 24px));
  }

  .circle-support[data-open="true"] {
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .circle-support[data-open="true"] .circle-support-launcher {
    display: none;
  }

  .circle-support[data-footer-overlap="true"][data-open="false"] {
    visibility: hidden;
  }

  .circle-support-panel {
    max-height: calc(100dvh - 24px - env(safe-area-inset-bottom));
    min-height: min(260px, calc(100dvh - 24px - env(safe-area-inset-bottom)));
    border-radius: 13px;
  }

  .circle-support-header {
    padding: 17px 18px 13px;
  }

  .circle-support-body {
    padding: 18px;
  }

  .circle-support-availability {
    padding-left: 18px;
    padding-right: 18px;
  }

  .circle-support-status {
    padding-left: 18px;
    padding-right: 18px;
  }

  .circle-support-field input,
  .circle-support-field select,
  .circle-support-field textarea,
  .circle-support-composer textarea {
    font-size: 16px;
  }
}

@media (max-height: 540px) {
  .circle-support-header {
    padding-top: 12px;
    padding-bottom: 9px;
  }

  .circle-support-footer {
    display: none;
  }
}

@media (max-height: 540px) and (min-width: 601px) {
  .circle-support-panel {
    max-height: calc(100dvh - 90px);
    min-height: min(260px, calc(100dvh - 90px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .circle-support *,
  .circle-support *::before,
  .circle-support *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
