/* ==========================================================================
   OptimaSciences theme: brand / content pages
   Our Lab, Partner program, Partner apply, Partner area, Contact, FAQ.
   Each page's own snippet stylesheet travels with its section (inline <style>).
   This file only holds what those snippets relied on the old theme for,.
   ========================================================================== */


/* ---------- the old theme's heading line-height ----------
   Shoptimizer gave h3 a 1.45 line-height; the snippets left it unset and were
   designed against it (theme.css uses 1.2 for all headings). */
.os-pp h3,.os-contact h3{line-height:1.45}
/* and its form-control normalisation, which the Contact / application forms were built on */
.os-contact textarea,.os-af textarea{vertical-align:top}
.os-af textarea{height:150px}   /* Shoptimizer fixed every textarea at 150px; the .os-af boxes rely on it */
.os-contact .os-submit{line-height:normal}

/* ---------- FAQ page (page-templates/faq.php) ----------
   The FAQ snippet's own stylesheet (#os-fqp-css), now in the theme because the page is built from
   the FAQs list instead of the shortcode. Full width: the questions use the whole 1170px column the
   snippet was designed for (the live site squeezed them into Shoptimizer's 76% #primary). */
.os-fqp{
  --fqp-ink:#2B3036;
  --fqp-accent:#2743B8;
  --fqp-muted:#66707B;
  --fqp-line:#E2E8EE;
  --fqp-wash:#F5F7F9;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  line-height:1.5;-webkit-font-smoothing:antialiased;color:#2C3339
}
.os-fqp *,.os-fqp *::before,.os-fqp *::after{box-sizing:border-box}
.os-fqp-in{max-width:1170px;margin:0 auto;padding:0 24px}

