.haajri-chatbot {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  font-family: inherit;
}

.haajri-chatbot * {
  box-sizing: border-box;
}

.haajri-mobile-menu .haajri-mobile-menu-bar {
  width: min(92vw, 390px);
  padding: 18px;
  background: #fff !important;
  color: #191e3b !important;
}

.haajri-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(25, 30, 59, 0.1);
  background: transparent !important;
}

.haajri-mobile-menu-logo {
  display: inline-flex;
  width: 138px;
}

.haajri-mobile-menu-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.haajri-mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid rgba(25, 30, 59, 0.14);
  border-radius: 50%;
  background: #fff;
  color: #191e3b;
  cursor: pointer;
}

.haajri-mobile-menu-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 24px;
}

.haajri-mobile-menu-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(25, 30, 59, 0.14);
  border-radius: 14px;
  background: #f7f7f4;
  color: rgba(25, 30, 59, 0.58);
}

.haajri-mobile-menu-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #191e3b;
  font: inherit;
  font-size: 14px;
}

.haajri-mobile-menu-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: #fed035;
  color: #111;
  cursor: pointer;
}

.haajri-mobile-search-status {
  margin-top: -8px;
  color: rgba(25, 30, 59, 0.58);
  font-size: 12px;
  line-height: 1.35;
}

.haajri-mobile-menu-label {
  margin: 0 0 8px;
  color: rgba(25, 30, 59, 0.58);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.haajri-mobile-menu-links {
  display: grid;
  gap: 8px;
}

.haajri-mobile-menu-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid rgba(25, 30, 59, 0.1);
  border-radius: 12px;
  background: #fff;
  color: #191e3b;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.haajri-mobile-menu-links a:hover,
.haajri-mobile-menu-links a:focus-visible {
  border-color: rgba(254, 208, 53, 0.88);
  background: #fff9df;
  color: #111;
}

.haajri-mobile-menu-dropdown {
  border: 1px solid rgba(25, 30, 59, 0.1);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.haajri-mobile-menu-dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 11px 13px;
  color: #191e3b;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}

.haajri-mobile-menu-dropdown summary::-webkit-details-marker {
  display: none;
}

.haajri-mobile-menu-dropdown summary i {
  transition: transform 0.18s ease;
}

.haajri-mobile-menu-dropdown[open] summary {
  border-bottom: 1px solid rgba(25, 30, 59, 0.08);
  background: #fff9df;
}

.haajri-mobile-menu-dropdown[open] summary i {
  transform: rotate(180deg);
}

.haajri-mobile-menu-sublinks {
  display: grid;
  gap: 6px;
  padding: 8px;
  background: #f7f7f4;
}

.haajri-mobile-menu-sublinks a {
  min-height: 38px;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 13px;
  background: #fff;
}

.haajri-mobile-menu-links a.is-hidden,
.haajri-mobile-menu-group.is-hidden {
  display: none;
}

.haajri-mobile-location-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.haajri-mobile-location-grid a {
  min-height: 38px;
  padding: 9px 11px;
  font-size: 13px;
}

.haajri-mobile-menu-empty {
  display: none;
  padding: 12px;
  border: 1px dashed rgba(25, 30, 59, 0.18);
  border-radius: 12px;
  color: rgba(25, 30, 59, 0.64);
  font-size: 13px;
  text-align: center;
}

.haajri-mobile-menu-empty.is-visible {
  display: block;
}

.haajri-mobile-ai {
  padding-top: 2px;
}

.haajri-mobile-ai .haajri-footer-ai-icons {
  gap: 9px;
}

.haajri-footer-ai {
  max-width: 260px;
}

.haajri-footer-ai-under-badges {
  margin-top: 2px;
}

.haajri-footer-ai-title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.haajri-footer-ai-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.haajri-ai-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.haajri-ai-app img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.haajri-ai-app:hover,
.haajri-ai-app:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(254, 208, 53, 0.85);
  color: #fff;
}

.haajri-ai-app.is-chatgpt {
  background: #101010;
}

.haajri-ai-app.is-gemini {
  background: linear-gradient(135deg, #2f7df6 0%, #8b5cf6 52%, #ec4899 100%);
}

.haajri-ai-app.is-claude {
  background: #cc785c;
}

.haajri-ai-app.is-perplexity {
  background: #0b5562;
}

.haajri-ai-app.is-grok {
  background: #202124;
}

.haajri-ai-app.is-copied {
  border-color: #fed035;
}

.haajri-chatbot-launcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid rgba(254, 208, 53, 0.65);
  border-radius: 50%;
  background: #111;
  color: #fed035;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 38px rgba(17, 17, 17, 0.14);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.haajri-chatbot-launcher:hover {
  transform: translateY(-2px);
  border-color: rgba(254, 208, 53, 0.85);
}

.haajri-chatbot-launcher-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fed035;
  color: #111;
  font-size: 18px;
}

