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

.eeaoc-chatbot-root {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99999;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1d2b1f;
}

.eeaoc-chatbot-launcher {
  min-width: 186px;
  height: 64px;
  padding: 0 18px 0 13px;
  gap: 10px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(145deg, var(--eeaoc-primary, #2e7d32), #174d1b);
  box-shadow: 0 18px 40px rgba(20, 83, 45, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.eeaoc-chatbot-launcher:hover,
.eeaoc-chatbot-launcher:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 22px 46px rgba(20, 83, 45, .42);
  outline: none;
}

.eeaoc-launcher-text {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
}

.eeaoc-wheat-icon,
.eeaoc-header-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.eeaoc-wheat-icon svg {
  width: 37px;
  height: 37px;
}

.eeaoc-chatbot-panel {
  width: min(390px, calc(100vw - 28px));
  height: min(620px, calc(100vh - 36px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(46, 125, 50, .16);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
}

.eeaoc-chatbot-panel[hidden] {
  display: none;
}

.eeaoc-chatbot-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--eeaoc-primary, #2e7d32), #1b5e20);
}

.eeaoc-header-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  flex: 0 0 auto;
}

.eeaoc-header-mark svg {
  width: 27px;
  height: 27px;
}

.eeaoc-chatbot-header strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: .01em;
}

.eeaoc-chatbot-header span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  opacity: .86;
}

.eeaoc-chatbot-close {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.eeaoc-chatbot-close:hover,
.eeaoc-chatbot-close:focus-visible {
  background: rgba(255, 255, 255, .24);
  outline: none;
}

.eeaoc-chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: linear-gradient(180deg, var(--eeaoc-secondary, #e8f5e9), #fff 36%);
  scroll-behavior: smooth;
}

.eeaoc-message {
  max-width: 92%;
  margin: 0 0 12px;
  animation: eeaocFadeUp .22s ease both;
}

.eeaoc-message p {
  margin: 0;
  line-height: 1.45;
}

.eeaoc-message-bot {
  margin-right: auto;
  padding: 12px 13px;
  border-radius: 16px 16px 16px 5px;
  background: #fff;
  border: 1px solid rgba(46, 125, 50, .12);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
  font-size: 14px;
}

.eeaoc-message-user {
  margin-left: auto;
  padding: 11px 13px;
  border-radius: 16px 16px 5px 16px;
  background: var(--eeaoc-primary, #2e7d32);
  color: #fff;
  font-size: 14px;
}

.eeaoc-answer-section + .eeaoc-answer-section {
  margin-top: 11px;
}

.eeaoc-answer-section strong {
  display: block;
  margin-bottom: 4px;
  color: #153d18;
  font-size: 13px;
}

.eeaoc-links {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.eeaoc-links li {
  padding: 9px 0;
  border-top: 1px solid rgba(46, 125, 50, .11);
}

.eeaoc-links a {
  display: block;
  color: var(--eeaoc-primary, #2e7d32);
  font-weight: 700;
  text-decoration: none;
}

.eeaoc-links a:hover,
.eeaoc-links a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.eeaoc-links span {
  display: block;
  margin-top: 3px;
  color: #667067;
  font-size: 11px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.eeaoc-chatbot-form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 12px;
  background: #fff;
  border-top: 1px solid rgba(46, 125, 50, .13);
}

.eeaoc-chatbot-input {
  flex: 1;
  min-height: 44px;
  max-height: 110px;
  resize: none;
  border: 1px solid rgba(46, 125, 50, .23);
  border-radius: 14px;
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  outline: none;
}

.eeaoc-chatbot-input:focus {
  border-color: var(--eeaoc-primary, #2e7d32);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, .12);
}

.eeaoc-chatbot-send {
  height: 44px;
  border: 0;
  border-radius: 14px;
  padding: 0 14px;
  color: #fff;
  background: var(--eeaoc-primary, #2e7d32);
  font-weight: 700;
  cursor: pointer;
}

.eeaoc-chatbot-send:hover,
.eeaoc-chatbot-send:focus-visible {
  filter: brightness(.94);
  outline: none;
}

.eeaoc-chatbot-form.is-loading .eeaoc-chatbot-send {
  opacity: .62;
  pointer-events: none;
}

.eeaoc-loading {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #315a34;
}

.eeaoc-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.eeaoc-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: block;
  background: var(--eeaoc-primary, #2e7d32);
  animation: eeaocTyping 1s infinite ease-in-out;
}

.eeaoc-dots i:nth-child(2) {
  animation-delay: .14s;
}

.eeaoc-dots i:nth-child(3) {
  animation-delay: .28s;
}

.eeaoc-loading-text {
  font-size: 13px;
}

@keyframes eeaocTyping {
  0%, 80%, 100% { opacity: .35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

@keyframes eeaocFadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  .eeaoc-chatbot-root {
    right: 14px;
    bottom: 14px;
  }

  .eeaoc-chatbot-launcher {
    min-width: 0;
    width: 64px;
    height: 64px;
    padding: 0;
  }

  .eeaoc-launcher-text {
    display: none;
  }

  .eeaoc-chatbot-panel {
    width: calc(100vw - 28px);
    height: min(640px, calc(100vh - 28px));
    border-radius: 20px;
  }
}
