:root {
  --cb-primary: #1ea34a;
  --cb-primary-dark: #14873b;
  --cb-primary-soft: #e8f6ee;
  --cb-bg: #ffffff;
  --cb-surface: #f6fbf7;
  --cb-surface-2: #eef7f1;
  --cb-border: #d9e6dc;
  --cb-text: #223126;
  --cb-text-soft: #617067;
  --cb-shadow: 0 34px 100px rgba(19, 40, 23, 0.34), 0 16px 44px rgba(19, 40, 23, 0.20);
}

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

#gv-chatbot-root {
  position: fixed;
  right: 30px;
  bottom: 25px;
  z-index: 99999;
  font-family: Inter, Arial, sans-serif;
}

.gv-chatbot-toggle {
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 999px;
  background: var(--cb-primary);
  color: #fff;
  box-shadow: var(--cb-shadow);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.gv-chatbot-toggle:hover,
.gv-chatbot-toggle:focus-visible {
  background: var(--cb-primary-dark);
  transform: translateY(-5px);
}

.gv-chatbot-toggle svg {
  width: 28px;
  height: 28px;
}

.gv-chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: 392px;
  max-width: calc(100vw - 28px);
  height: 664px;
  max-height: calc(100vh - 110px);
  background: linear-gradient(180deg, #fff 0%, #fcfdfc 100%);
  border: 1px solid rgba(24, 86, 39, 0.08);
  border-radius: 22px;
  box-shadow: var(--cb-shadow);
  overflow: hidden;
  display: none;
  flex-direction: column;
}

#gv-chatbot-root.is-open .gv-chatbot-panel {
  display: flex;
}

.gv-chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  min-height: 54px;
  background: linear-gradient(180deg, #fbfdfb 0%, #ffffff 100%);
  border-bottom: 1px solid var(--cb-border);
  flex-shrink: 0;
}

.gv-chatbot-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.gv-chatbot-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  color: var(--cb-text);
  font-weight: 700;
  white-space: nowrap;
}

.gv-chatbot-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  font-size: 12px;
  color: var(--cb-text-soft);
  white-space: nowrap;
  flex-shrink: 0;
}

.gv-chatbot-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cb-primary);
  box-shadow: 0 0 0 4px rgba(30, 163, 74, 0.12);
}

.gv-chatbot-header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.gv-chatbot-minimize,
.gv-chatbot-close {
  width: 25px;
  height: 25px;
  border: 0;
  background: transparent;
  color: var(--cb-text-soft);
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.gv-chatbot-minimize {
  font-size: 22px;
  line-height: 1;
}

.gv-chatbot-close {
  font-size: 24px;
  line-height: 1;
}

.gv-chatbot-minimize:hover,
.gv-chatbot-close:hover,
.gv-chatbot-minimize:focus-visible,
.gv-chatbot-close:focus-visible {
  background: #f1f5f2;
  color: var(--cb-text);
}

.gv-chatbot-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 12px 12px;
  margin: 0;
  background: linear-gradient(180deg, var(--cb-surface) 0%, #fdfefe 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-content: flex-start;
  scrollbar-width: thin;
  scrollbar-color: var(--cb-primary) transparent;
}

.gv-chatbot-body::-webkit-scrollbar {
  width: 8px;
}

.gv-chatbot-body::-webkit-scrollbar-thumb {
  background: rgba(30, 163, 74, 0.8);
  border-radius: 999px;
}

.gv-chatbot-bubble {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
  margin: 0;
}

.gv-chatbot-bubble.bot {
  background: #fff;
  border: 1px solid var(--cb-border);
  color: var(--cb-text);
  align-self: flex-start;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.03);
}

.gv-chatbot-bubble.user {
  background: var(--cb-primary);
  color: #fff;
  align-self: flex-end;
}

.gv-chatbot-bubble.question {
  background: linear-gradient(180deg, #ffffff 0%, #f3faf5 100%);
  border-color: rgba(30, 163, 74, 0.28);
  font-weight: 700;
}

.gv-chatbot-options,
.gv-chatbot-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
}

.gv-chatbot-actions-split {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  align-items: stretch;
}

.gv-chatbot-option,
.gv-chatbot-action {
  width: 100%;
  border: 1px solid var(--cb-border);
  background: #fff;
  color: var(--cb-text);
  border-radius: 12px;
  padding: 11px 13px;
  text-align: left;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
  transition: all .18s ease;
  margin: 0;
  min-width: 0;
}

.gv-chatbot-actions-split .gv-chatbot-action.back {
  width: auto;
  white-space: nowrap;
  padding-inline: 14px;
}

.gv-chatbot-action.full {
  width: 100%;
}

.gv-chatbot-option:hover,
.gv-chatbot-action:hover,
.gv-chatbot-option:focus-visible,
.gv-chatbot-action:focus-visible {
  border-color: var(--cb-primary);
  box-shadow: 0 8px 18px rgba(30, 163, 74, 0.10);
  transform: translateY(-1px);
}

.gv-chatbot-action.primary {
  background: var(--cb-primary);
  color: #fff;
  border-color: var(--cb-primary);
  font-weight: 600;
}

.gv-chatbot-action.secondary {
  background: #fff;
  color: var(--cb-text);
}

.gv-chatbot-form {
  display: grid;
  gap: 8px;
  margin: 0;
}

.gv-chatbot-form input {
  width: 100%;
  border: 1px solid var(--cb-border);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
  color: var(--cb-text);
  background: #fff;
}

.gv-chatbot-form input:focus {
  outline: none;
  border-color: var(--cb-primary);
  box-shadow: 0 0 0 3px rgba(30, 163, 74, 0.12);
}

.gv-chatbot-embedded-map {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 220px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--cb-border);
  background: #fff;
  margin: 0;
}

.gv-chatbot-embedded-map iframe {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
  display: block;
}

@media (max-width: 767px) {
  #gv-chatbot-root {
    right: 15px;
    bottom: 15px;
  }

  .gv-chatbot-toggle {
    width: 50px;
    height: 50px;
  }

  .gv-chatbot-panel {
    position: fixed;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 8px;
    width: min(calc(100vw - 16px), 420px);
    height: min(84vh, 720px);
    max-height: calc(100vh - 16px);
    border-radius: 18px;
  }

  .gv-chatbot-bubble {
    max-width: 94%;
  }

  .gv-chatbot-brand {
    gap: 14px;
  }
}