/* Uses Kadence theme CSS variables when present (e.g. alembikas.lt); fallbacks match typical Kadence defaults. */
#gk-chatbot-root {
  --gk-toggle-w: 108px;
  --gk-chatbot-bottom-offset: max(12px, env(safe-area-inset-bottom, 0px));
  position: fixed;
  right: 0;
  left: auto;
  top: 0;
  bottom: 0;
  transform: none;
  z-index: 99999;
  font-family: var(--global-body-font-family, Lora, Georgia, "Times New Roman", serif);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  padding-bottom: var(--gk-chatbot-bottom-offset);
  box-sizing: border-box;
  gap: 10px;
  pointer-events: none;
}

#gk-chatbot-root.gk-chatbot-panel-open {
  flex-direction: row-reverse;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0;
}

#gk-chatbot-root > * {
  pointer-events: auto;
}

.gk-chatbot-dock {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

/* Desktop: when the panel is closed, pin the CTA to the bottom; when open, default center aligns it vertically with the tall window. */
@media (min-width: 769px) {
  #gk-chatbot-root:not(.gk-chatbot-panel-open) .gk-chatbot-dock {
    align-items: flex-end;
  }
}

.gk-chatbot-window-clip {
  width: 0;
  height: 0;
  overflow: hidden;
  flex-shrink: 0;
  transition: width 1s ease, height 1s ease;
  pointer-events: none;
}

#gk-chatbot-root.gk-chatbot-panel-open .gk-chatbot-window-clip {
  width: min(680px, calc((100vw - 40px) * 2 / 3));
  height: 720px;
  pointer-events: auto;
}

@media (max-width: 768px) {
  #gk-chatbot-root {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }

  #gk-chatbot-root.gk-chatbot-panel-open {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
  }

  .gk-chatbot-dock {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
  }

  #gk-chatbot-root.gk-chatbot-panel-open .gk-chatbot-window-clip {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
    flex: 1 1 auto;
    min-width: 0;
    height: min(720px, 88vh);
  }

  #gk-chatbot-root.gk-chatbot-panel-open #gk-chatbot-window {
    position: relative;
    z-index: 1;
    border-radius: 12px;
    border-left: 1px solid var(--global-palette7, #edf2f7);
  }

  #gk-chatbot-root.gk-chatbot-panel-open #gk-chatbot-toggle {
    display: none !important;
  }

  #gk-chatbot-toggle {
    width: var(--gk-toggle-w);
    min-width: var(--gk-toggle-w);
    max-width: var(--gk-toggle-w);
  }

  .gk-chatbot-toggle-label {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
  }

  .gk-chatbot-avatar {
    width: 17px;
    height: 17px;
    border-radius: 5px;
  }

  #gk-chatbot-form {
    flex-wrap: wrap;
    align-items: stretch;
    row-gap: 8px;
    flex-shrink: 0;
  }

  #gk-chatbot-input {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
  }

  #gk-chatbot-form button[type="submit"] {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .gk-chatbot-reco-wrap {
    margin-left: -2px;
    margin-right: -2px;
    padding: 8px 6px;
  }

  .gk-chatbot-reco-card {
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 8px;
    row-gap: 8px;
    padding: 8px;
  }

  .gk-chatbot-reco-thumb {
    width: 52px;
    height: 52px;
  }

  .gk-chatbot-reco-main {
    font-size: 12.5px;
  }

  .gk-chatbot-reco-main > .gk-chatbot-reco-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
  }

  .gk-chatbot-reco-main > .gk-chatbot-reco-head .gk-chatbot-reco-title-link {
    flex: 1 1 120px;
    min-width: 0;
    font-size: 13px;
    line-height: 1.3;
  }

  .gk-chatbot-reco-main > .gk-chatbot-reco-head .gk-chatbot-reco-price {
    margin-top: 0;
    white-space: nowrap;
    font-size: 12px;
  }

  .gk-chatbot-reco-card .gk-chatbot-reco-desc {
    font-size: 12.5px;
    line-height: 1.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gk-chatbot-window-clip {
    transition-duration: 0.01ms !important;
  }
}

