/* AFW Shop Assistant. Everything scoped under #afwa so Flatsome styles stay out and ours stay in. */
#afwa {
  --afwa-accent: #77212E;
  --afwa-ink: #1d2320;
  --afwa-soft: #5b655f;
  --afwa-line: #e3e6e2;
  --afwa-bg: #ffffff;
  --afwa-tint: #f4f6f3;
  position: fixed; bottom: 18px; z-index: 99990;
  font-size: 15px; line-height: 1.45; color: var(--afwa-ink);
  -webkit-font-smoothing: antialiased;
}
#afwa.afwa--right { right: 18px; }
#afwa.afwa--left { left: 18px; }
#afwa *, #afwa *::before, #afwa *::after { box-sizing: border-box; }
#afwa button { font-family: inherit; text-transform: none; letter-spacing: normal; margin: 0; min-height: 0; line-height: inherit; box-shadow: none; }

/* ---------- launcher ---------- */
#afwa .afwa-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px 9px 10px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--afwa-btn, var(--afwa-accent)); color: #fff; text-align: left;
  box-shadow: 0 6px 22px rgba(0,0,0,.22);
  transition: transform .15s ease, box-shadow .15s ease;
}
#afwa .afwa-btn:hover { transform: translateY(-1px); box-shadow: 0 9px 26px rgba(0,0,0,.26); }
#afwa .afwa-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--afwa-btn, var(--afwa-accent)); }
#afwa .afwa-btn__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.18); flex: none; }
#afwa .afwa-btn__text { display: flex; flex-direction: column; }
#afwa .afwa-btn__text b { font-size: 15px; font-weight: 700; }
#afwa .afwa-btn__text i { font-style: normal; font-size: 12px; opacity: .85; }
#afwa.is-open .afwa-btn { display: none; }

/* ---------- panel ---------- */
#afwa .afwa-panel {
  position: relative; display: flex; flex-direction: column;
  width: 390px; height: min(660px, calc(100vh - 36px));
  background: var(--afwa-bg); border-radius: 16px; overflow: hidden;
  box-shadow: 0 14px 48px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.05);
}
#afwa .afwa-panel[hidden] { display: none; }

#afwa .afwa-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px;
  background: var(--afwa-accent); color: #fff;
}
#afwa .afwa-face {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%;
  background: #fff; color: var(--afwa-accent); font-weight: 800; font-size: 17px;
}
#afwa .afwa-who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
#afwa .afwa-who b { font-size: 16px; }
#afwa .afwa-who i { font-style: normal; font-size: 12px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#afwa .afwa-new, #afwa .afwa-x, #afwa .afwa-langbtn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  height: 32px; border: 0; background: rgba(255,255,255,.16); color: #fff; cursor: pointer; border-radius: 8px;
}
#afwa .afwa-new { width: 32px; padding: 0; }
#afwa .afwa-langbtn { gap: 5px; padding: 0 9px; font-size: 12.5px; font-weight: 700; letter-spacing: .03em; }
#afwa .afwa-langbtn span { display: inline-flex; }
#afwa .afwa-x { width: 32px; font-size: 22px; line-height: 1; padding: 0; }
#afwa .afwa-new:hover, #afwa .afwa-x:hover, #afwa .afwa-langbtn:hover, #afwa .afwa-langbtn[aria-expanded="true"] { background: rgba(255,255,255,.3); }
#afwa .afwa-head button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

