/* =========================================================
   GearScout Gear Match Finder
   Compact fixed finder. Only the final results view scrolls.
========================================================= */

body.gsgf-open{overflow:hidden!important}

.gsgf-root,
.gsgf-root *{box-sizing:border-box!important}

.gsgf-root{
  --gsgf-navy:#07356F;
  --gsgf-navy-dark:#052B5C;
  --gsgf-teal:#11AAA7;
  --gsgf-teal-dark:#098F8D;
  --gsgf-orange:#FF9700;
  --gsgf-soft:#F6FAFB;
  --gsgf-soft-2:#EEF5F7;
  --gsgf-white:#FFFFFF;
  --gsgf-text:#354F68;
  --gsgf-muted:#66798B;
  --gsgf-border:#DCE7EB;
  --gsgf-border-soft:#E8EFF2;
  position:fixed!important;
  inset:0!important;
  z-index:999998!important;
  pointer-events:none!important;
  font-family:"Avenir Next",Avenir,"Segoe UI",Helvetica,Arial,sans-serif!important;
  font-weight:400!important;
  color:var(--gsgf-text)!important;
  -webkit-font-smoothing:antialiased!important;
  -moz-osx-font-smoothing:grayscale!important;
  text-rendering:optimizeLegibility!important;
}

.gsgf-root button,
.gsgf-root a,
.gsgf-root input,
.gsgf-root textarea,
.gsgf-root select,
.gsgf-root h1,
.gsgf-root h2,
.gsgf-root h3,
.gsgf-root p,
.gsgf-root span,
.gsgf-root small,
.gsgf-root em{
  font-family:"Avenir Next",Avenir,"Segoe UI",Helvetica,Arial,sans-serif!important;
}

.gsgf-backdrop{
  position:fixed!important;
  inset:0!important;
  background:rgba(5,43,92,.58)!important;
  backdrop-filter:blur(3px)!important;
  -webkit-backdrop-filter:blur(3px)!important;
  pointer-events:auto!important;
}

/* Fixed on desktop. Intro/questions never scroll internally. */
.gsgf-modal{
  position:fixed!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  width:min(92vw,620px)!important;
  max-height:min(84vh,490px)!important;
  overflow:hidden!important;
  background:var(--gsgf-white)!important;
  border:1px solid var(--gsgf-border)!important;
  border-top:4px solid var(--gsgf-teal)!important;
  border-radius:14px!important;
  box-shadow:0 24px 64px rgba(5,43,92,.24)!important;
  pointer-events:auto!important;
  color:var(--gsgf-text)!important;
}

/* Results may scroll; this is intentionally the only scrollable view. */
.gsgf-modal.is-results{
  width:min(94vw,880px)!important;
  height:min(82vh,660px)!important;
  max-height:min(82vh,660px)!important;
}

.gsgf-close{
  position:absolute!important;
  z-index:10!important;
  right:10px!important;
  top:9px!important;
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  min-height:30px!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid var(--gsgf-border)!important;
  border-radius:50%!important;
  background:#fff!important;
  color:var(--gsgf-navy)!important;
  box-shadow:none!important;
  font-size:20px!important;
  line-height:1!important;
  font-weight:400!important;
  cursor:pointer!important;
}
.gsgf-close:hover{background:var(--gsgf-soft)!important;border-color:rgba(17,170,167,.42)!important;color:var(--gsgf-teal-dark)!important}

.gsgf-panel{
  width:100%!important;
  padding:17px 18px 16px!important;
  overflow:hidden!important;
  background:#fff!important;
}

.gsgf-intro,
.gsgf-loading{
  min-height:226px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
}

.gsgf-question{padding-top:17px!important}

.gsgf-kicker{
  margin:0 0 5px!important;
  color:var(--gsgf-teal-dark)!important;
  font-size:9px!important;
  line-height:1.1!important;
  font-weight:700!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
}

.gsgf-modal h2{
  margin:0!important;
  padding-right:28px!important;
  color:var(--gsgf-navy)!important;
  font-size:clamp(25px,3vw,32px)!important;
  line-height:1.08!important;
  font-weight:750!important;
  letter-spacing:-.035em!important;
  text-rendering:optimizeLegibility!important;
}