.haajri-chatbot-launcher-gif {
  display: block;
  width: 86%;
  height: 86%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.haajri-chatbot-launcher-text {
  display: block;
  white-space: nowrap;
  line-height: 1;
}

.haajri-chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  display: none;
  width: min(380px, calc(100vw - 32px));
  max-height: min(660px, calc(100vh - 112px));
  overflow: hidden;
  border: 1.5px solid rgba(25, 30, 59, 0.16);
  border-radius: 18px;
  background: #fff;
  color: #191e3b;
  box-shadow: 0 24px 70px rgba(25, 30, 59, 0.16);
}

.haajri-chatbot.is-open .haajri-chatbot-panel {
  display: flex;
  flex-direction: column;
}

.haajri-chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(25, 30, 59, 0.1);
  background: #111;
  color: #fff;
}

.haajri-chatbot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.haajri-chatbot-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: #fed035;
  color: #111;
  font-size: 20px;
}

.haajri-chatbot-title {
  margin: 0;
  color: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.haajri-chatbot-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.2;
}

.haajri-chatbot-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35e27a;
}

.haajri-chatbot.is-typing .haajri-chatbot-status::before {
  animation: haajriChatPulse 0.9s ease-in-out infinite;
}

.haajri-chatbot-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.haajri-chatbot-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  overflow: auto;
  scroll-behavior: smooth;
}

.haajri-chatbot-message {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.haajri-chatbot-message:not(.is-user)::before {
  content: "H";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #111;
  color: #fed035;
  font-size: 11px;
  font-weight: 800;
}

.haajri-chatbot-message.is-user {
  justify-content: flex-end;
}

.haajri-chatbot-bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(25, 30, 59, 0.1);
  background: #f6f7fb;
  color: #191e3b;
  font-size: 13px;
  line-height: 1.45;
}

.haajri-chatbot-message.is-user .haajri-chatbot-bubble {
  border-color: rgba(17, 17, 17, 0.12);
  background: #fed035;
  color: #111;
}

.haajri-chatbot-bubble a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.haajri-chatbot-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 58px;
  min-height: 38px;
}

.haajri-chatbot-typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(25, 30, 59, 0.58);
  animation: haajriTypingDot 1s ease-in-out infinite;
}

.haajri-chatbot-typing-dot:nth-child(2) {
  animation-delay: 0.14s;
}

.haajri-chatbot-typing-dot:nth-child(3) {
  animation-delay: 0.28s;
}

.haajri-chatbot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.haajri-chatbot-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(25, 30, 59, 0.14);
  border-radius: 999px;
  background: #fff;
  color: #191e3b;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.haajri-chatbot-chip:hover {
  border-color: rgba(17, 17, 17, 0.38);
  background: #fff9df;
}

.haajri-chatbot-form {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.haajri-chatbot-input,
.haajri-chatbot-textarea {
  width: 100%;
  border: 1px solid rgba(25, 30, 59, 0.16);
  border-radius: 10px;
  padding: 10px 11px;
  background: #fff;
  color: #191e3b;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.haajri-chatbot-textarea {
  min-height: 72px;
  resize: vertical;
}

.haajri-chatbot-input:focus,
.haajri-chatbot-textarea:focus {
  border-color: rgba(17, 17, 17, 0.48);
}

.haajri-chatbot-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  border: 1px solid #111;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.haajri-chatbot-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(25, 30, 59, 0.1);
  background: #fff;
}

.haajri-chatbot-textbox {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(25, 30, 59, 0.16);
  border-radius: 999px;
  padding: 10px 13px;
  background: #f8f9fb;
  color: #191e3b;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.haajri-chatbot-textbox:focus {
  border-color: rgba(17, 17, 17, 0.45);
  background: #fff;
}

.haajri-chatbot-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid #111;
  border-radius: 50%;
  background: #111;
  color: #fed035;
  cursor: pointer;
}

.haajri-chatbot-send:disabled {
  cursor: wait;
  opacity: 0.65;
}

.haajri-chatbot-note {
  margin: 0;
  color: rgba(25, 30, 59, 0.58);
  font-size: 11px;
  line-height: 1.35;
}

@keyframes haajriTypingDot {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }

  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@keyframes haajriChatPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}

@media (max-width: 575.98px) {
  .haajri-footer-ai {
    max-width: 100%;
  }

  .haajri-chatbot {
    right: 14px;
    bottom: 14px;
  }

  .haajri-chatbot-launcher {
    width: 62px;
    height: 62px;
    min-height: 62px;
    justify-content: center;
    padding: 0;
  }

  .haajri-chatbot-launcher-text {
    display: none;
  }

  .haajri-chatbot-panel {
    right: -2px;
    bottom: 68px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 94px);
    border-radius: 16px;
  }
}
