:root {
  --brand: #F4EA67; /* צהוב המותג */
  --ink: #000;
  --border: #000;
}

/* מכולת הבוט */
#egud-rag {
  direction: rtl;
  font-family: "Heebo", Arial, sans-serif;
}

/* קונטיינר של שורת החיפוש */
.egud-search {
  max-width: 980px;
  margin: 0 auto 14px;
  border: 1px solid var(--border); /* מסגרת חיצונית בלבד */
  border-radius: 40px;
  padding: 8px 12px;
  display: flex;
  flex-direction: row-reverse; /* כפתור בצד שמאל */
  gap: 10px;
  align-items: center;
  background: #fff; /* רקע לבן */
  box-shadow: none;
}

/* כפתור שליחה */
.egud-send {
  min-width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--ink);
  border: none;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.05s ease-in-out, filter 0.15s;
}

/* החץ בכפתור – סיבוב */
.egud-send i,
.egud-send svg {
  transform: rotate(180deg); /* הופך את כיוון החץ */
}

.egud-send:active {
  transform: scale(0.96);
}
.egud-send:hover {
  filter: brightness(0.93);
}

/* תיבת הטקסט */
.egud-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0;
  border: none !important;
  background: transparent;
}
.egud-input {
  width: 100%;
  border: none !important;
  outline: none !important;
  background: transparent;
  font-size: 18px;
  color: #111;
}
.egud-input::placeholder {
  color: #aaa;
}

/* תיבת התשובה */
.egud-ans {
  max-width: 980px;
  margin: 0 auto;
  border: none;
  border-radius: 16px;
  padding: 20px;
  line-height: 1.7;
  color: #111;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}
.egud-ans .title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 6px;
}
.egud-ans .sources {
  margin-top: 14px;
  border-top: 1px dashed #ddd;
  padding-top: 10px;
}
.egud-ans .sources a {
  color: #0a58ca;
  text-decoration: none;
}
.egud-ans .sources a:hover {
  text-decoration: underline;
}

/* אנימציית שלוש נקודות */
.egud-loading {
  display: inline-block;
  width: 1.4em;
  text-align: left;
}
.egud-loading:after {
  content: "…";
  animation: ellipsis 1.2s steps(4, end) infinite;
}
@keyframes ellipsis {
  to {
    width: 3ch;
  }
}

/* מובייל */
@media (max-width: 768px) {
  .egud-search {
    border-radius: 24px;
    padding: 8px;
  }
  .egud-send {
    min-width: 40px;
    height: 40px;
  }
  .egud-input {
    font-size: 16px;
  }
}