.eeaoc-chat-launcher-wrap {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 2147483000;
}

.eeaoc-chat[hidden] {
  display: none !important;
}

.eeaoc-chat-launcher,
.eeaoc-chat__close,
.eeaoc-chat__send,
.eeaoc-chat__prompt {
  appearance: none;
  border: 0;
  cursor: pointer;
}

.eeaoc-chat-launcher {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: #1f6f2d;
  color: #fff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}

.eeaoc-chat-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .22);
}

.eeaoc-chat-launcher__icon {
  line-height: 0;
}

.eeaoc-chat-launcher__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font: 700 11px/20px Arial, sans-serif;
  border: 2px solid #fff;
}

.eeaoc-chat {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 2147483001;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}

.eeaoc-chat.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.eeaoc-chat__card {
  width: min(356px, calc(100vw - 20px));
  height: min(468px, calc(100vh - 90px));
  background: #f5f6f5;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .18);
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  transform: translateY(18px) scale(.98);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}

.eeaoc-chat.is-open .eeaoc-chat__card,
.eeaoc-chat.is-open .eeaoc-chat__close {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.eeaoc-chat__header {
  background: #1f6f2d;
  color: #fff;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eeaoc-chat__brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .14);
  color: #c7e28c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.eeaoc-chat__brand-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.eeaoc-chat__brand-copy strong,
.eeaoc-chat__brand-copy span {
  color: #fff;
}

.eeaoc-chat__brand-copy strong {
  font-size: 16px;
  line-height: 1.2;
}

.eeaoc-chat__brand-copy span {
  font-size: 12px;
  opacity: .92;
}

.eeaoc-chat__messages {
  padding: 18px 12px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eeaoc-chat__bubble {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.55;
  word-break: break-word;
}

.eeaoc-chat__bubble a {
  color: #1f6f2d;
  font-weight: 600;
}

.eeaoc-chat__bubble--assistant {
  background: #e2ece2;
  color: #18331d;
  border: 1px solid #c4d7c4;
  align-self: flex-start;
}

.eeaoc-chat__bubble--user {
  background: #1f6f2d;
  color: #fff;
  align-self: flex-end;
}

.eeaoc-chat__prompts {
  padding: 0 10px 10px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.eeaoc-chat__prompt {
  white-space: nowrap;
  background: #e5efe3;
  color: #2f6939;
  border: 1px solid #c9dcc6;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  line-height: 1;
}

.eeaoc-chat__prompt:hover {
  background: #d9e8d6;
}

.eeaoc-chat__form {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 10px;
  padding: 0 12px 12px;
  align-items: end;
}

.eeaoc-chat__form textarea {
  min-height: 44px;
  max-height: 120px;
  resize: none;
  width: 100%;
  box-sizing: border-box;
  border-radius: 11px;
  border: 1px solid #b9d0b6;
  background: #fff;
  padding: 11px 13px;
  font-size: 15px;
  line-height: 1.35;
  color: #17341b;
  outline: none;
}

.eeaoc-chat__form textarea:focus {
  border-color: #1f6f2d;
  box-shadow: 0 0 0 3px rgba(31, 111, 45, .14);
}

.eeaoc-chat__send {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #1f6f2d;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.eeaoc-chat__send:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.eeaoc-chat__footer {
  padding: 0 14px 12px;
  text-align: center;
  font-size: 11px;
  color: #8a9088;
}

.eeaoc-chat__close {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #1f6f2d;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .18);
  transform: translateY(18px) scale(.98);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}

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

.eeaoc-chat__typing span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(31, 111, 45, .6);
  animation: eeaocTyping 1s infinite ease-in-out;
}

.eeaoc-chat__typing span:nth-child(2) {
  animation-delay: .15s;
}

.eeaoc-chat__typing span:nth-child(3) {
  animation-delay: .3s;
}

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

@media (max-width: 640px) {
  .eeaoc-chat-launcher-wrap {
    right: 18px;
    bottom: 18px;
  }

  .eeaoc-chat {
    right: 8px;
    left: 8px;
    bottom: 8px;
    justify-content: flex-end;
  }

  .eeaoc-chat__card {
    width: calc(100vw - 16px);
    height: min(78vh, 520px);
  }

  .eeaoc-chat__close {
    width: 50px;
    height: 50px;
    font-size: 34px;
  }
}
