.vesta-chatbot {
  position: fixed;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.vesta-chatbot--bottom-right {
  align-items: flex-end;
  right: 1.25rem;
  bottom: 1.25rem;
}

.vesta-chatbot--bottom-left {
  align-items: flex-start;
  left: 1.25rem;
  bottom: 1.25rem;
}

.vesta-chatbot--top-right {
  align-items: flex-end;
  flex-direction: column-reverse;
  right: 1.25rem;
  top: 1.25rem;
}

.vesta-chatbot--top-left {
  align-items: flex-start;
  flex-direction: column-reverse;
  left: 1.25rem;
  top: 1.25rem;
}

.vesta-chatbot__launcher,
.vesta-chatbot__close {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.vesta-chatbot__launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0 1.15rem;
  border-radius: 999px;
  background: var(--vesta-chatbot-accent, #071633);
  color: #fff;
  box-shadow: 0 1rem 2rem rgba(7, 22, 51, 0.24);
  font-weight: 700;
}

.vesta-chatbot__launcher:focus-visible,
.vesta-chatbot__close:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.45);
  outline-offset: 3px;
}

.vesta-chatbot__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: #dfead4;
}

.vesta-chatbot__panel {
  width: var(--vesta-chatbot-width, 460px);
  height: var(--vesta-chatbot-height, 720px);
  max-width: calc(100vw - 2rem);
  max-height: calc(100dvh - 5.25rem);
  margin-bottom: 0.75rem;
  border: 1px solid rgba(7, 22, 51, 0.14);
  border-radius: 1rem;
  overflow: hidden;
  background: #fffbf2;
  box-shadow: 0 1.25rem 3.5rem rgba(7, 22, 51, 0.28);
}

.vesta-chatbot--top-right .vesta-chatbot__panel,
.vesta-chatbot--top-left .vesta-chatbot__panel {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.vesta-chatbot__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 2.75rem;
  padding: 0 0.85rem 0 1rem;
  background: var(--vesta-chatbot-accent, #071633);
  color: #fff;
}

.vesta-chatbot__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
}

.vesta-chatbot__iframe {
  display: block;
  width: 100%;
  height: calc(100% - 2.75rem);
  border: 0;
  background: #fffbf2;
}

@media (max-width: 520px) {
  .vesta-chatbot {
    align-items: flex-end;
    flex-direction: column;
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    top: auto;
  }

  .vesta-chatbot__panel {
    width: 100%;
    height: min(80dvh, var(--vesta-chatbot-height, 720px));
    max-width: none;
  }

  .vesta-chatbot__launcher {
    float: right;
  }
}