.gsgf-sub{
  max-width:590px!important;
  margin:7px 0 0!important;
  color:var(--gsgf-muted)!important;
  font-size:12.5px!important;
  line-height:1.48!important;
  font-weight:400!important;
}

.gsgf-badges{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:5px!important;
  margin:10px 0 12px!important;
}

.gsgf-badges span{
  display:inline-flex!important;
  align-items:center!important;
  min-height:25px!important;
  padding:4px 8px!important;
  border:1px solid var(--gsgf-border)!important;
  border-radius:6px!important;
  background:var(--gsgf-soft)!important;
  color:var(--gsgf-navy)!important;
  font-size:9px!important;
  line-height:1!important;
  font-weight:600!important;
}

.gsgf-badges span:first-child{
  border-color:rgba(255,151,0,.28)!important;
  background:#FFF8EC!important;
}

.gsgf-progress{
  height:4px!important;
  margin:0!important;
  background:var(--gsgf-soft-2)!important;
  overflow:hidden!important;
}
.gsgf-progress span{
  display:block!important;
  height:100%!important;
  background:var(--gsgf-teal)!important;
  transition:width .18s ease!important;
}

.gsgf-answers{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
  margin-top:9px!important;
}

.gsgf-answer{
  width:100%!important;
  min-height:58px!important;
  margin:0!important;
  padding:8px!important;
  display:block!important;
  text-align:left!important;
  border:1px solid var(--gsgf-border)!important;
  border-radius:9px!important;
  background:#fff!important;
  color:var(--gsgf-text)!important;
  box-shadow:none!important;
  cursor:pointer!important;
  transition:border-color .16s ease,background-color .16s ease,transform .16s ease!important;
}
.gsgf-answer:hover{
  border-color:rgba(17,170,167,.5)!important;
  background:var(--gsgf-soft)!important;
  transform:translateY(-1px)!important;
}
.gsgf-answer span{
  display:block!important;
  color:var(--gsgf-navy)!important;
  font-size:12px!important;
  line-height:1.18!important;
  font-weight:680!important;
}
.gsgf-answer small{
  display:block!important;
  margin-top:3px!important;
  color:var(--gsgf-muted)!important;
  font-size:9.5px!important;
  line-height:1.26!important;
  font-weight:400!important;
}

.gsgf-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:7px!important;
  margin-top:9px!important;
}
.gsgf-actions-start{justify-content:flex-start!important}

