.dypseo-chatkit {
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.dypseo-chatkit--launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
}

.dypseo-chatkit__launcher,
.dypseo-chatkit__start {
  padding: 13px 18px;
  color: #fff;
  font-weight: 800;
  border: 1px solid #ff1493;
  border-radius: 999px;
  background: #07101f;
  box-shadow: 0 10px 34px rgba(255, 20, 147, 0.25);
  cursor: pointer;
}

.dypseo-chatkit__launcher {
  display: flex;
  align-items: center;
  gap: 9px;
}

.dypseo-chatkit__panel {
  width: min(400px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(255, 20, 147, 0.58);
  border-radius: 22px;
  background: linear-gradient(135deg, #07101f, #241028);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

.dypseo-chatkit--launcher .dypseo-chatkit__panel {
  position: absolute;
  right: 0;
  bottom: 64px;
}

.dypseo-chatkit__panel[hidden] {
  display: none;
}

.dypseo-chatkit__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.dypseo-chatkit__header div {
  display: flex;
  flex-direction: column;
}

.dypseo-chatkit__header .dypseo-chatkit__controls {
  align-items: center;
  flex-direction: row;
  gap: 7px;
}

.dypseo-chatkit__header small {
  color: rgba(255, 255, 255, 0.7);
}

.dypseo-chatkit__close,
.dypseo-chatkit__new,
.dypseo-chatkit__history {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.dypseo-chatkit__new,
.dypseo-chatkit__history {
  padding: 7px 9px;
  font-size: 0.75rem;
  font-weight: 750;
  border-radius: 8px;
}

.dypseo-chatkit__new:disabled,
.dypseo-chatkit__history:disabled {
  opacity: 0.45;
  cursor: wait;
}

.dypseo-chatkit__close {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  border-color: rgba(255, 20, 147, 0.7);
  border-radius: 50%;
  place-items: center;
}

.dypseo-chatkit__stage {
  display: grid;
  min-height: 340px;
  padding: 16px;
  place-items: center;
}

.dypseo-chatkit__client {
  display: block;
  width: 100%;
  height: 340px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}

.dypseo-chatkit__client[hidden],
.dypseo-chatkit__start[hidden] {
  display: none;
}

.dypseo-chatkit__status {
  max-width: 30ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.dypseo-chatkit__launcher:focus-visible,
.dypseo-chatkit__start:focus-visible,
.dypseo-chatkit__new:focus-visible,
.dypseo-chatkit__history:focus-visible,
.dypseo-chatkit__close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .dypseo-chatkit--launcher {
    right: 16px;
    bottom: 16px;
  }

  .dypseo-chatkit--launcher .dypseo-chatkit__panel {
    position: fixed;
    right: 16px;
    bottom: 78px;
    left: 16px;
    width: auto;
  }

  .dypseo-chatkit__stage,
  .dypseo-chatkit__client {
    height: min(340px, 52vh);
    min-height: 300px;
  }

  .dypseo-chatkit__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .dypseo-chatkit__header .dypseo-chatkit__controls {
    justify-content: flex-end;
    width: 100%;
  }
}

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