#swcb-root,
#swcb-root * {
  box-sizing: border-box;
}

#swcb-root {
  --swcb-vh: 1vh;
  --swcb-vv-top: 0px;
}

.swcb {
  position: fixed;
  z-index: 2147483647;
  font-family: "Archivo", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
}

.swcb--bottom-right {
  right: 16px;
  bottom: 16px;
}

.swcb--bottom-left {
  left: 16px;
  bottom: 16px;
}

.swcb__launcher {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  display: grid;
  place-items: center;
}

.swcb__launcher svg {
  width: 26px;
  height: 26px;
}

.swcb.is-open .swcb__launcher {
  display: none;
}

.swcb__backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    opacity 0.4s ease,
    backdrop-filter 0.4s ease,
    -webkit-backdrop-filter 0.4s ease,
    background-color 0.4s ease;
  will-change: opacity, backdrop-filter, background-color;
}

.swcb.is-open .swcb__backdrop {
  opacity: 1;
  pointer-events: auto;
  background-color: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
}

.swcb__panel {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: 1000px;
  max-width: calc(100vw - 40px);
  min-height: 500px;
  max-height: calc(100vh - 40px);
  border-radius: 20px;
  padding: 20px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
  z-index: 1;
  background: transparent;
  overflow: hidden;
}

.swcb__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: rgba(0, 0, 0, 0.35);
  transition: background-color 0.4s ease;
  will-change: background-color;
  pointer-events: none;
  z-index: 0;
}

.swcb__panel.is-open {
  display: flex;
  animation: swcbFadeInUp 0.6s ease both;
}

@keyframes swcbFadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.swcb__close {
  position: absolute;
  top: 40px;
  right: 24px;
  left: auto;
  z-index: 2;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: #fff;
  padding: 0;
  cursor: pointer;
  opacity: 1;
  pointer-events: auto;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.swcb__close:hover {
  opacity: 0.75;
  transform: scale(1.05);
}

.swcb__close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 6px;
  border-radius: 10px;
}

.swcb__close svg {
  display: block;
  width: 30px;
  height: 30px;
}

.swcb__content {
  flex: 1;
  min-height: 0;
  padding: 60px 20px 0;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.swcb__panel.has-messages .swcb__content {
  gap: 0;
}

.swcb__hero {
  overflow: hidden;
  max-height: 1000px;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    max-height 0.6s ease,
    margin 0.6s ease;
}

.swcb__panel.has-messages .swcb__hero {
  opacity: 0;
  transform: translateY(-12px);
  max-height: 0;
  margin: 0;
  pointer-events: none;
}

.swcb__hero-title {
  margin: 0;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -1px;
  color: #fff;
}

.swcb__hero-text {
  margin: 0;
  max-width: 90%;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -1px;
  color: rgba(255, 255, 255, 0.6);
}

.swcb__messages {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
  padding-right: 2px;
}

.swcb__messages::-webkit-scrollbar {
  width: 10px;
}

.swcb__messages::-webkit-scrollbar-track {
  background: transparent;
}

.swcb__messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

.swcb__messages::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
  background-clip: content-box;
}

.swcb__iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 16px;
}

.swcb--mode-external_widget .swcb__messages {
  gap: 0;
  overflow: hidden;
  padding-right: 0;
}

.swcb--mode-external_widget .swcb__panel.has-messages .swcb__form {
  display: none;
}

.swcb__bubble {
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 16px;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.swcb__bubble strong {
  font-weight: 600;
}

.swcb__bubble em {
  font-style: italic;
}

.swcb__bubble p {
  margin: 0 0 12px;
}

.swcb__bubble .swcb__md-heading {
  margin: 14px 0 10px;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 600;
}

.swcb__bubble .swcb__md-heading:first-child {
  margin-top: 0;
}

.swcb__bubble .swcb__md-heading--l1 {
  font-size: 18px;
}

.swcb__bubble .swcb__md-heading--l2 {
  font-size: 17px;
}

.swcb__bubble .swcb__md-heading--l3,
.swcb__bubble .swcb__md-heading--l4,
.swcb__bubble .swcb__md-heading--l5,
.swcb__bubble .swcb__md-heading--l6 {
  font-size: 16px;
}

.swcb__bubble p:last-child {
  margin-bottom: 0;
}

.swcb__bubble ul,
.swcb__bubble ol {
  margin: 8px 0 12px;
  padding-left: 22px;
}

.swcb__bubble li {
  margin: 6px 0;
}

.swcb__bubble ul:last-child,
.swcb__bubble ol:last-child,
.swcb__bubble pre:last-child,
.swcb__bubble blockquote:last-child,
.swcb__bubble hr:last-child {
  margin-bottom: 0;
}

.swcb__bubble hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  margin: 14px 0 10px;
}

