/* Website AI guide widget ("Hey, need a quick answer?"), Jude 11/3.
   Everything is scoped under .ucyc- so theme and Elementor styles do not leak in. */

.ucyc-root, .ucyc-root * { box-sizing: border-box; }
.ucyc-root {
  --ucyc-blue: #0b2ab8;
  --ucyc-navy: #0d1b4c;
  --ucyc-ink: #1e293b;
  --ucyc-muted: #64748b;
  --ucyc-soft: #f0f5fa;
  --ucyc-line: #dbe3ee;
  --ucyc-yellow: #ffc928;
  font-family: 'Raleway', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ucyc-ink);
  line-height: 1.45;
}

/* ---- the waving hand ---------------------------------------------------- */
.ucyc-hand { display: block; width: 100%; height: 100%; overflow: visible; }
.ucyc-hand-g { transform-origin: 50px 92px; transform-box: view-box; }
.ucyc-waving .ucyc-hand-g { animation: ucyc-wave 1.7s ease-in-out 1; }
@keyframes ucyc-wave {
  0% { transform: rotate(0deg); }
  12% { transform: rotate(20deg); }
  26% { transform: rotate(-12deg); }
  40% { transform: rotate(20deg); }
  54% { transform: rotate(-8deg); }
  68% { transform: rotate(14deg); }
  84% { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}

/* ---- launcher: hand + bubble, mid-right, above the fold ------------------ */
.ucyc-launcher {
  position: fixed;
  right: 22px;
  top: 34vh;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.ucyc-launcher-hand {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #ffffff 58%, #fff4cc 100%);
  box-shadow: 0 10px 30px rgba(13, 27, 76, 0.28), 0 0 0 4px rgba(255, 201, 40, 0.55);
  padding: 6px;
  flex: none;
  transition: transform 0.18s ease;
}
.ucyc-launcher:hover .ucyc-launcher-hand { transform: scale(1.06); }
.ucyc-bubble {
  position: relative;
  background: #fff;
  color: var(--ucyc-navy);
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: 0 10px 30px rgba(13, 27, 76, 0.22);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.ucyc-bubble.ucyc-show { opacity: 1; transform: none; }
.ucyc-bubble::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  margin-top: -7px;
  border: 7px solid transparent;
  border-right: 0;
  border-left-color: #fff;
}
.ucyc-bubble small {
  display: block;
  font-weight: 500;
  font-size: 12px;
  color: var(--ucyc-muted);
  margin-top: 2px;
}
.ucyc-bubble-x {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: var(--ucyc-ink);
  color: #fff;
  font-size: 13px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  padding: 0;
}
.ucyc-open .ucyc-launcher { display: none; }
@media (min-width: 768px) {
  .ucyc-inline-visible .ucyc-bubble { display: none; }
}

/* ---- inline callout on listing pages ------------------------------------- */
.ucyc-inline {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 780px;
  margin: 18px auto 26px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fffbea 0%, #ffffff 60%);
  border: 2px solid var(--ucyc-yellow);
  box-shadow: 0 6px 18px rgba(13, 27, 76, 0.08);
  text-align: left;
}
.ucyc-inline-hand { width: 58px; height: 58px; flex: none; }
.ucyc-inline-body { flex: 1; min-width: 0; }
.ucyc-inline-title { font-weight: 800; font-size: 18px; color: var(--ucyc-navy); margin: 0 0 6px; }
.ucyc-inline-form { display: flex; gap: 8px; }
.ucyc-inline-form input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--ucyc-line);
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
  font-size: 15px;
  color: var(--ucyc-ink);
  background: #fff;
}
.ucyc-inline-form button, .ucyc-send {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--ucyc-blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

/* ---- the chat panel ------------------------------------------------------ */
.ucyc-panel {
  position: fixed;
  right: 22px;
  bottom: 22px;
  top: 96px;
  width: 400px;
  max-height: 720px;
  margin-top: auto;
  z-index: 2147483001;
  display: none;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(13, 27, 76, 0.35);
  overflow: hidden;
}
.ucyc-open .ucyc-panel { display: flex; animation: ucyc-pop 0.22s ease-out; }
@keyframes ucyc-pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

.ucyc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--ucyc-navy) 0%, var(--ucyc-blue) 100%);
  color: #fff;
}
.ucyc-head-hand {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  padding: 5px;
  flex: none;
}
.ucyc-head-text { flex: 1; min-width: 0; }
.ucyc-head-title { display: block; font-weight: 800; font-size: 17px; line-height: 1.2; color: #fff; }
.ucyc-head-sub { display: block; font-size: 12px; line-height: 1.3; opacity: 0.85; color: #fff; }
.ucyc-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 20px;
  line-height: 34px;
  cursor: pointer;
  padding: 0;
}

.ucyc-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 8px;
  background: #fbfcfe;
  -webkit-overflow-scrolling: touch;
}
.ucyc-msg { display: flex; margin: 0 0 10px; }
.ucyc-msg-user { justify-content: flex-end; }
.ucyc-text {
  max-width: 85%;
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 15px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.ucyc-msg-bot .ucyc-text { background: var(--ucyc-soft); border-top-left-radius: 4px; }
.ucyc-msg-user .ucyc-text { background: var(--ucyc-blue); color: #fff; border-top-right-radius: 4px; }
.ucyc-text a { color: var(--ucyc-blue); font-weight: 600; }
.ucyc-msg-user .ucyc-text a { color: #fff; }

.ucyc-cards {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin: 0 0 6px;
  scroll-snap-type: x mandatory;
}
.ucyc-card {
  flex: 0 0 210px;
  scroll-snap-align: start;
  border: 1px solid var(--ucyc-line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  text-decoration: none !important;
  color: var(--ucyc-ink) !important;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.ucyc-card:hover { box-shadow: 0 8px 20px rgba(13, 27, 76, 0.14); transform: translateY(-1px); }
.ucyc-card-img {
  height: 122px;
  background: var(--ucyc-soft) center / cover no-repeat;
  position: relative;
}
.ucyc-card-tag {
  position: absolute;
  left: 8px;
  top: 8px;
  background: #b91c1c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.ucyc-card-body { padding: 9px 11px 11px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.ucyc-card-title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ucyc-card-price { font-weight: 800; font-size: 15px; color: var(--ucyc-navy); }
.ucyc-card-meta { font-size: 12px; color: var(--ucyc-muted); }
.ucyc-card-cta { margin-top: auto; padding-top: 4px; font-size: 13px; font-weight: 700; color: var(--ucyc-blue); }

.ucyc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.ucyc-chip {
  border: 1.5px solid var(--ucyc-blue);
  background: #fff;
  color: var(--ucyc-blue);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.ucyc-chip:hover { background: var(--ucyc-blue); color: #fff; }

.ucyc-typing { display: inline-flex; gap: 4px; padding: 13px 14px; background: var(--ucyc-soft); border-radius: 16px; border-top-left-radius: 4px; }
.ucyc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: ucyc-dot 1.1s infinite ease-in-out; }
.ucyc-typing i:nth-child(2) { animation-delay: 0.15s; }
.ucyc-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ucyc-dot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.ucyc-foot { border-top: 1px solid var(--ucyc-line); padding: 10px 12px 8px; background: #fff; }
.ucyc-form { display: flex; gap: 8px; align-items: flex-end; }
.ucyc-input {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  resize: none;
  border: 1px solid var(--ucyc-line);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--ucyc-ink);
  background: #fff;
  outline: none;
}
.ucyc-input:focus { border-color: var(--ucyc-blue); box-shadow: 0 0 0 3px rgba(11, 42, 184, 0.12); }
.ucyc-send:disabled { opacity: 0.5; cursor: default; }
.ucyc-note { font-size: 11px; color: var(--ucyc-muted); text-align: center; margin-top: 6px; }

/* ---- phones: bottom bar launcher, full-screen panel ---------------------- */
@media (max-width: 767px) {
  .ucyc-launcher {
    top: auto;
    bottom: 14px;
    right: 12px;
    left: 12px;
    justify-content: flex-start;
    background: #fff;
    border-radius: 999px;
    padding: 6px 16px 6px 6px;
    box-shadow: 0 10px 28px rgba(13, 27, 76, 0.3), 0 0 0 3px rgba(255, 201, 40, 0.7);
  }
  .ucyc-launcher-hand { width: 52px; height: 52px; padding: 5px; box-shadow: none; background: #fff4cc; }
  .ucyc-bubble {
    order: 2;
    box-shadow: none;
    padding: 0;
    background: none;
    font-size: 16px;
    white-space: normal;
    opacity: 1;
    transform: none;
  }
  .ucyc-bubble::after, .ucyc-bubble-x { display: none; }
  .ucyc-panel { inset: 0; width: auto; max-height: none; border-radius: 0; margin: 0; }
  .ucyc-inline { flex-direction: column; align-items: stretch; text-align: center; margin: 14px 12px 20px; }
  .ucyc-input, .ucyc-inline-form input { font-size: 16px; }
  .ucyc-inline-hand { margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .ucyc-waving .ucyc-hand-g, .ucyc-open .ucyc-panel, .ucyc-typing i { animation: none; }
}