#gk-chatbot-toggle {
  border: 0;
  border-radius: 999px 0 0 999px;
  background: var(--global-palette-btn-bg, #2b6cb0);
  color: var(--global-palette-btn, #ffffff);
  padding: 7px 6px 7px 5px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(26, 32, 44, 0.18);
  font-family: inherit;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  line-height: 1.25;
  flex-shrink: 0;
  box-sizing: border-box;
  max-width: 108px;
  text-align: left;
}

#gk-chatbot-root.gk-chatbot-panel-open #gk-chatbot-toggle {
  border-radius: 999px 0 0 999px;
  box-shadow: 0 4px 12px rgba(26, 32, 44, 0.12);
}

#gk-chatbot-toggle:hover {
  background: var(--global-palette-btn-bg-hover, #215387);
  color: var(--global-palette-btn-hover, #ffffff);
}

.gk-chatbot-toggle-icon-wrap {
  position: relative;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.gk-chatbot-toggle-icon-wrap .gk-chatbot-toggle-icon {
  position: absolute;
  inset: 0;
  width: 19px;
  height: 19px;
  border-radius: 4px;
  object-fit: contain;
  transition: opacity 0.15s ease;
}

.gk-chatbot-toggle-icon-wrap .gk-chatbot-toggle-icon-hover {
  opacity: 0;
}

#gk-chatbot-toggle:hover .gk-chatbot-toggle-icon-wrap .gk-chatbot-toggle-icon:not(.gk-chatbot-toggle-icon-hover) {
  opacity: 0;
}

#gk-chatbot-toggle:hover .gk-chatbot-toggle-icon-wrap .gk-chatbot-toggle-icon-hover {
  opacity: 1;
}

#gk-chatbot-toggle > .gk-chatbot-toggle-icon {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  border-radius: 4px;
  object-fit: contain;
}

.gk-chatbot-toggle-label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

#gk-chatbot-window {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  background: var(--global-palette9, #ffffff);
  border: 1px solid var(--global-palette7, #edf2f7);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(26, 32, 44, 0.18);
  flex-shrink: 0;
}

#gk-chatbot-root.gk-chatbot-panel-open #gk-chatbot-window {
  border-radius: 0 12px 12px 0;
  border-left: 0;
}

.gk-chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--global-palette3, #1a202c);
  color: var(--global-palette9, #ffffff);
  padding: 12px 14px;
  font-weight: 600;
  font-family: var(--global-heading-font-family, inherit);
}