.swcb__bubble a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.swcb__bubble a:hover {
  color: rgba(255, 255, 255, 0.75);
}

.swcb__bubble code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.swcb__bubble pre {
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: auto;
}

.swcb__bubble pre code {
  padding: 0;
  border: 0;
  background: transparent;
  display: block;
  white-space: pre;
}

.swcb__bubble--user {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
}

.swcb__bubble--bot {
  align-self: flex-start;
  background: rgba(0, 0, 0, 0.20);
  color: rgba(255, 255, 255, 0.92);
}

.swcb__bubble--loading {
  opacity: 0.75;
}

.swcb__thinking {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 18px;
}

.swcb__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  opacity: 0.35;
  transform: translateY(0);
  animation: swcbTyping 1.1s infinite ease-in-out;
}

.swcb__dot:nth-child(2) {
  animation-delay: 0.15s;
}

.swcb__dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes swcbTyping {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 0.95;
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .swcb__dot {
    animation: none;
    opacity: 0.6;
  }
}

.swcb__footer {
  padding: 0;
  position: relative;
  z-index: 1;
}

.swcb__examples-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.31);
  padding-top: 10px;
  max-height: 90px;
  overflow: hidden;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    max-height 0.6s ease,
    padding 0.6s ease,
    border-color 0.6s ease;
}

.swcb__panel.has-messages .swcb__examples-row {
  opacity: 0;
  transform: translateY(-8px);
  max-height: 0;
  padding-top: 0;
  border-top-color: transparent;
  pointer-events: none;
}

.swcb__examples-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.swcb__examples-label {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.6);
}

.swcb__example {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
  transition: color 0.4s ease;
}

.swcb__example:hover,
.swcb__example:focus-visible {
  color: rgba(255, 255, 255, 0.6);
}

.swcb__contact {
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  padding: 5px 10px;
  border-radius: 100px;
  cursor: pointer;
  transition:
    border-color 0.4s ease,
    color 0.4s ease;
}

.swcb__contact:hover,
.swcb__contact:focus-visible {
  border-color: #fff;
  color: #fff;
}

.swcb__form {
  margin: 10px 0 0;
}

.swcb__input-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 20px;
  border-radius: 20px;
  background-color: rgba(0, 0, 0, 0.309);
  transition: background-color 0.4s ease;
}

.swcb__input-wrap:hover {
  background-color: rgba(0, 0, 0, 0.451);
}

.swcb__input {
  flex: 1;
  border: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.1px;
  padding: 0;
  outline: none;
  min-width: 0;
}

.swcb__input::placeholder {
  color: rgba(255, 255, 255, 0.31);
}

.swcb__send {
  border: none;
  border-radius: 100px;
  padding: 15px 15px 10px 15px;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.329);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background-color 0.4s ease;
}

.swcb__send:hover,
.swcb__send:focus-visible {
  background-color: var(--e-global-color-accent, var(--swcb-primary, rgba(255, 255, 255, 0.16)));
}

.swcb__send svg {
  display: block;
  height: 18px;
  width: auto;
}

@media (max-width: 1024px) {
  .swcb__hero-title,
  .swcb__hero-text {
    font-size: 2.4em;
  }

  .swcb__examples-label,
  .swcb__example,
  .swcb__contact {
    font-size: 18px;
  }
}

@media (max-width: 880px) {
  .swcb__hero-title,
  .swcb__hero-text {
    font-size: 2em;
  }
}

@keyframes swcbFadeInMobile {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .swcb__panel {
    left: 0;
    right: 0;
    top: var(--swcb-vv-top, 0px);
    bottom: auto;
    width: 100vw;
    max-width: 100vw;
    min-height: 0;
    height: calc(var(--swcb-vh, 1vh) * 100);
    max-height: calc(var(--swcb-vh, 1vh) * 100);
    transform: none;
    border-radius: 0;
    padding: calc(22px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom)) 12px;
  }

  .swcb__panel.is-open {
    animation: swcbFadeInMobile 0.4s ease both;
  }

  .swcb__close {
    top: calc(18px + env(safe-area-inset-top));
    right: calc(16px + env(safe-area-inset-right));
    left: auto;
  }

  .swcb__content {
    padding: 32px 12px 0;
  }

  body.swcb-chat-open .my-header {
    display: none !important;
  }
}

@media (max-width: 520px) {
  .swcb__panel {
    padding: calc(20px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom)) 10px;
  }

  .swcb__close {
    right: calc(14px + env(safe-area-inset-right));
    left: auto;
  }

  .swcb__content {
    padding: 30px 10px 0;
  }
}