.gsgf-btn,
.gsgf-link{
  min-height:36px!important;
  margin:0!important;
  padding:7px 13px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:6px!important;
  font-size:10.5px!important;
  line-height:1!important;
  font-weight:650!important;
  text-decoration:none!important;
  cursor:pointer!important;
  transition:.16s ease!important;
}
.gsgf-btn{
  border:1px solid var(--gsgf-teal)!important;
  background:var(--gsgf-teal)!important;
  color:#fff!important;
}
.gsgf-btn:hover{background:var(--gsgf-teal-dark)!important;border-color:var(--gsgf-teal-dark)!important;color:#fff!important}
.gsgf-link{
  border:1px solid var(--gsgf-border)!important;
  background:#fff!important;
  color:var(--gsgf-navy)!important;
}
.gsgf-link:hover{border-color:rgba(17,170,167,.42)!important;color:var(--gsgf-teal-dark)!important;background:var(--gsgf-soft)!important}
.gsgf-link:disabled{opacity:.38!important;cursor:not-allowed!important}

.gsgf-spinner{
  width:32px!important;
  height:32px!important;
  margin:0 0 10px!important;
  border:3px solid var(--gsgf-soft-2)!important;
  border-top-color:var(--gsgf-orange)!important;
  border-radius:50%!important;
  animation:gsgf-spin .8s linear infinite!important;
}
@keyframes gsgf-spin{to{transform:rotate(360deg)}}

/* Fixed, compact trigger on desktop. */
.gsgf-floating{
  position:fixed!important;
  right:20px!important;
  bottom:22px!important;
  z-index:999997!important;
  min-height:38px!important;
  margin:0!important;
  padding:8px 13px!important;
  display:none!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  border:1px solid var(--gsgf-navy)!important;
  border-radius:7px!important;
  background:var(--gsgf-navy)!important;
  color:#fff!important;
  box-shadow:0 10px 25px rgba(5,43,92,.18)!important;
  pointer-events:auto!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:650!important;
  cursor:pointer!important;
}
.gsgf-floating.is-visible{display:flex!important}
.gsgf-floating:hover{background:var(--gsgf-teal)!important;border-color:var(--gsgf-teal)!important}
.gsgf-floating-dot{
  width:6px!important;
  height:6px!important;
  flex:0 0 6px!important;
  background:var(--gsgf-orange)!important;
  border-radius:50%!important;
}

/* =========================================================
   RESULTS — ONLY THIS VIEW HAS INTERNAL SCROLLING
========================================================= */
.gsgf-results-scroll{
  width:100%!important;
  height:100%!important;
  max-height:100%!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  scrollbar-width:thin!important;
  scrollbar-color:var(--gsgf-teal) var(--gsgf-soft)!important;
}
.gsgf-results-scroll::-webkit-scrollbar{width:7px!important}
.gsgf-results-scroll::-webkit-scrollbar-track{background:var(--gsgf-soft)!important}
.gsgf-results-scroll::-webkit-scrollbar-thumb{background:var(--gsgf-teal)!important;border-radius:10px!important}

.gsgf-result-head{
  padding:18px 22px 13px!important;
  background:var(--gsgf-soft)!important;
  border-bottom:1px solid var(--gsgf-border)!important;
}
.gsgf-result-head h2{font-size:clamp(24px,2.8vw,32px)!important}
.gsgf-result-head > p:not(.gsgf-kicker){
  max-width:680px!important;
  margin:6px 0 0!important;
  color:var(--gsgf-muted)!important;
  font-size:11.5px!important;
  line-height:1.45!important;
  font-weight:400!important;
}

.gsgf-result-section{padding:13px 20px 0!important}
.gsgf-section-title{margin:0 0 7px!important}
.gsgf-section-title h3{
  margin:0!important;
  color:var(--gsgf-navy)!important;
  font-size:16px!important;
  line-height:1.2!important;
  font-weight:720!important;
  letter-spacing:-.018em!important;
}
.gsgf-section-title p{
  margin:2px 0 0!important;
  color:var(--gsgf-muted)!important;
  font-size:9.8px!important;
  line-height:1.35!important;
  font-weight:400!important;
}

.gsgf-products{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
}
.gsgf-product{
  min-width:0!important;
  min-height:96px!important;
  padding:8px!important;
  display:grid!important;
  grid-template-columns:74px minmax(0,1fr)!important;
  gap:9px!important;
  align-items:center!important;
  border:1px solid var(--gsgf-border)!important;
  border-radius:9px!important;
  background:#fff!important;
  color:var(--gsgf-text)!important;
  text-decoration:none!important;
  box-shadow:0 4px 12px rgba(5,43,92,.035)!important;
  transition:.16s ease!important;
}
.gsgf-product:hover{border-color:rgba(17,170,167,.46)!important;background:#FCFEFE!important;transform:translateY(-1px)!important;color:var(--gsgf-text)!important}
.gsgf-product-media{
  width:74px!important;
  height:74px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  border:1px solid var(--gsgf-border-soft)!important;
  border-radius:7px!important;
  background:#fff!important;
}
.gsgf-product-media img{
  width:90%!important;
  height:90%!important;
  max-width:90%!important;
  max-height:90%!important;
  margin:0!important;
  padding:0!important;
  display:block!important;
  object-fit:contain!important;
  background:#fff!important;
}
.gsgf-product-copy{min-width:0!important;display:block!important}
.gsgf-product em,
.gsgf-guide em{
  display:inline-flex!important;
  margin:0 0 3px!important;
  padding:3px 6px!important;
  border:1px solid rgba(255,151,0,.22)!important;
  border-radius:4px!important;
  background:#FFF8EC!important;
  color:#B96D00!important;
  font-size:8px!important;
  line-height:1!important;
  font-style:normal!important;
  font-weight:650!important;
}
.gsgf-product h3{
  margin:0 0 3px!important;
  display:-webkit-box!important;
  overflow:hidden!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  color:var(--gsgf-navy)!important;
  font-size:11.2px!important;
  line-height:1.24!important;
  font-weight:670!important;
}
.gsgf-price{
  margin:0 0 3px!important;
  color:var(--gsgf-teal-dark)!important;
  font-size:10.5px!important;
  line-height:1.2!important;
  font-weight:700!important;
}
.gsgf-price del{opacity:.5!important;margin-right:3px!important}
.gsgf-product small{
  display:block!important;
  color:var(--gsgf-muted)!important;
  font-size:9px!important;
  line-height:1.28!important;
  font-weight:400!important;
}

.gsgf-guides{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
}
.gsgf-guide{
  min-width:0!important;
  padding:10px 11px!important;
  display:block!important;
  border:1px solid var(--gsgf-border)!important;
  border-left:3px solid var(--gsgf-teal)!important;
  border-radius:8px!important;
  background:#fff!important;
  color:var(--gsgf-text)!important;
  text-decoration:none!important;
  transition:.16s ease!important;
}
.gsgf-guide:hover{border-color:rgba(17,170,167,.42)!important;border-left-color:var(--gsgf-orange)!important;background:var(--gsgf-soft)!important;color:var(--gsgf-text)!important}
.gsgf-guide h3{
  margin:0 0 3px!important;
  color:var(--gsgf-navy)!important;
  font-size:12px!important;
  line-height:1.23!important;
  font-weight:680!important;
}
.gsgf-guide p{
  margin:0 0 3px!important;
  display:-webkit-box!important;
  overflow:hidden!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  color:var(--gsgf-muted)!important;
  font-size:9.6px!important;
  line-height:1.32!important;
  font-weight:400!important;
}
.gsgf-guide small{
  display:block!important;
  color:var(--gsgf-teal-dark)!important;
  font-size:9px!important;
  line-height:1.28!important;
  font-weight:550!important;
}

.gsgf-result-actions{
  display:flex!important;
  justify-content:flex-end!important;
  gap:7px!important;
  padding:13px 20px 17px!important;
}

/* =========================================================
   RESPONSIVE — QUESTION VIEWS REMAIN COMPACT AND NON-SCROLLING
========================================================= */
@media(max-width:700px){
  .gsgf-modal{
    width:calc(100vw - 22px)!important;
    max-height:88dvh!important;
    border-radius:12px!important;
  }
  .gsgf-modal.is-results{
    width:calc(100vw - 18px)!important;
    height:88dvh!important;
    max-height:88dvh!important;
  }
  .gsgf-panel{padding:17px 14px 15px!important}
  .gsgf-intro,.gsgf-loading{min-height:225px!important}
  .gsgf-modal h2{font-size:24px!important}
  .gsgf-sub{font-size:11.8px!important;line-height:1.42!important}
  .gsgf-badges{margin:10px 0 12px!important;gap:4px!important}
  .gsgf-badges span{font-size:8.4px!important;padding:4px 6px!important;min-height:23px!important}
  .gsgf-answers{gap:6px!important;margin-top:9px!important}
  .gsgf-answer{min-height:62px!important;padding:8px!important}
  .gsgf-answer span{font-size:11px!important}
  .gsgf-answer small{font-size:8.8px!important;line-height:1.22!important}
  .gsgf-actions{margin-top:9px!important}
  .gsgf-btn,.gsgf-link{min-height:34px!important;padding:6px 11px!important;font-size:10px!important}
  .gsgf-floating{right:13px!important;bottom:18px!important;min-height:36px!important;padding:7px 11px!important;font-size:10.5px!important}
  .gsgf-result-head{padding:16px 15px 12px!important}
  .gsgf-result-head h2{font-size:24px!important}
  .gsgf-result-section{padding:11px 12px 0!important}
  .gsgf-products,.gsgf-guides{grid-template-columns:1fr!important;gap:6px!important}
  .gsgf-product{grid-template-columns:68px minmax(0,1fr)!important;min-height:86px!important;padding:7px!important}
  .gsgf-product-media{width:68px!important;height:68px!important}
  .gsgf-result-actions{padding:11px 12px 15px!important}
}

@media(max-width:390px){
  .gsgf-panel{padding:15px 12px 13px!important}
  .gsgf-modal h2{font-size:22px!important}
  .gsgf-answers{grid-template-columns:1fr 1fr!important}
  .gsgf-answer{min-height:59px!important;padding:7px!important}
  .gsgf-answer span{font-size:10.2px!important}
  .gsgf-answer small{font-size:8.2px!important}
}

@media(prefers-reduced-motion:reduce){
  .gsgf-root *{transition:none!important;animation-duration:.001ms!important}
}
