/* Ad Library mockup. Drawn 1:1 at a fixed internal width and only ever scaled
   down on narrow screens, so desktop text is real-size and crisp. The platform
   UI font is deliberate: this is a picture of Meta's page, not the site's type. */
.al-host{position:relative;width:100%}
.al{position:absolute;left:0;top:0;transform-origin:0 0;text-align:left;overflow:hidden;border-radius:14px;background:#f0f2f5;
  font:13px/1.38 "Segoe UI Historic","Segoe UI",-apple-system,BlinkMacSystemFont,Helvetica,Arial,sans-serif;color:#1c1e21;
  -webkit-font-smoothing:antialiased;
  box-shadow:0 0 0 1px rgba(12,14,20,.08),0 2px 4px rgba(12,14,20,.04),0 24px 48px -12px rgba(12,14,20,.18),0 60px 120px -40px rgba(12,14,20,.28)}
.al *{box-sizing:border-box}
.al img{display:block}

/* browser chrome */
.al-chrome{height:44px;background:#fff;display:flex;align-items:center;gap:16px;padding:0 16px;border-bottom:1px solid #e4e6ea}
.al-dots{display:flex;gap:8px}
.al-dots i{width:12px;height:12px;border-radius:50%;background:#e1e3e7;display:block}
.al-url{flex:1;max-width:560px;margin:0 auto;height:28px;border-radius:8px;background:#f0f2f5;display:flex;align-items:center;justify-content:center;gap:7px;color:#606770;font-size:12.5px;white-space:nowrap;overflow:hidden}
.al-url svg{width:11px;height:11px;flex:none}
.al-exts{display:flex;gap:10px;align-items:center}
.al-ext{width:26px;height:26px;border-radius:7px;display:grid;place-items:center;position:relative}
.al-ext.ef{background:#0b0d12}
.al-ext.ef::after{content:"";position:absolute;right:-2px;top:-2px;width:9px;height:9px;border-radius:50%;background:#22c55e;border:2px solid #fff}
.al-ext svg{width:15px;height:15px}

/* page head (the Ad Library's own sticky search bar) */
.al-view{position:relative;overflow:hidden}
.al-view::after{content:"";position:absolute;left:0;right:0;bottom:0;height:90px;background:linear-gradient(rgba(240,242,245,0),#f0f2f5 80%);pointer-events:none;z-index:4}
.al-scroll{will-change:transform}
.al-bar{background:#fff;border-bottom:1px solid #dadde1;padding:12px 20px;display:flex;align-items:center;gap:10px}
.al-logo{font-weight:700;font-size:16px;margin-right:6px;white-space:nowrap}
.al-sel{height:36px;border:1px solid #ccd0d5;border-radius:8px;padding:0 12px;display:flex;align-items:center;gap:8px;font-size:13px;white-space:nowrap;background:#fff}
.al-sel svg{width:10px;height:10px}
.al-q{flex:1;height:36px;border:1px solid #ccd0d5;border-radius:8px;padding:0 12px;display:flex;align-items:center;gap:8px;font-size:14px;background:#fff}
.al-q svg{width:15px;height:15px;flex:none}
.al-meta{display:flex;justify-content:space-between;align-items:center;padding:14px 20px 16px}
.al-count{font-size:15px;font-weight:700}
.al-count small{display:block;font-size:12px;font-weight:400;color:#65676b;margin-top:1px}
.al-filters{display:flex;gap:8px}
.al-filters span{height:32px;border-radius:8px;background:#e4e6eb;padding:0 12px;display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600}
.al-filters svg{width:13px;height:13px}

/* grid + cards */
.al-grid{display:grid;gap:16px;padding:6px 20px 110px;align-items:start}
.al-card{background:#fff;border-radius:10px;position:relative;box-shadow:0 0 0 1px #dadde1;
  transition:box-shadow .4s cubic-bezier(.2,.8,.2,1),opacity .45s,filter .45s;transform-origin:50% 40%}
.al-card.is-shop{box-shadow:0 0 0 2px #15803d,0 10px 24px -14px rgba(21,128,61,.55)}
.al-card.is-junk{opacity:.4;filter:saturate(.15)}
.al-card.is-gone{display:none}
.al-card.is-shown{opacity:.55;filter:saturate(.1)}
.al-top{padding:12px 12px 10px}
.al-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}
.al-active{display:inline-flex;align-items:center;gap:5px;font-weight:600;font-size:12.5px}
.al-active i{width:13px;height:13px;border-radius:50%;background:#15803d;position:relative}
.al-active i::after{content:"";position:absolute;left:3.5px;top:3.5px;width:5px;height:3px;border:solid #fff;border-width:0 0 1.6px 1.6px;transform:rotate(-45deg)}
.al-dotsm{width:18px;height:4px;background:radial-gradient(circle,#65676b 1.4px,transparent 1.6px) 0 0/6px 4px repeat-x}
.al-l{margin:0 0 2px;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.al-l.dim{color:#65676b}
.al-plat{display:flex;align-items:center;gap:6px;margin:3px 0 8px;font-size:12.5px}
.al-plat svg{width:13px;height:13px}
.al-btn{height:32px;border-radius:7px;background:#e4e6eb;display:grid;place-items:center;font-weight:600;font-size:13px}
.al-body{border-top:1px solid #e4e6ea;padding:10px 12px 0}
.al-adv{display:flex;gap:8px;align-items:center;margin-bottom:8px}
.al-av{width:30px;height:30px;border-radius:50%;flex:none;display:grid;place-items:center;color:#fff;font-weight:700;font-size:12px;letter-spacing:-.02em;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.al-adv b{display:block;font-size:13px;line-height:1.2}
.al-adv span{display:flex;align-items:center;gap:3px;font-size:11.5px;color:#65676b}
.al-adv span svg{width:10px;height:10px}
.al-text{font-size:12.5px;margin:0 0 9px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;height:34px}
.al-media{margin:0 -12px;aspect-ratio:1;background:#e9ebee;overflow:hidden;position:relative}
.al-media img{width:100%;height:100%;object-fit:cover}
.al-cap{position:absolute;left:10%;right:10%;top:9%;text-align:center;color:#fff;font:800 15px/1.2 "Segoe UI",Arial,sans-serif;
  text-shadow:0 1px 2px rgba(0,0,0,.55),0 0 12px rgba(0,0,0,.35);letter-spacing:-.01em}
.al-cap.box{color:#111;text-shadow:none}
.al-cap.box span{background:#fff;padding:2px 7px;border-radius:5px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.al-stk{position:absolute;right:9px;top:9px;background:#ff3b30;color:#fff;font:800 12px/1 "Segoe UI",Arial,sans-serif;padding:7px 8px;border-radius:6px;transform:rotate(4deg);box-shadow:0 4px 10px -4px rgba(0,0,0,.5)}
.al-stk.dark{background:#111}
.al-stk.lime{background:#e6ff4f;color:#111}
.al-band{position:absolute;left:0;right:0;bottom:0;padding:9px 10px;background:linear-gradient(transparent,rgba(0,0,0,.72));color:#fff;font:700 13px/1.2 "Segoe UI",Arial,sans-serif}
.al-play{position:absolute;left:50%;top:50%;width:48px;height:48px;margin:-24px 0 0 -24px;border-radius:50%;background:rgba(0,0,0,.45);display:grid;place-items:center;backdrop-filter:blur(2px)}
.al-play::after{content:"";margin-left:4px;border-left:15px solid #fff;border-top:9px solid transparent;border-bottom:9px solid transparent}
.al-dur{position:absolute;left:9px;bottom:9px;background:rgba(0,0,0,.6);color:#fff;font:600 11px/1 "Segoe UI",Arial,sans-serif;padding:4px 6px;border-radius:4px}
.al-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px 0 11px}
.al-foot div{min-width:0}
.al-foot small{display:block;font-size:11px;color:#65676b;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.al-foot b{display:block;font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.al-cta{flex:none;height:30px;padding:0 11px;border-radius:7px;background:#e4e6eb;display:grid;place-items:center;font-size:12.5px;font-weight:600;white-space:nowrap}

/* EcomFilter's marks on a card */
.al-chip{position:absolute;right:10px;top:-12px;height:24px;border-radius:12px;padding:0 10px 0 8px;display:inline-flex;align-items:center;gap:6px;
  font-size:12px;font-weight:600;background:#0b0d12;color:#fff;box-shadow:0 4px 12px -4px rgba(0,0,0,.4);
  opacity:0;transform:translateY(6px) scale(.96);transition:opacity .3s cubic-bezier(.2,.8,.2,1),transform .3s cubic-bezier(.2,.8,.2,1);z-index:3;pointer-events:none}
.al-chip.on{opacity:1;transform:none}
.al-chip.shop{background:#15803d}
.al-chip svg{width:12px;height:12px}
.al-spin{width:11px;height:11px;border-radius:50%;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;animation:al-spin .7s linear infinite}
@keyframes al-spin{to{transform:rotate(360deg)}}
.al-scan{position:absolute;inset:0;pointer-events:none;opacity:0;overflow:hidden;border-radius:10px;z-index:2}
.al-card.is-checking .al-scan{opacity:1}
.al-scan::before{content:"";position:absolute;top:0;bottom:0;width:45%;left:-50%;
  background:linear-gradient(90deg,transparent,rgba(34,197,94,.10),rgba(255,255,255,.35),rgba(34,197,94,.10),transparent);
  animation:al-sweep 1.1s cubic-bezier(.45,0,.2,1) infinite}
@keyframes al-sweep{to{left:110%}}
.al-card.is-checking{box-shadow:0 0 0 2px #0b0d12}
.al-group{position:absolute;left:10px;top:-12px;height:24px;border-radius:12px;padding:0 10px;background:#15803d;color:#fff;
  font-size:12px;font-weight:600;display:none;align-items:center;z-index:3;box-shadow:0 4px 12px -4px rgba(0,0,0,.35)}
.al-card.has-group .al-group{display:inline-flex}
.al-deck{position:absolute;left:0;right:0;top:0;bottom:0;pointer-events:none;z-index:-1}
.al-deck i{position:absolute;inset:0;border-radius:10px;background:#fff;box-shadow:0 0 0 1px #d4d7dc;transition:transform .6s cubic-bezier(.2,.8,.2,1),opacity .4s;opacity:0}
.al-card.has-group .al-deck i{opacity:1}
.al-card.has-group .al-deck i:nth-child(1){transform:translate(7px,7px) rotate(1.2deg)}
.al-card.has-group .al-deck i:nth-child(2){transform:translate(14px,14px) rotate(2.4deg);background:#fafafa}
.al-why{display:none;position:absolute;left:12px;right:12px;bottom:12px;background:#0b0d12;color:#fff;border-radius:8px;padding:8px 10px;font-size:12.5px;font-weight:600;z-index:3}
.al-card.is-shown .al-why{display:block}
.al-card.is-shown{opacity:1;filter:none}
.al-card.is-shown > :not(.al-why):not(.al-chip){opacity:.5;filter:saturate(.1)}

/* the extension's bar, bottom right, as on the real page. One fixed shape; only words change. */
.al-pill{position:absolute;right:18px;bottom:18px;height:44px;border-radius:22px;background:#0b0d12;color:#fff;display:flex;align-items:center;
  padding:0 6px 0 16px;gap:12px;font-size:13.5px;font-weight:600;white-space:nowrap;z-index:5;
  box-shadow:0 0 0 1px rgba(255,255,255,.06) inset,0 16px 32px -12px rgba(0,0,0,.6)}
.al-pill .pl-lead{width:12px;display:grid;place-items:center}
.al-pill .dot{width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.22)}
.al-pill .al-spin{border-color:#3a3d42;border-top-color:#fff}
.al-pill .pl-s{min-width:74px}
.al-pill .pl-h{min-width:98px}
.al-pill .sep{width:1px;height:18px;background:#2b2f37}
.al-pill .dim{color:#a3a8b3;font-weight:500}
.al-pill .num{font-variant-numeric:tabular-nums}
.al-pill .pl-btn{font:inherit;font-size:13px;height:32px;min-width:136px;border-radius:16px;border:0;background:#fff;color:#0b0d12;padding:0 14px;cursor:pointer;
  transition:background .25s,color .25s,transform .15s}
.al-pill .pl-btn:disabled{cursor:default}
.al-pill.is-scan .pl-btn{background:#1d2027;color:#a3a8b3}
.al-pill.is-group .pl-btn{background:#1d2027;color:#fff}
.al-pill .pl-btn.press{background:#22c55e;color:#052e14;transform:scale(.95)}
.al-pill.is-done .pl-btn:hover{transform:scale(1.04)}
.al-pill .pl-btn:focus-visible{outline:2px solid #22c55e;outline-offset:2px}
.al-pill .brand{display:flex;align-items:center;gap:6px;color:#a3a8b3;padding-right:10px}
.al-pill .brand svg{width:13px;height:13px}
.al-note{position:absolute;left:16px;bottom:16px;font-size:11.5px;color:#65676b;background:rgba(255,255,255,.92);border-radius:6px;padding:4px 8px;z-index:5;box-shadow:0 0 0 1px #e4e6ea}

.al-card.has-group .al-chip{display:none}
/* phone: the Ad Library's own mobile layout is one column and a slimmer bar */
.al.narrow .al-bar{padding:10px 12px;gap:8px}
.al.narrow .al-sel,.al.narrow .al-filters span+span,.al.narrow .al-count small{display:none}
.al.narrow .al-logo{font-size:15px}
.al.narrow .al-meta{padding:12px 12px 14px}
.al.narrow .al-grid{padding:6px 12px 100px}
.al.narrow .al-url{font-size:11.5px;justify-content:flex-start}
.al.narrow .al-pill{left:12px;right:12px;bottom:12px;justify-content:space-between;padding-left:14px}
.al.narrow .al-pill .brand,.al.narrow .al-pill .sep:last-of-type{display:none}
.al.narrow .al-pill .pl-s,.al.narrow .al-pill .pl-h{min-width:0}
.al.narrow .al-pill .pl-btn{min-width:0}
.al.narrow .al-note{display:none}

/* compact: the ad preview only, for smaller product moments on the page */
.al.compact .al-top{display:none}
.al.compact .al-body{border-top:0;padding-top:14px}
.al.compact .al-media{aspect-ratio:4/3}
.al.compact .al-grid{padding-top:18px}
.al-host{transition:height .6s cubic-bezier(.16,1,.3,1)}
/* lean: search bar only above the grid, for the short hero frame */
.al.lean .al-meta{display:none}
.al.lean .al-grid{padding-top:20px}
.al.lean:not(.narrow) .al-text{display:none}
.al.lean:not(.narrow) .al-media{aspect-ratio:16/10}
.al.lean:not(.narrow) .al-adv{margin-bottom:10px}
.al.lean:not(.narrow) .al-cap{font-size:13px}
.al.is-idle .al-pill{opacity:0;transform:translateY(12px)}
.al .al-pill{transition:opacity .4s,transform .4s cubic-bezier(.16,1,.3,1)}
.al.narrow .al-play{top:auto;bottom:14px;left:auto;right:14px;margin:0;width:40px;height:40px}
