:root {
  --gc-font-sans: "Manrope", "Segoe UI", sans-serif;
  --gc-bg: linear-gradient(180deg, #f6f7f5 0%, #ffffff 100%);
  --gc-surface: rgba(255, 255, 255, 0.96);
  --gc-surface-muted: #f2f6ee;
  --gc-border: rgba(51, 51, 51, 0.16);
  --gc-shadow: 0 22px 56px rgba(0, 0, 0, 0.22);
  --gc-text: #2f2f2f;
  --gc-text-soft: #5d5d5d;
  --gc-accent: rgb(120, 190, 30);
  --gc-accent-strong: #5b9711;
  --gc-hover: rgb(51, 51, 51);
  --gc-white: #ffffff;
}

#globals-chatbot-root {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  font-family: var(--gc-font-sans);
  color: var(--gc-text);
}

.gc-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid white;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gc-accent-strong) 0%, var(--gc-accent) 100%);
  color: var(--gc-white);
  padding: 14px 18px;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(91, 151, 17, 0.35);
  cursor: pointer;
  transition: background 180ms ease, transform 140ms ease;
}

.gc-launcher:hover {
  background: var(--gc-hover);
}

.gc-launcher:active {
  transform: translateY(1px);
}

.gc-launcher__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #f5ffe9;
  box-shadow: 0 0 0 6px rgba(245, 255, 233, 0.22);
}

.gc-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: min(430px, calc(100vw - 32px));
  max-height: min(82vh, 760px);
  border: 1px solid var(--gc-border);
  border-radius: 26px;
  background: var(--gc-bg);
  box-shadow: var(--gc-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transition: opacity 180ms ease, transform 180ms ease;
}

.gc-panel--hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.96);
}

.gc-header {
  position: relative;
  padding: 22px 22px 16px;
  background:
    radial-gradient(circle at top right, rgba(120, 190, 30, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 247, 245, 0.93));
  border-bottom: 1px solid var(--gc-border);
  width: auto;
}

.gc-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gc-accent-strong);
}

.gc-title {
  margin: 0;
  font-size: clamp(18px, 4vw, 24px);
  line-height: 1.04;
  padding-right: 58px;
}

.gc-subtitle {
  margin: 10px 0 0;
  padding-right: 58px;
  color: var(--gc-text-soft);
  font-size: 14px;
  line-height: 1.45;
}

.gc-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--gc-border);
  background: rgba(255, 255, 255, 0.88);
  color: var(--gc-text);
  border-radius: 999px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.gc-body {
  display: grid;
  gap: 14px;
  padding: 16px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.gc-card {
  border: 1px solid rgba(51, 51, 51, 0.13);
  border-radius: 20px;
  padding: 16px;
  background: var(--gc-surface);
  backdrop-filter: blur(8px);
}

.gc-card--muted {
  background: var(--gc-surface-muted);
}

.gc-card--chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.gc-card--hidden {
  display: none !important;
}

.gc-card__title {
  margin: 0 0 8px;
  font-size: 17px;
}

.gc-card__text {
  margin: 0 0 12px;
  color: var(--gc-text-soft);
  font-size: 14px;
  line-height: 1.45;
}

.gc-form {
  display: grid;
  gap: 12px;
}

.gc-field {
  display: grid;
  gap: 6px;
}

.gc-field__label {
  font-size: 13px;
  font-weight: 800;
}

.gc-field__input {
  width: 100%;
  border: 1px solid rgba(51, 51, 51, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  padding: 13px 14px;
  font: inherit;
  color: var(--gc-text);
  box-sizing: border-box;
}

.gc-field__input:focus {
  outline: 2px solid rgba(120, 190, 30, 0.24);
  border-color: rgba(120, 190, 30, 0.68);
}

.gc-field__input--error {
  border-color: rgba(166, 39, 39, 0.72);
  background: rgba(255, 246, 246, 0.96);
}

textarea.gc-field__input {
  resize: vertical;
  min-height: 88px;
  max-height: 150px;
  line-height: 1.5;
  font-family: inherit;
}

.gc-field__error {
  color: #9e2525;
  font-size: 12px;
  line-height: 1.4;
}

.gc-field__error[hidden],
.gc-form__status[hidden] {
  display: none !important;
}

.gc-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.gc-consent__checkbox {
  margin-top: 2px;
}

.gc-consent__text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--gc-text-soft);
}

.gc-consent__link {
  color: var(--gc-accent-strong);
  font-weight: 700;
  text-decoration: underline;
}

.gc-consent--error .gc-consent__text {
  color: #9e2525;
}

.gc-submit,
.gc-composer__button {
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 800;
  color: var(--gc-white);
  background: linear-gradient(135deg, var(--gc-accent-strong) 0%, var(--gc-accent) 100%);
  cursor: pointer;
  transition: background 170ms ease;
}

.gc-submit {
  padding: 14px;
}

.gc-submit:hover,
.gc-composer__button:hover {
  background: var(--gc-hover);
}

.gc-submit:disabled,
.gc-composer__button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.gc-form__status {
  margin: 2px 0 0;
  font-size: 12px;
  color: #9e2525;
}

.gc-messages {
  display: grid;
  gap: 10px;
  overflow-y: auto;
  min-height: 0;
  flex: 1;
  padding-right: 4px;
}

.gc-message {
  max-width: 86%;
  border-radius: 18px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
}

.gc-message--bot {
  background: rgba(255, 255, 255, 0.96);
  color: var(--gc-text);
}

.gc-message--user {
  margin-left: auto;
  background: rgba(120, 190, 30, 0.16);
  color: #2f5b00;
}

.gc-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
  padding-bottom: 2px;
}

.gc-composer__input {
  min-width: 0;
  border: 1px solid rgba(51, 51, 51, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  padding: 13px 14px;
  font: inherit;
  color: var(--gc-text);
}

.gc-composer__input:focus {
  outline: 2px solid rgba(120, 190, 30, 0.24);
  border-color: rgba(120, 190, 30, 0.68);
}

.gc-composer__button {
  padding: 0 16px;
}

@media (max-width: 640px) {
  #globals-chatbot-root {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .gc-launcher {
    margin-left: auto;
  }

  .gc-panel {
    width: min(430px, calc(100vw - 24px));
    max-height: calc(100dvh - 84px);
  }

  .gc-title {
    font-size: clamp(28px, 7vw, 36px);
  }

  .gc-composer {
    grid-template-columns: 1fr;
  }
}

.gc-turnstile {
  margin: 14px 0;
  display: flex;
  justify-content: center;
}

.gc-turnstile iframe {
  display: block;
}