/* language list, drops down under the header */
#afwa .afwa-langs {
  position: absolute; top: 62px; inset-inline-end: 10px; z-index: 2; width: 230px; max-height: calc(100% - 80px); overflow-y: auto;
  padding: 6px; background: #fff; border-radius: 12px; box-shadow: 0 12px 34px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.06);
}
#afwa .afwa-langs[hidden] { display: none; }
#afwa .afwa-langs__head { margin: 4px 10px 6px; font-size: 12px; font-weight: 700; color: var(--afwa-soft); text-transform: uppercase; letter-spacing: .04em; }
#afwa .afwa-langs__item {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--afwa-ink); font-size: 14.5px; text-align: start; cursor: pointer;
}
#afwa .afwa-langs__item:hover, #afwa .afwa-langs__item:focus-visible { background: var(--afwa-tint); outline: none; }
#afwa .afwa-langs__item.is-on { font-weight: 700; color: var(--afwa-accent); }
#afwa .afwa-langs__item:first-of-type { border-bottom: 1px solid var(--afwa-line); border-radius: 8px 8px 0 0; margin-bottom: 4px; }
#afwa .afwa-langs__tick { color: var(--afwa-accent); }

#afwa .afwa-log { flex: 1; overflow-y: auto; padding: 14px 14px 6px; background: var(--afwa-tint); overscroll-behavior: contain; }

#afwa .afwa-hello { background: #fff; border: 1px solid var(--afwa-line); border-radius: 14px; padding: 14px; }
#afwa .afwa-hello h4 { margin: 0 0 4px; font-size: 16px; color: var(--afwa-ink); text-transform: none; letter-spacing: 0; }
#afwa .afwa-hello p { margin: 0 0 12px; color: var(--afwa-soft); font-size: 14px; }
#afwa .afwa-chips { display: flex; flex-wrap: wrap; gap: 7px; }
#afwa .afwa-chip {
  border: 1px solid var(--afwa-accent); color: var(--afwa-accent); background: #fff;
  border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer;
}
#afwa .afwa-chip:hover { background: var(--afwa-accent); color: #fff; }

#afwa .afwa-msg { display: flex; margin: 0 0 10px; }
#afwa .afwa-msg__text { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: 14.5px; overflow-wrap: anywhere; }
#afwa .afwa-msg--user { justify-content: flex-end; }
#afwa .afwa-msg--user .afwa-msg__text { background: var(--afwa-accent); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
#afwa .afwa-msg--bot .afwa-msg__text { background: #fff; border: 1px solid var(--afwa-line); border-bottom-left-radius: 4px; }
#afwa .afwa-msg--error .afwa-msg__text { border-color: #e7c7a4; background: #fff8ef; }
#afwa .afwa-msg__text p { margin: 0 0 8px; }
#afwa .afwa-msg__text p:last-child { margin-bottom: 0; }
#afwa .afwa-msg__text ul, #afwa .afwa-msg__text ol { margin: 0 0 8px; padding: 0; }
#afwa .afwa-msg__text li { margin: 0 0 3px; }
#afwa .afwa-msg__text a { color: var(--afwa-accent); text-decoration: underline; }

#afwa .afwa-cards { display: grid; gap: 8px; margin: 6px 0 8px; }
#afwa .afwa-card {
  display: flex; gap: 10px; align-items: center; padding: 8px; text-decoration: none !important;
  border: 1px solid var(--afwa-line); border-radius: 12px; background: #fff; color: var(--afwa-ink) !important;
}
#afwa .afwa-card:hover { border-color: var(--afwa-accent); }
#afwa .afwa-card img { width: 76px; height: 60px; object-fit: contain; flex: none; border-radius: 8px; background: #f2f0eb; mix-blend-mode: multiply; }
#afwa .afwa-card__body { display: flex; flex-direction: column; min-width: 0; font-size: 13px; }
#afwa .afwa-card__body b { font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#afwa .afwa-card__price { font-weight: 700; color: var(--afwa-ink); }
#afwa .afwa-card__price s { font-weight: 400; color: var(--afwa-soft); margin-left: 6px; }
#afwa .afwa-card__body small { color: var(--afwa-soft); font-size: 12px; }
#afwa .afwa-card__go { color: var(--afwa-accent); font-weight: 600; font-size: 12.5px; }

#afwa .afwa-action {
  display: inline-block; margin: 6px 0 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--afwa-accent); color: #fff !important; font-weight: 600; font-size: 14px; text-decoration: none !important;
}
#afwa .afwa-action:hover { filter: brightness(1.08); }

