:root {
  --pk-ink: #243126;
  --pk-leaf: #2f6b4f;
  --pk-leaf-dark: #174333;
  --pk-sun: #f2b84b;
  --pk-sea: #2d8a9a;
  --pk-shell: #fff9ed;
  --pk-paper: #fffdf7;
  --pk-line: rgba(36, 49, 38, 0.16);
  --pk-shadow: 0 22px 60px rgba(20, 38, 31, 0.24);
}

.pk-chatbot,
.pk-chatbot * {
  box-sizing: border-box;
}

.pk-chatbot {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2147483000;
  color: var(--pk-ink);
  font-family: ui-sans-serif, "Avenir Next", "Segoe UI", sans-serif;
}

.pk-chatbot__launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pk-leaf-dark), var(--pk-leaf));
  color: #fffdf7;
  box-shadow: 0 16px 44px rgba(23, 67, 51, 0.32);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.pk-chatbot__launcher:hover {
  transform: translateY(-1px);
}

.pk-chatbot__launcher-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--pk-sun);
  color: var(--pk-leaf-dark);
  font-size: 16px;
}

.pk-chatbot__panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  display: none;
  width: min(390px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 110px));
  overflow: hidden;
  border: 1px solid var(--pk-line);
  border-radius: 8px;
  background: var(--pk-paper);
  box-shadow: var(--pk-shadow);
}

.pk-chatbot[data-open="true"] .pk-chatbot__panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  animation: pk-rise 180ms ease-out;
}

.pk-chatbot__header {
  position: relative;
  padding: 18px 18px 16px;
  background:
    linear-gradient(90deg, rgba(242, 184, 75, 0.18), rgba(45, 138, 154, 0.14)),
    var(--pk-shell);
  border-bottom: 1px solid var(--pk-line);
}

.pk-chatbot__title {
  margin: 0 36px 4px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.15;
}

.pk-chatbot__subtitle {
  margin: 0;
  color: rgba(36, 49, 38, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.pk-chatbot__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--pk-line);
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.82);
  color: var(--pk-ink);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.pk-chatbot__messages {
  min-height: 260px;
  overflow-y: auto;
  padding: 16px;
  background:
    linear-gradient(rgba(255, 253, 247, 0.82), rgba(255, 253, 247, 0.96)),
    radial-gradient(circle at 10% 0%, rgba(242, 184, 75, 0.18), transparent 26%),
    radial-gradient(circle at 90% 30%, rgba(45, 138, 154, 0.12), transparent 22%);
}

.pk-chatbot__message {
  width: fit-content;
  max-width: 88%;
  margin: 0 0 10px;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
}

.pk-chatbot__message--bot {
  border: 1px solid var(--pk-line);
  background: #fffdf7;
}

.pk-chatbot__message--user {
  margin-left: auto;
  background: var(--pk-leaf-dark);
  color: #fffdf7;
}

.pk-chatbot__cta {
  display: inline-flex;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--pk-sun);
  color: var(--pk-leaf-dark);
  font-weight: 800;
  text-decoration: none;
}

.pk-chatbot__quick {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px 0;
  background: var(--pk-paper);
}

.pk-chatbot__quick button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid var(--pk-line);
  border-radius: 999px;
  background: #fff;
  color: var(--pk-leaf-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.pk-chatbot__form {
  padding: 12px;
  border-top: 1px solid var(--pk-line);
  background: var(--pk-paper);
}

.pk-chatbot__inputrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
}

.pk-chatbot__input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--pk-line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--pk-ink);
  font: inherit;
}

.pk-chatbot__send {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--pk-sea);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.pk-chatbot__privacy {
  margin: 8px 2px 0;
  color: rgba(36, 49, 38, 0.62);
  font-size: 11px;
  line-height: 1.35;
}

.pk-chatbot__clear {
  margin: 8px 2px 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(23, 67, 51, 0.74);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pk-chatbot__typing {
  color: rgba(36, 49, 38, 0.68);
  font-style: italic;
}

@keyframes pk-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .pk-chatbot {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .pk-chatbot__launcher {
    margin-left: auto;
  }

  .pk-chatbot__panel {
    right: 0;
    left: 0;
    width: auto;
    max-height: calc(100vh - 94px);
  }
}
