/* IGSHOP Perfume Finder ("Find your scent").
   Colours come from the theme when it defines them (--y yellow, --k black, --line, --bone, --haze, --gut) and fall back to
   EMAJIE's values, so the plugin looks right on any theme. Everything is scoped to .fd. */
.fd{--fd-y:var(--y,#FDE306);--fd-k:var(--k,#121212);--fd-line:var(--line,#E4E0D6);--fd-bone:var(--bone,#F3EFE6);
  --fd-haze:var(--haze,linear-gradient(180deg,#FFFDF4 0%,#FFF6B2 46%,#FDE306 100%));--fd-sweep:radial-gradient(62% 72% at 50% 36%,#FFF 0%,#FFFBEA 52%,#F6EFD2 100%);
  --fd-gut:var(--gut,clamp(16px,3.2vw,44px));font-family:inherit}
.fd *,.fd *::before,.fd *::after{box-sizing:border-box}
.fd h2,.fd h3,.fd h4,.fd p,.fd ul{margin:0}
.fd button{font-family:inherit}
/* the plugin's own button, eyebrow and bottle frame (the theme's .y-* pieces are not assumed) */
.fd-eyebrow{display:inline-flex;align-items:center;gap:10px;font-size:11.5px;font-weight:600;letter-spacing:.2em;text-transform:uppercase}
.fd-eyebrow::before{content:"";width:22px;height:2px;background:var(--fd-y)}
.fd-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 26px;background:var(--fd-k);color:#fff;font-size:13.5px;font-weight:600;
  letter-spacing:.03em;text-decoration:none;border:1.5px solid var(--fd-k);border-radius:0;cursor:pointer;transition:background .25s,color .25s}
.fd-btn:hover{background:transparent;color:var(--fd-k)}
.fd-img{position:relative;display:block;width:100%;background:var(--fd-sweep);isolation:isolate;overflow:hidden}
.fd-img img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;mix-blend-mode:multiply}
.fd-line{text-decoration:none}
/* status and error lines (loading the live catalogue) */
.fd-state{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:clamp(22px,3vw,40px)}
.fd-state p{max-width:60ch;font-size:15px;line-height:1.55}
/* ---------- Perfume Finder ("Find your scent") ----------------------------------------------
   Yellow band between two black sections (Ain, 21 Oct). Compact on purpose (Ain, 21 Oct): no photo,
   tight spacing, and on a phone the intro and every question fit one screen with no scrolling.
   White card, black text; the selected answer is yellow. */
.fd{background:var(--fd-y);color:var(--fd-k);padding:clamp(28px,4vw,56px) max(var(--fd-gut),calc((100% - 1160px) / 2))}
.fd-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.fd-card{position:relative;overflow:hidden;max-width:980px;margin:0 auto;background:#fff;border:1px solid var(--fd-line);border-radius:18px;scroll-margin-top:96px}
.fd-stage{min-height:330px}
.fd-screen{animation:fdIn .35s ease both}
@keyframes fdIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.fd-screen{animation:none}}
.fd .fd-btn:disabled{opacity:.3;cursor:not-allowed;background:var(--fd-k);color:#fff}
.fd .fd-btn[aria-busy=true]{opacity:.6;cursor:progress}
.fd .fd-btn:focus-visible,.fd button:focus-visible,.fd a:focus-visible{outline:3px solid var(--fd-k);outline-offset:3px}
.fd-focus:focus{outline:none}
.fd-link{background:none;border:0;padding:0 2px;min-height:44px;font:inherit;font-size:13.5px;font-weight:600;color:var(--fd-k);
  text-decoration:underline;text-underline-offset:4px;cursor:pointer}

/* intro: copy on the left, a full-width start button on the right (no box around it, Ain 21 Oct) */
.fd-intro{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);align-items:center;gap:clamp(20px,4vw,52px);padding:clamp(26px,3.6vw,46px);min-height:330px}
.fd-intro-copy{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.fd-intro h3{font-size:clamp(32px,4.2vw,50px);line-height:1.04}
.fd-intro h3 em,.fd-id-title em{background:linear-gradient(transparent 60%,var(--fd-y) 60%)}
.fd-lead{max-width:46ch;font-size:clamp(15px,1.4vw,17px);font-weight:300;line-height:1.6}
.fd-sub{font-size:14.5px;font-weight:600}
.fd-intro-go{display:flex;flex-direction:column;gap:10px}
.fd-intro-go .fd-btn{width:100%}
.fd-meta{font-size:12.5px;color:#5C584F;letter-spacing:.03em}

/* a question: count + progress share one row, then the question, the answers, Back / Next */
.fd-q{display:flex;flex-direction:column;padding:clamp(16px,2.4vw,30px)}
.fd-top{display:flex;align-items:center;gap:12px;margin-bottom:clamp(12px,1.8vw,18px)}
.fd-count{flex:none;font-size:11.5px;font-weight:600;letter-spacing:.16em;text-transform:uppercase}
.fd-bar{flex:1;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px}
.fd-bar i{display:block;height:6px;border-radius:3px;background:var(--fd-line)}
.fd-bar .is-done{background:var(--fd-k)}
.fd-bar .is-now{background:var(--fd-y);box-shadow:inset 0 0 0 1.5px var(--fd-k)}
.fd-set{border:0;margin:0;padding:0;min-width:0}
.fd-legend{padding:0;width:100%}
.fd-legend .fd-focus{display:block;font-size:clamp(21px,2.4vw,28px);font-weight:600;letter-spacing:-.015em;line-height:1.16}
.fd-legend small{display:block;margin-top:4px;font-size:clamp(13.5px,1.3vw,15.5px);font-weight:300;line-height:1.45;color:#4A4741}
.fd-opts{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-top:clamp(12px,1.8vw,18px)}
.fd-opts .fd-opt{grid-column:span 2}
.fd-opts--5 .fd-opt:nth-child(n+4),.fd-opts--4 .fd-opt{grid-column:span 3}
.fd-opt{position:relative;display:flex;align-items:center;gap:12px;min-height:58px;padding:10px 16px;background:#fff;
  border:1.5px solid var(--fd-line);border-radius:12px;cursor:pointer;transition:border-color .2s,background .2s}
.fd-opt:hover{border-color:var(--fd-k)}
.fd-opt input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.fd-opt-tick{flex:none;display:grid;place-items:center;width:20px;height:20px;border:1.5px solid var(--fd-k);border-radius:50%;background:#fff}
.fd-opt input[type=checkbox]+.fd-opt-tick{border-radius:5px}
.fd-opt-text{display:flex;flex-direction:column;gap:1px;min-width:0}
.fd-opt-text b{font-size:15.5px;font-weight:600;line-height:1.25}
.fd-opt-text small{font-size:13px;font-weight:400;line-height:1.35;color:#4A4741}
.fd-opt--soft{background:var(--fd-bone)}
.fd-opt.is-on{background:var(--fd-y);border-color:var(--fd-k)}
.fd-opt.is-on .fd-opt-text small{color:#2E2D2A}
.fd-opt.is-on .fd-opt-tick{background:var(--fd-k)}
.fd-opt.is-on .fd-opt-tick::after{content:"";width:5px;height:10px;margin-top:-2px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.fd-opt.is-off{opacity:.45;cursor:not-allowed}
.fd-opt.is-off input{cursor:not-allowed}
.fd-opt:has(input:focus-visible){outline:3px solid var(--fd-k);outline-offset:3px}
.fd-note{margin-top:10px;font-size:13px;line-height:1.45;color:#4A4741}
.fd-pickmsg{min-height:1.4em;margin-top:8px;font-weight:500}
.fd-nav{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:clamp(12px,1.8vw,18px)}
.fd-back{background:none;border:0;min-height:44px;padding:0 4px;font:inherit;font-size:14px;font-weight:600;color:var(--fd-k);cursor:pointer;
  text-decoration:underline;text-underline-offset:4px}

/* results */
.fd-screen--res{display:flex;flex-direction:column;gap:clamp(12px,1.8vw,18px);padding:clamp(12px,2.2vw,26px)}
.fd-res-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.fd-id{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:clamp(18px,2.6vw,30px);border-radius:14px;background:var(--fd-haze)}
.fd-id--plain{background:var(--fd-bone)}
.fd-id-title{font-size:clamp(26px,3.6vw,40px);font-weight:600;letter-spacing:.02em;text-transform:uppercase;line-height:1.05}
.fd-id--plain .fd-id-title{text-transform:none;letter-spacing:-.015em;font-size:clamp(23px,2.8vw,32px)}
.fd-id-tag{font-size:clamp(16px,1.6vw,19px);font-weight:500}
.fd-id-story{max-width:64ch;font-size:clamp(14px,1.3vw,16px);font-weight:400;line-height:1.6}
.fd-scope{margin:-6px 2px 0;font-size:13px;color:#5C584F}
.fd-id-dir{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin-top:2px;font-size:14px}
.fd-id-dir span{width:100%;font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase}
.fd-id-dir b{font-weight:600}
.fd-id-dir i{font-style:normal}
.fd-weak{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:16px 18px;border:1.5px solid var(--fd-k);border-radius:14px;background:#FFFBD6}
.fd-weak h4{font-size:17px}
.fd-weak p{max-width:70ch;font-size:14.5px;line-height:1.55}
.fd-best{display:grid;grid-template-columns:minmax(0,.6fr) minmax(0,1.4fr);border:1.5px solid var(--fd-k);border-radius:14px;overflow:hidden}
.fd-best-img{display:flex;align-items:center;justify-content:center}
.fd-best-body{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:clamp(16px,2.2vw,26px)}
.fd-best-body h3{font-size:clamp(24px,2.8vw,32px);text-transform:uppercase;letter-spacing:.04em}
.fd-price{font-size:18px;font-weight:600}
.fd-prof{font-size:15px;font-weight:500}
.fd-notes{font-size:13px;color:#4A4741;text-transform:capitalize}
.fd-why{margin-top:4px}
.fd-why h4{margin-bottom:2px;font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase}
.fd-why p{max-width:56ch;font-size:14.5px;line-height:1.55}
.fd-card-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.fd-line{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border:1.5px solid var(--fd-k);color:var(--fd-k);
  font-size:13.5px;font-weight:600;letter-spacing:.03em;transition:background .25s,color .25s}
.fd-line:hover{background:var(--fd-k);color:#fff}
.fd-line--s,.fd-btn--s{min-height:40px;padding:0 14px;font-size:12.5px}
.fd-alts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(10px,1.4vw,16px)}
.fd-alt{display:grid;grid-template-columns:minmax(0,34%) minmax(0,1fr);border:1.5px solid var(--fd-line);border-radius:14px;overflow:hidden}
.fd-alt-img{display:flex;align-items:center}
.fd-alt-body{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:12px 14px 14px}
.fd-alt-tag{font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase}
.fd-alt-body h4{font-size:18px;text-transform:uppercase;letter-spacing:.04em}
.fd-alt-body .fd-price{font-size:15px}
.fd-alt-why{font-size:13.5px;line-height:1.45;color:#2E2D2A}
.fd-refine{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:clamp(14px,2vw,22px);border-radius:14px;background:var(--fd-bone)}
.fd-refine h4{font-size:clamp(16px,1.8vw,20px)}
.fd-tuned{font-size:14px}
.fd-tuned .fd-link{margin-left:14px}
.fd-chips{display:flex;flex-wrap:wrap;gap:8px}
.fd-chip{min-height:42px;padding:0 16px;border:1.5px solid var(--fd-k);border-radius:999px;background:#fff;color:var(--fd-k);font:inherit;font-size:14px;font-weight:600;cursor:pointer;
  transition:background .2s,color .2s}
.fd-chip:hover{background:var(--fd-k);color:#fff}
.fd-chip--s{min-height:40px;padding:0 14px;font-size:13px}
.fd-feedback{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;padding-top:2px;font-size:14.5px}
.fd-feedback p{font-weight:500}

/* TABLET AND PHONE: the other matches stack one under another instead of two squeezed side by side. */
@media (max-width:900px){
  .fd-alts{grid-template-columns:1fr}
}

/* PHONE: the intro and each question must fit one screen. Answers go two to a row (an odd last
   one takes the full row); type, padding and the progress row are tightened. The tick circle is
   dropped on single-choice answers (the whole tile is the button and turns yellow) but kept on the
   "pick up to two" question, where the tick is what shows it allows more than one. */
@media (max-width:760px){
  .fd{padding:12px 12px 16px}
  .fd-card{border-radius:14px;scroll-margin-top:72px}
  .fd-stage{min-height:0}

  .fd-intro{grid-template-columns:1fr;min-height:0;gap:14px;padding:20px 16px 18px}
  .fd-intro h3{font-size:34px}
  .fd-lead{font-size:15px;line-height:1.55}

  .fd-q{padding:14px 14px 8px}
  .fd-top{margin-bottom:10px}
  .fd-legend .fd-focus{font-size:21px}
  .fd-legend small{margin-top:3px;font-size:13.5px}
  .fd-opts{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
  .fd-opts .fd-opt,.fd-opts--5 .fd-opt:nth-child(n+4),.fd-opts--4 .fd-opt{grid-column:auto}
  .fd-opts .fd-opt:last-child:nth-child(odd){grid-column:1 / -1}
  .fd-opt{min-height:50px;gap:8px;padding:7px 10px;border-radius:10px}
  .fd-opt-text b{font-size:14px;line-height:1.2}
  .fd-opt-text small{font-size:12px;line-height:1.3}
  .fd-opt input[type=radio]+.fd-opt-tick{display:none}
  .fd-opt-tick{width:18px;height:18px}
  .fd-opt.is-on .fd-opt-tick::after{width:4px;height:9px}
  .fd-note{margin-top:8px;font-size:12.5px}
  .fd-pickmsg{min-height:1.3em;margin-top:6px;font-size:13px}
  .fd-nav{margin-top:6px}
  .fd .fd-nav .fd-btn{min-height:44px;padding:0 24px}

  .fd-screen--res{gap:10px;padding:8px 12px 14px}
  .fd-res-top .fd-link{min-height:40px;font-size:13px}
  .fd-id{gap:5px;padding:14px;border-radius:12px}
  .fd-id-title{font-size:23px}
  .fd-id--plain .fd-id-title{font-size:21px}
  .fd-id-tag{font-size:15px}
  .fd-id-story{font-size:13.5px;line-height:1.5}
  .fd-id-dir{font-size:13px}
  .fd-weak{padding:12px 14px}

  /* best match: the bottle sits beside the name, price and notes; the reasons and buttons run full width */
  .fd-best{grid-template-columns:78px minmax(0,1fr);column-gap:12px;align-items:start;padding:12px}
  .fd-best-body{display:contents}
  .fd-best-img{grid-column:1;grid-row:1 / span 5;border-radius:8px}
  .fd-best-body>*{grid-column:2}
  .fd-best-body>.fd-why,.fd-best-body>.fd-card-btns{grid-column:1 / -1}
  .fd-best-body h3{font-size:21px}
  .fd-price{font-size:16px}
  .fd-prof{font-size:13.5px}
  .fd-notes{font-size:12px}
  .fd-why{margin-top:8px}
  .fd-why p{font-size:13.5px;line-height:1.5}
  .fd-card-btns{margin-top:10px}
  .fd-card-btns>*{flex:1 1 auto}

  /* the two other picks stay as a bottle beside the text, not a tall stacked card */
  .fd-alts{gap:8px}
  .fd-alt{grid-template-columns:70px minmax(0,1fr)}
  .fd-alt-body{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;column-gap:8px;row-gap:3px;padding:10px 12px 12px}
  .fd-alt-body>*{grid-column:1 / -1}
  .fd-alt-body>h4{grid-column:1;font-size:16px}
  .fd-alt-body>.fd-price{grid-column:2}
  .fd-alt-why{font-size:13px}
  .fd-alt .fd-card-btns{flex-wrap:nowrap;width:100%;margin-top:4px}
  .fd-x{display:none}
  .fd-refine{gap:8px;padding:12px 14px}
  .fd-chip{min-height:40px;padding:0 13px;font-size:13px}
  .fd-feedback{font-size:13.5px}
}