#afwa .afwa-wait .afwa-dots { display: inline-flex; gap: 4px; padding: 12px 14px; background: #fff; border: 1px solid var(--afwa-line); border-radius: 14px; }
#afwa .afwa-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--afwa-soft); animation: afwa-b 1s infinite ease-in-out; }
#afwa .afwa-dots i:nth-child(2) { animation-delay: .15s; }
#afwa .afwa-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes afwa-b { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
#afwa .afwa-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

#afwa .afwa-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid var(--afwa-line); background: #fff; margin: 0; }
#afwa .afwa-input {
  flex: 1; resize: none; min-height: 42px; max-height: 120px; margin: 0;
  padding: 10px 12px; border: 1px solid var(--afwa-line); border-radius: 12px; box-shadow: none;
  font: inherit; font-size: 15px; line-height: 1.35; color: var(--afwa-ink); background: #fff;
}
#afwa .afwa-input:focus { outline: none; border-color: var(--afwa-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--afwa-accent) 18%, transparent); }
#afwa .afwa-send {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none; padding: 0;
  border: 0; border-radius: 12px; background: var(--afwa-accent); color: #fff; cursor: pointer;
}
#afwa .afwa-send:disabled { opacity: .5; cursor: default; }
#afwa .afwa-send.is-ready { animation: afwa-ready 1.2s ease-in-out 2; }
@keyframes afwa-ready { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--afwa-accent) 25%, transparent); } }

/* ---------- microphone ---------- */
#afwa .afwa-form { position: relative; }
#afwa .afwa-mic {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none; padding: 0;
  border: 1px solid var(--afwa-line); border-radius: 12px; background: #fff; color: var(--afwa-accent); cursor: pointer;
}
#afwa .afwa-mic:hover { border-color: var(--afwa-accent); background: var(--afwa-tint); }
#afwa .afwa-mic:disabled { opacity: .5; cursor: default; }
#afwa .afwa-rec { display: none; align-items: center; gap: 8px; flex: 1; min-width: 0; min-height: 42px; }
#afwa .afwa-form.is-rec .afwa-input, #afwa .afwa-form.is-rec .afwa-mic, #afwa .afwa-form.is-rec .afwa-send { display: none; }
#afwa .afwa-form.is-rec .afwa-rec { display: flex; }
#afwa .afwa-rec__x, #afwa .afwa-rec__ok {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none; padding: 0; border: 0; border-radius: 12px; cursor: pointer;
}
#afwa .afwa-rec__x { background: var(--afwa-tint); color: var(--afwa-soft); font-size: 24px; line-height: 1; }
#afwa .afwa-rec__ok { background: var(--afwa-accent); color: #fff; }
#afwa .afwa-rec__mid { display: flex; flex-direction: column; flex: 1; min-width: 0; }
#afwa .afwa-rec__row { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--afwa-ink); font-size: 14px; }
#afwa .afwa-rec__dot { width: 10px; height: 10px; border-radius: 50%; background: #d93025; animation: afwa-pulse 1.1s infinite ease-in-out; }
@keyframes afwa-pulse { 50% { opacity: .35; transform: scale(.8); } }
#afwa .afwa-rec__bars { display: inline-flex; align-items: center; gap: 3px; height: 20px; }
#afwa .afwa-rec__bars i { display: block; width: 4px; height: 20px; border-radius: 2px; background: var(--afwa-accent); transform: scaleY(.15); transition: transform .08s linear; }
#afwa .afwa-rec__spin { display: none; width: 16px; height: 16px; border: 2px solid var(--afwa-line); border-top-color: var(--afwa-accent); border-radius: 50%; animation: afwa-spin .8s linear infinite; }
@keyframes afwa-spin { to { transform: rotate(360deg); } }
#afwa .afwa-rec__say { font-size: 13px; color: var(--afwa-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#afwa .afwa-rec__note { font-size: 10.5px; line-height: 1.3; color: var(--afwa-soft); opacity: .85; }
#afwa .afwa-form.is-work .afwa-rec__x, #afwa .afwa-form.is-work .afwa-rec__ok, #afwa .afwa-form.is-work .afwa-rec__dot,
#afwa .afwa-form.is-work .afwa-rec__time, #afwa .afwa-form.is-work .afwa-rec__bars { display: none; }
#afwa .afwa-form.is-work .afwa-rec__spin { display: inline-block; }
#afwa .afwa-form.is-work .afwa-rec { padding-inline-start: 6px; }
#afwa .afwa-hint { margin: 0; padding: 7px 12px; background: #fff8ef; border-top: 1px solid #f0dcc0; color: var(--afwa-ink); font-size: 13px; line-height: 1.35; }
#afwa .afwa-hint[hidden] { display: none; }
#afwa .afwa-trap { position: absolute; top: 0; left: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; clip-path: inset(50%); }
#afwa .afwa-privacy { margin: 0; padding: 0 12px 8px; background: #fff; font-size: 11px; line-height: 1.35; text-align: right; }
#afwa .afwa-privacy a { color: var(--afwa-soft); text-decoration: underline; }

