
/* Smart AI Finder - Widget UI (Lion Frog style) */
:root{
  --lf-brand-orange:#F97316;
  --lf-brand-green:#10B981;
  --lf-brand-teal:#1d6d7f;
  --lf-brand-gold:#F59E0B;
  --lf-bg-app:#F8FAFC;
  --lf-bg-card:#FFFFFF;
  --lf-text-dark:#0F172A;
  --lf-text-grey:#64748B;
  --lf-border:#E2E8F0;
  --lf-radius:16px;
  --lf-radius-sm:8px;
  --lf-shadow:0 10px 30px rgba(15,23,42,.18);
}

#tlf-saf-widget-root, .tlf-saf-inline { all: initial; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif; }
#tlf-saf-widget-root *, .tlf-saf-inline * { box-sizing:border-box; }

.tlf-saf-fab{
  position:fixed; right:20px; bottom:18px; z-index:999999;
  width:64px; height:64px; border-radius:999px;
  background:linear-gradient(135deg,var(--lf-brand-teal),#0b3e45);
  color:#fff; border:none; cursor:pointer;
  box-shadow: 0 18px 40px rgba(2,6,23,.35);
  display:flex; align-items:center; justify-content:center;
}
.tlf-saf-fab span{ font-size:26px; font-weight:900; line-height:1; }
.tlf-saf-fab:hover{ transform: translateY(-1px); }

.tlf-saf-modal{
  position:fixed; inset:0; z-index:999998;
  display:none; align-items:flex-end; justify-content:flex-end;
  padding:18px;
  background:rgba(2,6,23,.35);
}
.tlf-saf-modal.is-open{ display:flex; }

.tlf-saf-panel{
  width:min(520px, calc(100vw - 36px));
  max-height:min(78vh, 720px);
  background:var(--lf-bg-card);
  border:1px solid var(--lf-border);
  border-radius:24px;
  box-shadow: var(--lf-shadow);
  overflow:hidden;
}

.tlf-saf-head{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:10px;
  padding:16px 18px 12px 18px;
  border-bottom:1px solid var(--lf-border);
}
.tlf-saf-title{
  color:var(--lf-text-dark);
  font-weight:900;
  font-size:18px;
  letter-spacing:-.2px;
  margin:0;
}
.tlf-saf-hint{
  margin-top:4px;
  color:var(--lf-text-grey);
  font-size:12px;
  font-weight:600;
}
.tlf-saf-actions{
  display:flex; align-items:center; gap:8px;
}
.tlf-saf-chip{
  height:34px; padding:0 12px;
  border-radius:999px;
  border:1px solid var(--lf-border);
  background:#fff;
  color:var(--lf-text-dark);
  font-weight:800;
  cursor:pointer;
}
.tlf-saf-close{
  width:34px; height:34px;
  border-radius:999px;
  border:1px solid var(--lf-border);
  background:#fff;
  color:var(--lf-text-dark);
  cursor:pointer;
  font-size:20px; line-height:1;
}

.tlf-saf-body{ padding:14px 18px 18px 18px; background:var(--lf-bg-app); }

.tlf-saf-search{
  display:flex; gap:10px; align-items:center;
}
.tlf-saf-input{
  flex:1;
  height:44px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid var(--lf-border);
  background:#fff;
  font-size:16px;
  color:var(--lf-text-dark);
  outline:none;
}
.tlf-saf-input:focus{ border-color: var(--lf-brand-orange); box-shadow:0 0 0 4px rgba(249,115,22,.15); }

.tlf-saf-btn{
  height:44px;
  padding:0 16px;
  border-radius:999px;
  border:none;
  background:var(--lf-brand-green);
  color:#fff;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 6px 16px rgba(16,185,129,.25);
  display:flex; align-items:center; gap:8px;
}
.tlf-saf-btn:disabled{ opacity:.6; cursor:not-allowed; }
.tlf-saf-btn .tlf-saf-ico{ font-size:18px; line-height:1; }

.tlf-saf-found{
  margin:12px 2px 8px 2px;
  color:var(--lf-text-grey);
  font-size:12px;
  font-weight:800;
}

.tlf-saf-results{
  margin-top:10px;
  display:flex; flex-direction:column; gap:10px;
  overflow:auto;
  max-height: calc(78vh - 170px);
  padding-right:2px;
}
.tlf-saf-item{
  background:#fff;
  border:1px solid var(--lf-border);
  border-radius:18px;
  padding:12px;
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.tlf-saf-thumb{
  width:46px; height:46px;
  border-radius:12px;
  overflow:hidden;
  background:#f1f5f9;
  flex:0 0 auto;
  display:flex; align-items:center; justify-content:center;
}
.tlf-saf-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

.tlf-saf-meta{ flex:1; min-width:0; }
.tlf-saf-row1{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.tlf-saf-name{
  font-size:15px;
  font-weight:900;
  color:var(--lf-text-dark);
  margin:0;
  line-height:1.25;
  max-width: 360px;
}
.tlf-saf-price{
  font-size:13px;
  font-weight:900;
  color:var(--lf-text-dark);
  white-space:nowrap;
  opacity:.9;
}
.tlf-saf-excerpt{
  margin-top:6px;
  color:var(--lf-text-grey);
  font-size:12px;
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.tlf-saf-tag{
  margin-top:8px;
  display:inline-flex;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid var(--lf-border);
  color:var(--lf-text-grey);
  font-size:11px;
  font-weight:900;
  background:#fff;
}

.tlf-saf-empty{
  background:#fff;
  border:1px dashed var(--lf-border);
  border-radius:18px;
  padding:14px;
  color:var(--lf-text-grey);
  font-weight:800;
  font-size:13px;
}
