/* LeadOpsPress Product Finder — external styles.
   Design tokens mirror the site palette (cream / navy / burnt orange / gold);
   site :root variables are used when present, hex fallbacks otherwise. */

.lop-finder-btn {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 210;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px 14px;
  border: 1px solid var(--button-orange, #a63b16);
  border-bottom: 4px solid var(--gold-soft, #e7c572);
  background: var(--button-orange, #a63b16);
  color: #fff;
  font: 800 .95rem/1.2 "Libre Franklin", sans-serif;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(23, 40, 59, .28);
  transition: background .18s ease, transform .18s ease;
}
.lop-finder-btn:hover { background: var(--orange-dark, #862b0d); transform: translateY(-1px); }
.lop-finder-btn:focus-visible { outline: 3px solid var(--gold, #a8740e); outline-offset: 3px; }
.lop-finder-btn .lop-finder-dot {
  width: 9px; height: 9px; flex: 0 0 auto;
  background: var(--gold-soft, #e7c572);
  transform: rotate(45deg);
}

.lop-finder-panel {
  position: fixed;
  right: 18px;
  bottom: calc(80px + env(safe-area-inset-bottom));
  z-index: 211;
  width: min(384px, calc(100vw - 24px));
  max-height: min(72vh, 640px);
  display: flex;
  flex-direction: column;
  background: var(--paper, #fffdf8);
  color: var(--ink, #17283b);
  border: 1px solid var(--line, #c8bfae);
  border-top: 5px solid var(--gold-line, #bf8b21);
  box-shadow: 0 24px 60px rgba(23, 40, 59, .30);
  font: 16px/1.55 "Libre Franklin", sans-serif;
}
.lop-finder-panel[hidden] { display: none; }

.lop-finder-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 12px;
  background: #11243d;
  color: #fffdf7;
}
.lop-finder-title {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.lop-finder-sub { margin: 4px 0 0; font-size: .78rem; font-weight: 700; color: #e7c572; }
.lop-finder-close {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 253, 247, .45);
  background: transparent;
  color: #fffdf7;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.lop-finder-close:hover { background: rgba(255, 253, 247, .12); }
.lop-finder-close:focus-visible { outline: 3px solid #e7c572; outline-offset: 2px; }

.lop-finder-log {
  padding: 16px 16px 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.lop-finder-msg {
  max-width: 88%;
  margin: 0 0 10px;
  padding: 10px 13px;
  font-size: .9rem;
  line-height: 1.5;
}
.lop-finder-msg.bot {
  background: var(--cream, #f4efe4);
  color: var(--ink, #17283b);
  border-left: 3px solid var(--gold-line, #bf8b21);
}
.lop-finder-msg.user {
  margin-left: auto;
  background: var(--button-orange, #a63b16);
  color: #fff;
  font-weight: 700;
}
.lop-finder-msg a { color: var(--navy, #11243d); font-weight: 800; text-underline-offset: 3px; }
.lop-finder-msg.user a { color: #fff; }

.lop-finder-card {
  margin: 0 0 12px;
  padding: 14px 15px 13px;
  background: var(--cream-2, #fbf8f1);
  border: 1px solid var(--line, #c8bfae);
  border-top: 4px solid var(--gold-line, #bf8b21);
}
.lop-finder-card h4 {
  margin: 0 0 5px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink, #17283b);
}
.lop-finder-card p { margin: 0 0 8px; font-size: .87rem; color: var(--muted, #334356); }
.lop-finder-price { font-weight: 800; color: var(--ink, #17283b); font-size: .85rem; margin: 0 0 9px; }
.lop-finder-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 16px 11px;
  border: 1px solid var(--button-orange, #a63b16);
  border-bottom: 4px solid var(--gold-soft, #e7c572);
  background: var(--button-orange, #a63b16);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: .88rem;
}
.lop-finder-cta:hover { background: var(--orange-dark, #862b0d); }
.lop-finder-cta:focus-visible { outline: 3px solid var(--gold, #a8740e); outline-offset: 3px; }
.lop-finder-browse {
  display: inline-block;
  margin-top: 10px;
  font-weight: 800;
  font-size: .88rem;
  color: var(--ink, #17283b);
  text-underline-offset: 4px;
  text-decoration-color: var(--gold-line, #bf8b21);
}

.lop-finder-actions {
  padding: 8px 16px 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lop-finder-opt {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid var(--gold-line, #bf8b21);
  background: var(--paper, #fffdf8);
  color: var(--ink, #17283b);
  font: 700 .86rem/1.3 "Libre Franklin", sans-serif;
  text-align: left;
  cursor: pointer;
}
.lop-finder-opt:hover { background: var(--cream, #f4efe4); }
.lop-finder-opt:focus-visible { outline: 3px solid var(--gold, #a8740e); outline-offset: 2px; }
.lop-finder-opt.ghost { border-color: var(--line, #c8bfae); color: var(--muted, #334356); }

.lop-finder-faqs {
  padding: 10px 16px 14px;
  border-top: 1px solid var(--line, #c8bfae);
}
.lop-finder-faqs p {
  margin: 0 0 8px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--gold, #a8740e);
}
.lop-finder-faqrow { display: flex; flex-wrap: wrap; gap: 6px; }
.lop-finder-faq {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--line, #c8bfae);
  background: transparent;
  color: var(--ink, #17283b);
  font: 700 .78rem/1.25 "Libre Franklin", sans-serif;
  cursor: pointer;
}
.lop-finder-faq:hover { border-color: var(--gold-line, #bf8b21); background: var(--cream-2, #fbf8f1); }
.lop-finder-faq:focus-visible { outline: 3px solid var(--gold, #a8740e); outline-offset: 2px; }

@media (max-width: 480px) {
  .lop-finder-btn { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .lop-finder-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: calc(72px + env(safe-area-inset-bottom));
    max-height: 76vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lop-finder-btn, .lop-finder-panel, .lop-finder-opt, .lop-finder-faq, .lop-finder-cta {
    transition: none !important;
    animation: none !important;
  }
  .lop-finder-btn:hover { transform: none; }
}