.gk-chatbot-header-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gk-chatbot-header-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gk-chatbot-title {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gk-chatbot-header-close {
  flex-shrink: 0;
  margin: 0;
  padding: 4px 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--global-palette9, #ffffff);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.gk-chatbot-header-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gk-chatbot-header-actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.gk-chatbot-debug-open {
  margin: 0;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: transparent;
  color: var(--global-palette9, #ffffff);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.25;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gk-chatbot-debug-open:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

.gk-chatbot-clear {
  flex-shrink: 0;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: transparent;
  color: var(--global-palette9, #ffffff);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.25;
}

.gk-chatbot-clear:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

.gk-chatbot-token-meter {
  flex-shrink: 0;
  padding: 8px 12px 10px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--global-palette6, #718096);
  background: var(--global-palette8, #f7fafc);
  border-top: 1px solid var(--global-palette7, #edf2f7);
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}

.gk-chatbot-token-meter-total,
.gk-chatbot-token-meter-last {
  display: block;
}

.gk-chatbot-token-meter-last {
  margin-top: 4px;
  font-size: 10.5px;
  opacity: 0.95;
}

.gk-chatbot-messages {
  flex: 1;
  padding: 10px;
  background: var(--global-palette8, #f7fafc);
  overflow-y: auto;
}

.gk-chatbot-msg-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  max-width: 100%;
}

.gk-chatbot-msg-row-user {
  flex-direction: row-reverse;
  align-items: flex-end;
}

.gk-chatbot-msg-row-bot {
  flex-direction: row;
  align-items: flex-start;
}

.gk-chatbot-avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--global-palette7, #edf2f7);
  border: 1px solid var(--global-palette7, #edf2f7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gk-chatbot-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gk-chatbot-avatar-user {
  object-fit: contain;
  padding: 2px;
  background: var(--global-palette8, #f7fafc);
  filter: grayscale(1);
}

.gk-chatbot-msg {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.gk-chatbot-msg-user {
  background: var(--global-palette7, #edf2f7);
  color: var(--global-palette4, #2d3748);
  border: 0;
  border-right: 3px solid var(--global-palette-highlight, var(--global-palette1, #2b6cb0));
}

.gk-chatbot-msg-bot {
  background: var(--global-palette9, #ffffff);
  color: var(--global-palette4, #2d3748);
  white-space: normal;
  border: 1px solid var(--global-palette7, #edf2f7);
}

.gk-chatbot-msg-typing {
  min-height: 40px;
  display: flex;
  align-items: center;
}

.gk-chatbot-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 0;
}

.gk-chatbot-typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--global-palette5, #4a5568);
  opacity: 0.35;
  animation: gk-chatbot-typing-bounce 1.2s ease-in-out infinite;
}

.gk-chatbot-typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.gk-chatbot-typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes gk-chatbot-typing-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

.gk-chatbot-typing-gif-wrap {
  line-height: 0;
}

.gk-chatbot-typing-gif {
  display: block;
  max-height: 28px;
  width: auto;
}

.gk-chatbot-msg-bot .gk-chatbot-md {
  word-wrap: break-word;
}

.gk-chatbot-msg-bot .gk-chatbot-md .gk-chatbot-p {
  margin: 0 0 0.65em;
}

.gk-chatbot-msg-bot .gk-chatbot-md .gk-chatbot-p:last-child {
  margin-bottom: 0;
}

.gk-chatbot-msg-bot .gk-chatbot-md strong {
  font-weight: 700;
  color: var(--global-palette3, #1a202c);
}

.gk-chatbot-msg-bot .gk-chatbot-md p:has(> strong:only-child) strong {
  display: block;
  margin: 0.55em 0 0.35em;
}

.gk-chatbot-msg-bot .gk-chatbot-md .gk-chatbot-p:first-child:has(> strong:only-child) strong {
  margin-top: 0;
}

.gk-chatbot-msg-bot .gk-chatbot-md .gk-chatbot-ul {
  margin: 0.35em 0 0.75em;
  padding-left: 1.35em;
  list-style-type: disc;
  list-style-position: outside;
}

.gk-chatbot-msg-bot .gk-chatbot-md .gk-chatbot-ul li {
  margin: 0.3em 0;
  padding-left: 0.2em;
}

.gk-chatbot-msg-bot .gk-chatbot-md .gk-chatbot-ul li::marker {
  color: var(--global-palette1, #2b6cb0);
  font-size: 1.05em;
}

.gk-chatbot-suggest-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0.5em 0 0.75em !important;
}

.gk-chatbot-suggest-li {
  margin: 0 0 8px !important;
  padding: 0 !important;
  list-style: none !important;
}

.gk-chatbot-topic-chip {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  text-align: left;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  color: var(--global-palette4, #2d3748);
  background: var(--global-palette8, #f7fafc);
  border: 1px solid var(--global-palette7, #e2e8f0);
  border-radius: 10px;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.gk-chatbot-topic-chip:hover {
  background: var(--global-palette7, #edf2f7);
  border-color: var(--global-palette6, #cbd5e0);
  color: var(--global-palette3, #1a202c);
}

.gk-chatbot-topic-chip:hover .gk-chatbot-topic-chip-inner {
  color: inherit;
}

.gk-chatbot-topic-chip:focus {
  outline: 2px solid var(--global-palette6, #718096);
  outline-offset: 2px;
  color: var(--global-palette3, #1a202c);
}

.gk-chatbot-topic-chip:focus .gk-chatbot-topic-chip-inner {
  color: inherit;
}

/* Themes often force button:hover { color: #fff }; keep chips readable */
#gk-chatbot-root button.gk-chatbot-topic-chip:hover,
#gk-chatbot-root button.gk-chatbot-topic-chip:focus {
  color: var(--global-palette3, #1a202c) !important;
}

#gk-chatbot-root button.gk-chatbot-topic-chip:hover .gk-chatbot-topic-chip-inner,
#gk-chatbot-root button.gk-chatbot-topic-chip:focus .gk-chatbot-topic-chip-inner {
  color: inherit !important;
}

.gk-chatbot-topic-chip-inner {
  display: block;
}

.gk-chatbot-reco-wrap {
  margin: 0.35em 0 0.85em;
  padding: 10px 12px;
  background: linear-gradient(165deg, var(--global-palette8, #f8fafc) 0%, var(--global-palette9, #ffffff) 55%);
  border: 1px solid var(--global-palette7, #edf2f7);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.gk-chatbot-reco-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
}

.gk-chatbot-reco-li {
  margin: 0 0 12px !important;
  padding: 0 !important;
  list-style: none !important;
}

.gk-chatbot-reco-li:last-child {
  margin-bottom: 0 !important;
}

.gk-chatbot-reco-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "thumb head"
    "desc desc";
  align-items: start;
  column-gap: 12px;
  row-gap: 10px;
  padding: 10px;
  background: var(--global-palette9, #ffffff);
  border: 1px solid var(--global-palette7, #e8edf3);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(26, 32, 44, 0.06);
}

.gk-chatbot-reco-thumb {
  grid-area: thumb;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--global-palette8, #f7fafc);
  border: 1px solid var(--global-palette7, #edf2f7);
}

.gk-chatbot-reco-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
  color: inherit;
  text-decoration: none;
  outline: none;
}

.gk-chatbot-reco-thumb-link:focus-visible {
  box-shadow: 0 0 0 2px var(--global-palette9, #ffffff), 0 0 0 4px var(--global-palette1, #2b6cb0);
  border-radius: 8px;
}

.gk-chatbot-reco-thumb-link--fallback {
  display: flex;
  align-items: stretch;
}

.gk-chatbot-reco-thumb-link--fallback .gk-chatbot-reco-thumb-fallback {
  flex: 1;
}

.gk-chatbot-reco-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gk-chatbot-reco-thumb-fallback {
  display: block;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    var(--global-palette7, #edf2f7),
    var(--global-palette7, #edf2f7) 4px,
    var(--global-palette8, #f7fafc) 4px,
    var(--global-palette8, #f7fafc) 8px
  );
}

.gk-chatbot-reco-main {
  display: contents;
  min-width: 0;
  font-size: 13px;
  line-height: 1.45;
}

.gk-chatbot-reco-main > .gk-chatbot-reco-head {
  grid-area: head;
  margin: 0;
  min-width: 0;
}

.gk-chatbot-reco-card .gk-chatbot-reco-desc {
  grid-area: desc;
  margin: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.gk-chatbot-reco-card .gk-chatbot-reco-desc > *:first-child {
  margin-top: 0;
}

.gk-chatbot-reco-head {
  margin-bottom: 6px;
}

.gk-chatbot-reco-card .gk-chatbot-reco-head {
  margin-bottom: 0;
}

.gk-chatbot-reco-title-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--global-palette3, #1a202c);
  text-decoration: none;
  display: inline-block;
}

.gk-chatbot-reco-title-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gk-chatbot-reco-price {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--global-palette5, #4a5568);
}

.gk-chatbot-msg-bot .gk-chatbot-md a.gk-chatbot-link {
  color: var(--global-palette-highlight, var(--global-palette1, #2b6cb0));
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gk-chatbot-msg-bot .gk-chatbot-md a.gk-chatbot-link:hover {
  text-decoration-thickness: 2px;
}

#gk-chatbot-form {
  display: flex;
  gap: 6px;
  padding: 10px;
  border-top: 1px solid var(--global-palette7, #edf2f7);
  background: var(--global-palette9, #ffffff);
  flex-shrink: 0;
  align-items: center;
}

#gk-chatbot-input {
  flex: 1;
  border: 1px solid var(--global-palette6, #718096);
  border-radius: 8px;
  padding: 8px;
  font-family: inherit;
  color: var(--global-palette4, #2d3748);
  background: var(--global-palette9, #ffffff);
}

#gk-chatbot-input::placeholder {
  color: var(--global-palette6, #718096);
}

#gk-chatbot-form button {
  border: 0;
  border-radius: 8px;
  background: var(--global-palette-btn-bg, #2b6cb0);
  color: var(--global-palette-btn, #ffffff);
  padding: 8px 12px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}

#gk-chatbot-form button:hover {
  background: var(--global-palette-btn-bg-hover, #215387);
  color: var(--global-palette-btn-hover, #ffffff);
}

.gk-chatbot-debug-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.gk-chatbot-debug-overlay[hidden] {
  display: none !important;
}

.gk-chatbot-debug-panel {
  width: min(920px, 100%);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  background: var(--global-palette9, #ffffff);
  color: var(--global-palette4, #2d3748);
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.25);
  border: 1px solid var(--global-palette7, #edf2f7);
  overflow: hidden;
  font-family: var(--global-body-font-family, inherit);
}

.gk-chatbot-debug-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--global-palette7, #edf2f7);
  border-bottom: 1px solid var(--global-palette7, #edf2f7);
  font-weight: 600;
}

.gk-chatbot-debug-title {
  min-width: 0;
  font-size: 15px;
}

.gk-chatbot-debug-close {
  margin: 0;
  padding: 4px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--global-palette4, #2d3748);
}

.gk-chatbot-debug-close:hover {
  background: var(--global-palette8, #f7fafc);
}

.gk-chatbot-debug-pre {
  margin: 0;
  padding: 12px 14px;
  flex: 1;
  overflow: auto;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--global-palette9, #ffffff);
}

.gk-chatbot-exit-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(15, 23, 42, 0.68);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  padding-top: max(12px, env(safe-area-inset-top, 0px));
  box-sizing: border-box;
}

.gk-chatbot-exit-overlay[hidden] {
  display: none !important;
}

.gk-chatbot-exit-panel {
  position: relative;
  width: 30vw;
  max-width: 92vw;
  box-sizing: border-box;
  max-height: min(88vh, 720px);
  overflow: auto;
  background: var(--global-palette9, #ffffff);
  color: var(--global-palette4, #2d3748);
  border-radius: 14px;
  padding: 0;
  margin-top: 25vh;
  transform: translateY(-50%);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  font-size: 15px;
  line-height: 1.55;
}

.gk-chatbot-exit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--global-palette3, #1a202c);
  color: var(--global-palette9, #ffffff);
  border-radius: 14px 14px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gk-chatbot-exit-head-title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  font-family: var(--global-heading-font-family, inherit);
}

.gk-chatbot-exit-close {
  position: relative;
  top: auto;
  right: auto;
  flex-shrink: 0;
  margin: -4px -6px -4px 0;
  padding: 4px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--global-palette9, #ffffff);
}

.gk-chatbot-exit-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.gk-chatbot-exit-body {
  padding: 18px 20px 16px;
}

.gk-chatbot-exit-body p:first-child {
  margin-top: 0;
}

.gk-chatbot-exit-actions {
  margin: 0;
  padding: 16px 20px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
}

.gk-chatbot-exit-open-chat {
  border: 0;
  border-radius: 999px;
  background: var(--global-palette-btn-bg, #2b6cb0);
  color: var(--global-palette-btn, #ffffff);
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.gk-chatbot-exit-open-chat:hover {
  background: var(--global-palette-btn-bg-hover, #215387);
}

.gk-chatbot-exit-dismiss {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  color: var(--global-palette4, #2d3748);
  text-decoration: underline;
  cursor: pointer;
}

.gk-chatbot-exit-dismiss:hover {
  opacity: 0.88;
}