/* ---------- hero ---------- */
.os-fqp-hero{
  background:linear-gradient(180deg,#DCEBF5 0%,#E1EDF6 17%,#E7F1F7 34%,#EEF4F8 52%,
    #F5F7F9 69%,#FBFBFB 88%,#FCFCFC 100%);
  padding:clamp(52px,6vw,86px) 0 clamp(46px,5vw,70px)
}
.os-fqp .os-fqp-eyebrow{
  display:flex;align-items:center;gap:12px;margin:0 0 16px;
  font-size:9.5px;font-weight:600;letter-spacing:1.425px;text-transform:uppercase;
  color:var(--fqp-muted);line-height:1.4
}
.os-fqp .os-fqp-eyebrow::before{content:"";width:26px;height:1px;background:currentColor;flex:0 0 26px}
.os-fqp .os-fqp-h1{
  margin:0;padding:0;border:0;
  font-size:clamp(30px,4vw,48px);line-height:1.06;font-weight:800;
  letter-spacing:-.038em;color:var(--fqp-ink);text-transform:none;max-width:18ch
}
.os-fqp .os-fqp-sub{
  margin:18px 0 0;font-size:clamp(15px,1.3vw,17px);line-height:1.62;
  color:var(--fqp-muted);max-width:62ch
}

/* ---------- body ---------- */
.os-fqp-body{background:#fff;padding:0px 0 88px}
.os-fqp-grid{display:grid;grid-template-columns:264px minmax(0,1fr);gap:clamp(36px,5vw,76px);align-items:start;padding-top:clamp(44px,5vw,68px)}

/* ---------- jump menu ---------- */
.os-fqp-toc{position:sticky;top:96px;font-size:13.5px;line-height:1.5}
.os-fqp .os-fqp-toc-k{
  margin:0 0 14px;font-size:9.5px;font-weight:600;letter-spacing:1.425px;
  text-transform:uppercase;color:var(--fqp-muted)
}
.os-fqp-toc ul{list-style:none;margin:0;padding:0}
.os-fqp-toc > ul > li{margin:0 0 18px}
.os-fqp-toc > ul > li > a{
  display:block;font-weight:700;color:var(--fqp-ink);text-decoration:none;
  font-size:13.5px;margin:0 0 7px
}
.os-fqp-toc ul ul li{margin:0 0 5px}
.os-fqp-toc ul ul a{
  display:block;color:var(--fqp-muted);text-decoration:none;font-size:12.5px;line-height:1.45;
  padding-left:12px;border-left:1px solid var(--fqp-line);transition:color .14s ease,border-color .14s ease
}
.os-fqp-toc ul ul a:hover{color:var(--fqp-accent);border-color:var(--fqp-accent)}
.os-fqp .os-fqp-toc-ask{
  display:inline-block;margin-top:6px;font-size:13px;font-weight:600;
  color:var(--fqp-accent);text-decoration:none
}

/* ---------- questions ---------- */
.os-fqp-group{margin:0 0 clamp(44px,4.6vw,64px);scroll-margin-top:90px}
.os-fqp .os-fqp-gh{
  margin:0 0 6px;padding:0 0 14px;border:0;border-bottom:1px solid var(--fqp-line);
  font-size:clamp(11px,1.1vw,12px);font-weight:700;letter-spacing:1.5px;
  text-transform:uppercase;color:var(--fqp-accent)
}
.os-fqp-q{padding:26px 0;border-bottom:1px solid var(--fqp-line);scroll-margin-top:90px}
.os-fqp-q:last-of-type{border-bottom:0}
.os-fqp .os-fqp-q h3{
  margin:0 0 10px;padding:0;border:0;
  font-size:clamp(17px,1.7vw,19px);line-height:1.32;font-weight:700;
  letter-spacing:-.02em;color:var(--fqp-ink);text-transform:none
}
.os-fqp .os-fqp-q p{
  margin:0;font-size:15.5px;line-height:1.68;color:var(--fqp-muted);max-width:70ch
}
.os-fqp .os-fqp-q a{color:var(--fqp-accent);text-decoration:underline;text-underline-offset:2px;text-decoration-thickness:1px}
.os-fqp .os-fqp-q a:hover{text-decoration-thickness:2px}

/* ---------- calls to action ---------- */
.os-fqp-cta{
  display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;
  margin:30px 0 0;padding:26px 28px;border-radius:16px;background:var(--fqp-wash)
}
.os-fqp .os-fqp-cta-t{margin:0;font-size:17px;line-height:1.3;font-weight:700;letter-spacing:-.02em;color:var(--fqp-ink)}
.os-fqp .os-fqp-cta-s{margin:6px 0 0;font-size:14px;line-height:1.5;color:var(--fqp-muted);max-width:52ch}
.os-fqp .os-fqp-btn{
  display:inline-flex;align-items:center;gap:9px;flex:0 0 auto;
  background:var(--fqp-accent);color:#fff;
  font-size:14px;font-weight:600;line-height:1.2;
  padding:14px 24px;border-radius:999px;text-decoration:none;white-space:nowrap;
  transition:background .15s ease,transform .15s ease
}
.os-fqp .os-fqp-btn:hover{background:#1E36A0;color:#fff;transform:translateY(-1px);text-decoration:none}

.os-fqp-end{margin:8px 0 0;padding:34px 0 0;border-top:1px solid var(--fqp-line)}
.os-fqp .os-fqp-end-t{margin:0;font-size:19px;font-weight:700;letter-spacing:-.02em;color:var(--fqp-ink)}
.os-fqp .os-fqp-end-s{margin:8px 0 20px;font-size:15px;line-height:1.6;color:var(--fqp-muted);max-width:58ch}

@media (max-width:940px){
  .os-fqp-grid{grid-template-columns:1fr;gap:32px;padding-top:34px}
  .os-fqp-toc{position:static;padding:20px 22px;border-radius:16px;background:var(--fqp-wash)}
  .os-fqp-toc ul ul{display:none}
  .os-fqp-toc > ul{display:flex;flex-wrap:wrap;gap:8px 18px}
  .os-fqp-toc > ul > li{margin:0}
  .os-fqp .os-fqp-h1{max-width:none}
}
@media (max-width:560px){
  .os-fqp-in{padding:0 20px}
  .os-fqp-cta{padding:22px 20px}
  .os-fqp .os-fqp-btn{width:100%;justify-content:center}
}
/* the old theme's heading line-height + nested list spacing the snippet was built against */
.os-fqp h2{line-height:1.25}
.os-fqp .os-fqp-toc ul ul{margin:13.5px 0 13.5px 27px}
@media (max-width:940px){.os-fqp .os-fqp-toc ul ul{margin:0}}
/* answers with more than one paragraph or a list (the snippet only ever had one <p>) */
.os-fqp .os-fqp-q p + p{margin-top:12px}
.os-fqp .os-fqp-q ul,.os-fqp .os-fqp-q ol{margin:12px 0 0 20px;padding:0;font-size:15.5px;line-height:1.68;color:var(--fqp-muted);max-width:70ch}

/* ---------- simple theme page (title + content), the old Shoptimizer page.php ----------
   Measured on the live Affiliate Area: 1170px column, 32px above, 48px below
   (24px on phones), 41.89px gutters on desktop, 16px / 15px below 993 / 768px. */
.os-ctn{box-sizing:content-box;max-width:1170px;margin:0 auto;padding:32px 41.89px 48px}
.os-ctn__head{margin:0 0 24px}
.os-ctn__title{margin:0 0 16px;font-size:42px;font-weight:600;line-height:1.2;letter-spacing:-1.1px;color:#111}
@media (max-width:992px){.os-ctn{padding-left:16px;padding-right:16px}}
@media (max-width:767px){
  .os-ctn{padding:32px 15px 24px}
  .os-ctn__title{font-size:30px;letter-spacing:-.3px}
}

/* AffiliateWP notice ("You're unauthorized to view this page...") */
.affwp-notice{margin:0 0 21px;padding:10px;background:#ffffe0;border:1px solid #e6db55;color:#333;line-height:1.6}
.affwp-notice a{color:#656565;text-decoration:underline;text-decoration-thickness:.75px}

/* ---------- AffiliateWP registration form (partner-apply) ----------
   Field styles measured on the live page. The .os-af snippet asked for a
   centred 760px reading column, but its rule targeted #primary, which this
   page does not have, so on the live site the form runs edge to edge (1388px
   wide inputs at 1440). The preview follows the snippet's stated intent;
   remove .os-ctn--form's max-width to get the live behaviour back. */
.os-ctn--form{max-width:760px;padding-left:0;padding-right:0}
.affwp-form{margin:0 0 24px;font-size:16px}
.affwp-form fieldset{margin:1.618em 0;padding:1em 1.618em 1.618em;border:0;min-width:0}
.affwp-form legend{display:block;width:100%;padding:10px 0;margin:0 0 1em;font-size:1.2em;font-weight:600;line-height:1.5;color:#111}
.affwp-form fieldset > p{margin:0 0 19.452px}
.affwp-form fieldset > p > label{display:inline;color:#444}
.affwp-form fieldset > p > input[type=text],
.affwp-form fieldset > p > input[type=email]{
  display:block;width:100%;height:40px;padding:0 11.2px;font:inherit;font-size:16px;color:#444;
  background:#fff;border:1px solid #d2d6dc;border-radius:4.8px;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.affwp-form fieldset > p > input:focus{outline:none;border-color:#2743B8;box-shadow:0 0 0 3px rgba(39,67,184,.14)}
.affwp-form .affwp-tos{display:inline;margin:0}
.affwp-form .affwp-tos input{margin:3px 3px 3px 4px;vertical-align:baseline}
.affwp-form .affwp-tos a{color:#656565}
.affwp-form .affwp-tos a:hover{color:#111}
.affwp-form .affwp-submit{display:inline-block;margin:0;padding:.818em 1.416em;border:0;border-radius:4px;
  background:#000;color:#fff;font:inherit;font-size:.9375em;font-weight:600;line-height:normal;cursor:pointer}
.affwp-form .affwp-submit:hover{background:#333}
@media (max-width:767px){.affwp-form{font-size:15px}}
