/* שועלות דיגיטליות bot - "פתק מאורן" design (outputs/2026-10-06-גרסאות-בוט, version 2) */
.orenbot {
  --ob-navy: #062437;
  --ob-navy-deep: #041929;
  --ob-gold: #c9a14a;
  --ob-gold-light: #f0d08d;
  --ob-gold-dark: #a07830;
  --ob-sand: #f4f1ea;
  --ob-sand-2: #fbf7ee;
  --ob-line: #ece6d9;
  --ob-text: #1d2a33;
  --ob-green: #4caf82;
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 99990;
  font-family: 'Assistant', 'Heebo', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  direction: rtl;
  text-align: right;
  color: var(--ob-text);
}
.orenbot *, .orenbot *::before, .orenbot *::after { box-sizing: border-box; }
.orenbot img { max-width: none; }

/* launch button: a tab docked to the bottom corner - fox + "יש שאלה?" */
.orenbot:not(.is-open) { left: 0; bottom: 28px; }
.orenbot-launch {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  height: 60px;
  padding: 0 22px 0 12px;
  border: 0;
  border-right: 3px solid var(--ob-gold);
  border-radius: 0 18px 18px 0;
  background: var(--ob-navy);
  color: #fff;
  font: inherit;
  text-align: right;
  cursor: pointer;
  box-shadow: 6px 10px 28px rgba(4, 25, 41, .32);
  transition: padding .2s ease, background .2s ease;
}
.orenbot-launch:hover { background: #0b2f47; padding-right: 28px; }
.orenbot-launch img { flex: none; width: 38px; height: 38px; border-radius: 10px; display: block; }
.orenbot-launch-text { display: flex; flex-direction: column; font-family: 'Secular One', 'Assistant', sans-serif; font-size: 19px; line-height: 1.1; color: var(--ob-gold-light); }
.orenbot-launch-text small { font-family: 'Assistant', sans-serif; font-size: 13px; font-weight: 400; color: #c8bfa8; margin-top: 2px; }
.orenbot.is-open .orenbot-launch { display: none; }

.orenbot-ava { position: relative; flex: none; display: block; width: 44px; height: 44px; }
.orenbot-ava img:first-child { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; display: block; }
.orenbot-head .orenbot-ava, .orenbot-head .orenbot-ava img:first-child { width: 48px; height: 48px; }


/* panel */
.orenbot-panel {
  display: flex;
  flex-direction: column;
  width: 390px;
  max-width: calc(100vw - 32px);
  height: 620px;
  max-height: calc(100vh - 44px);
  background: #fff;
  border: 1px solid var(--ob-line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(6, 36, 55, .25);
}
.orenbot-panel[hidden] { display: none; }

.orenbot-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #f0ebe0;
}
.orenbot-head > div { flex: 1; display: flex; flex-direction: column; }
.orenbot-head strong { font-size: 18px; color: var(--ob-navy); }
.orenbot-head small { font-size: 13px; color: var(--ob-green); font-weight: 600; }
.orenbot-close {
  flex: none;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ob-sand);
  color: var(--ob-navy);
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* testimonial strip - only before the first question */
.orenbot-quote {
  margin: 12px 20px 0;
  padding: 10px 14px;
  background: var(--ob-sand-2);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #5a4d36;
}
.orenbot-quote b { color: var(--ob-gold-dark); }
.orenbot.is-started .orenbot-quote { display: none; }

/* messages */
.orenbot-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.orenbot-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 15.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.orenbot-assistant { align-self: flex-start; background: var(--ob-sand); color: var(--ob-text); border-top-right-radius: 6px; }
.orenbot-user { align-self: flex-end; background: var(--ob-navy); color: #fff; border-top-left-radius: 6px; }
.orenbot-msg a { color: var(--ob-gold-dark); font-weight: 700; text-decoration: underline; }
.orenbot-user a { color: var(--ob-gold-light); }
.orenbot-msg .orenbot-inline-cta {
  display: table;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--ob-gold);
  color: var(--ob-navy-deep);
  font-weight: 700;
  text-decoration: none;
}
.orenbot-msg .orenbot-inline-cta:hover { background: var(--ob-gold-light); }

.orenbot-typing { display: inline-flex; gap: 5px; padding: 14px; }
.orenbot-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #a89d89;
  animation: orenbot-dot 1.1s infinite ease-in-out;
}
.orenbot-typing span:nth-child(2) { animation-delay: .15s; }
.orenbot-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes orenbot-dot { 0%, 80%, 100% { opacity: .4; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

/* starter questions */
.orenbot-starters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 10px; }
.orenbot-starters:empty { display: none; }
.orenbot-starters button {
  margin: 0;
  border: 1px solid #e3dccd;
  background: #fff;
  color: var(--ob-navy);
  border-radius: 999px;
  padding: 7px 13px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.orenbot-starters button:hover { border-color: var(--ob-gold); background: var(--ob-sand-2); }
.orenbot-starters button:last-child { border-style: dashed; border-color: var(--ob-gold); color: var(--ob-gold-dark); }

/* input */
.orenbot-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 0 12px;
  padding: 8px 10px;
  background: var(--ob-sand);
  border-radius: 16px;
}
.orenbot-form textarea {
  flex: 1;
  resize: none;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px 4px;
  font: inherit;
  font-size: 16px;
  color: var(--ob-text);
  max-height: 120px;
  outline: none;
  min-height: 0;
}
.orenbot-form:focus-within { box-shadow: 0 0 0 2px var(--ob-gold); }
.orenbot-send {
  flex: none;
  width: 40px; height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ob-navy);
  color: var(--ob-gold-light);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.orenbot-send:disabled { opacity: .5; cursor: default; }

/* footer: handwritten note pointing at the booking button */
.orenbot-foot { position: relative; padding: 30px 20px 12px; }
.orenbot-note {
  position: absolute;
  top: 4px;
  left: 22px;
  font-family: 'Amatic SC', 'Assistant', cursive;
  font-size: 22px;
  font-weight: 700;
  color: var(--ob-gold-dark);
  transform: rotate(-4deg);
  pointer-events: none;
}
.orenbot-cta {
  display: block;
  padding: 13px;
  border-radius: 14px;
  text-align: center;
  background: var(--ob-gold);
  color: var(--ob-navy-deep) !important;
  font-weight: 700;
  text-decoration: none !important;
}
.orenbot-cta:hover { background: var(--ob-gold-light); }
.orenbot-privacy { margin: 8px 0 0; font-size: 11.5px; line-height: 1.4; color: #8a8070; text-align: center; }
.orenbot-privacy a { color: inherit; text-decoration: underline; }

.orenbot button:focus-visible, .orenbot a:focus-visible { outline: 2px solid var(--ob-gold); outline-offset: 2px; }
.orenbot-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .orenbot-typing span { animation: none; }
  .orenbot-launch { transition: none; }
}

@media (max-width: 480px) {
  .orenbot:not(.is-open) { left: 0; bottom: 20px; }
  .orenbot.is-open { left: 0; right: 0; bottom: 0; top: 0; }
  .orenbot-panel { width: 100vw; max-width: 100vw; height: 100%; max-height: 100%; border-radius: 0; border: 0; }
}
