@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&display=swap");

.all-end-hybrid-chatbot {
  --mgf-chat-deep: #0f43a0;
  --mgf-chat-deep-soft: #1b6fcb;
  --mgf-chat-cyan: #1ca7e8;
  --mgf-chat-green: #78be13;
  --mgf-chat-green-deep: #4f9800;
  --mgf-chat-paper: #f3fbff;
  --mgf-chat-line: #d4e6f1;
  --mgf-chat-copy: #54708a;
  --mgf-chat-card: #ffffff;
  --mgf-chat-shadow: rgba(13, 67, 160, 0.18);
  font-family: "Montserrat", "Segoe UI", sans-serif;
}

.all-end-hybrid-chatbot *,
.all-end-hybrid-chatbot *::before,
.all-end-hybrid-chatbot *::after {
  box-sizing: border-box;
}

.all-end-hybrid-chatbot--floating {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999999;
  width: min(calc(100vw - 32px), 390px);
}

.all-end-hybrid-chatbot--embedded {
  width: min(100%, 420px);
}

.all-end-hybrid-chatbot__launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 58px;
  padding: 0.95rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mgf-chat-deep), var(--mgf-chat-green));
  color: #ffffff;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 34px var(--mgf-chat-shadow);
}

.all-end-hybrid-chatbot--floating .all-end-hybrid-chatbot__launcher {
  margin-left: auto;
}

.all-end-hybrid-chatbot__launcher-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #e8ffd1;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18);
}

.all-end-hybrid-chatbot__panel {
  width: min(92vw, 390px);
  border: 1px solid var(--mgf-chat-line);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(120, 190, 19, 0.14), transparent 28%),
    radial-gradient(circle at top left, rgba(28, 167, 232, 0.14), transparent 32%),
    linear-gradient(180deg, #ffffff, #f5fbff 66%, #eef7ff);
  box-shadow: 0 28px 58px var(--mgf-chat-shadow);
  overflow: hidden;
}

.all-end-hybrid-chatbot--floating .all-end-hybrid-chatbot__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: min(calc(100vw - 32px), 390px);
  max-height: min(78svh, 680px);
}

.all-end-hybrid-chatbot--embedded .all-end-hybrid-chatbot__panel {
  width: 100%;
  margin-top: 0;
}

.all-end-hybrid-chatbot--floating.all-end-hybrid-chatbot--open .all-end-hybrid-chatbot__launcher {
  display: none !important;
}

.all-end-hybrid-chatbot__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem 1.2rem 1rem;
  background: linear-gradient(135deg, rgba(15, 67, 160, 0.98), rgba(28, 167, 232, 0.96) 62%, rgba(120, 190, 19, 0.94));
  color: #ffffff;
}

.all-end-hybrid-chatbot__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.all-end-hybrid-chatbot__title {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.1;
}

.all-end-hybrid-chatbot__subtitle {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
}

.all-end-hybrid-chatbot__close {
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.all-end-hybrid-chatbot__messages {
  display: grid;
  gap: 0.8rem;
  max-height: min(52svh, 420px);
  padding: 1rem 1rem 0.3rem;
  overflow-y: auto;
}

.all-end-hybrid-chatbot__message {
  max-width: 88%;
  padding: 0.85rem 0.95rem;
  border-radius: 20px;
  line-height: 1.6;
  font-size: 0.94rem;
  word-break: break-word;
}

.all-end-hybrid-chatbot__message--assistant {
  justify-self: start;
  border: 1px solid var(--mgf-chat-line);
  background: #ffffff;
  color: var(--mgf-chat-deep);
}

.all-end-hybrid-chatbot__message--user {
  justify-self: end;
  background: linear-gradient(135deg, var(--mgf-chat-deep), var(--mgf-chat-deep-soft));
  color: #ffffff;
}

.all-end-hybrid-chatbot__suggestions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  padding: 0.7rem 1rem 0.15rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.all-end-hybrid-chatbot__suggestions::-webkit-scrollbar {
  display: none;
}

.all-end-hybrid-chatbot__suggestion {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(120, 190, 19, 0.22);
  border-radius: 999px;
  background: rgba(242, 251, 238, 0.96);
  color: var(--mgf-chat-deep);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.all-end-hybrid-chatbot__composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: end;
  padding: 1rem;
}

.all-end-hybrid-chatbot__input {
  width: 100%;
  min-height: 58px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--mgf-chat-line);
  border-radius: 18px;
  background: #ffffff;
  color: var(--mgf-chat-deep);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
}

.all-end-hybrid-chatbot__input:focus {
  outline: 2px solid rgba(24, 181, 227, 0.18);
  border-color: var(--mgf-chat-green);
}

.all-end-hybrid-chatbot__send {
  min-height: 54px;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mgf-chat-green), var(--mgf-chat-cyan));
  color: #ffffff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(24, 181, 227, 0.22);
}

.all-end-hybrid-chatbot__send:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
}

@media (max-width: 640px) {
  .all-end-hybrid-chatbot--floating {
    right: 12px;
    left: auto;
    bottom: 12px;
    width: min(calc(100vw - 24px), 340px);
  }

  .all-end-hybrid-chatbot--floating .all-end-hybrid-chatbot__panel {
    width: min(calc(100vw - 24px), 340px);
    max-height: min(72svh, 560px);
    bottom: calc(100% + 10px);
    border-radius: 24px;
  }

  .all-end-hybrid-chatbot__launcher {
    min-height: 52px;
    padding: 0.8rem 1.05rem;
    font-size: 0.9rem;
  }

  .all-end-hybrid-chatbot__header {
    padding: 1rem 1rem 0.85rem;
  }

  .all-end-hybrid-chatbot__title {
    font-size: 1.1rem;
  }

  .all-end-hybrid-chatbot__close {
    min-height: 34px;
    padding: 0.45rem 0.7rem;
    font-size: 0.8rem;
  }

  .all-end-hybrid-chatbot__messages {
    gap: 0.65rem;
    max-height: min(38svh, 290px);
    padding: 0.85rem 0.85rem 0.2rem;
  }

  .all-end-hybrid-chatbot__message {
    max-width: 92%;
    padding: 0.75rem 0.85rem;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .all-end-hybrid-chatbot__suggestions {
    gap: 0.4rem;
    padding: 0.6rem 0.85rem 0.05rem;
  }

  .all-end-hybrid-chatbot__suggestion {
    min-height: 34px;
    padding: 0.35rem 0.62rem;
    font-size: 0.76rem;
  }

  .all-end-hybrid-chatbot__composer {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 0.85rem;
  }

  .all-end-hybrid-chatbot__input {
    min-height: 50px;
    padding: 0.8rem 0.9rem;
    font-size: 0.9rem;
  }

  .all-end-hybrid-chatbot__send {
    min-height: 48px;
    padding: 0.8rem 1rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 420px) {
  .all-end-hybrid-chatbot--floating {
    right: 8px;
    bottom: 8px;
    width: min(calc(100vw - 16px), 332px);
  }

  .all-end-hybrid-chatbot--floating .all-end-hybrid-chatbot__panel {
    width: min(calc(100vw - 16px), 332px);
    max-height: min(70svh, 520px);
  }
}