/* ---------- right-to-left (Arabic) ---------- */
#afwa[dir="rtl"] .afwa-btn { text-align: right; padding: 9px 10px 9px 18px; }
#afwa[dir="rtl"] .afwa-head { padding: 12px 14px 12px 10px; }
#afwa .afwa-msg__text[dir] { text-align: start; }
#afwa .afwa-msg__text ul, #afwa .afwa-msg__text ol { margin-inline: 18px 0; }
#afwa[dir="rtl"] .afwa-msg--user .afwa-msg__text { border-bottom-right-radius: 14px; border-bottom-left-radius: 4px; }
#afwa[dir="rtl"] .afwa-msg--bot .afwa-msg__text { border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
#afwa[dir="rtl"] .afwa-card__price s { margin-left: 0; margin-right: 6px; }
#afwa[dir="rtl"] .afwa-privacy { text-align: left; }
#afwa[dir="rtl"] .afwa-send svg { transform: scaleX(-1); }

/* ---------- phones: full screen ---------- */
@media (max-width: 520px) {
  #afwa { bottom: 12px; }
  #afwa.afwa--right { right: 12px; }
  #afwa.afwa--left { left: 12px; }
  #afwa .afwa-btn__text i { display: none; }
  #afwa.is-open { inset: 0; }
  #afwa .afwa-panel { width: 100vw; height: 100dvh; border-radius: 0; }
  #afwa .afwa-input { font-size: 16px; } /* stops iOS zooming in */
}
@media (prefers-reduced-motion: reduce) { #afwa * { animation: none !important; transition: none !important; } }

/* ---------- the shop's cookie notice (Flatsome) ----------
   Flatsome shows it as a full-width bar at the bottom with the buttons on the right, exactly
   behind the chat button. Make it a centred card with the buttons right under the text; on
   narrower screens it sits above the chat button. Only loaded where Bel is shown. */
.flatsome-cookies {
  left: 12px !important; right: 12px !important; bottom: 16px !important;
  max-width: 560px; margin: 0 auto; padding: 16px 20px !important;
  border-radius: 14px; box-shadow: 0 10px 34px rgba(0,0,0,.22) !important;
}
/* Hidden (before it slides in, after Accept, and for visitors who accepted earlier, who get
   the box without any state class): fully below the screen, also with the raised position. */
.flatsome-cookies:not(.flatsome-cookies--active) { transform: translate3d(0, calc(100% + 140px), 0); }
.flatsome-cookies .flatsome-cookies__inner { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }
.flatsome-cookies .flatsome-cookies__text { padding-right: 0; }
.flatsome-cookies .flatsome-cookies__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 0; }
.flatsome-cookies .flatsome-cookies__buttons > .button { margin: 0 !important; }
@media (max-width: 1100px) { .flatsome-cookies { bottom: 88px !important; } }
