/* ============================================================
   The activity feed's featured sections.

   Why this file exists, and why none of it lives in
   snifffr-featured-sellers.css: that stylesheet dresses a COMPONENT that
   renders on /sellers/, /buyers/, the home page and here, from thirteen call
   sites. This file makes a COMPOSITION decision about one page — how the two
   paid rails sit next to each other on /activity/ — so every selector hangs
   off markup only that page emits:

     .snifffr-fsell-band         emitted by snifffr_activity_featured_band()
     .snifffr-feat-plain         added to the wrappers in activity/index.php
     .snifffr-fsi-shelf.is-pane  the modifier snifffr_fsi_activity_pane_shelf() passes

   Nothing here can match on another surface. Verified before writing:
   .buyers_feat_widget_desk and .snifffr-feed-pane appear in no other template.

   🚨 Loads AFTER snifffr-featured-sellers.css, by a declared dependency, not
   by luck. Several rules below tie with it on specificity and a tie is
   settled by source order alone.
   ============================================================ */

/* The band's ground, its tile treatment and its skin tokens moved to
   snifffr-featured-sellers.css when /sellers/ adopted the same band — two
   copies of those rules would have drifted the first time one was adjusted.
   Its DEFAULT skin is this page's plum, so nothing is reset here. What is
   left below is what only /activity/ needs. */
:root {
	--afb-ink: #332E4D;
}

/* ── un-painting the widget wrappers ──────────────────────────────────
   snifffr-mobile-redesign.css:15415 paints all three wrappers as one pale
   pink card:

     body.activity .buyers_feat_widget_mobile,
     body.activity .buyers_feat_widget_mobile.activityfeatsel,
     body.snifffr-desktop-beta .buyers_feat_widget_desk {
         background: linear-gradient(135deg,#fff,#fdf1f6) !important;
         border: 1px solid …; border-radius: 16px; padding: 18px 16px 14px;
     }

   Left alone that gives a plum band inside a pink card inside a page — two
   framings competing to say "this is a section". The band and the shelf each
   own their own ground now, so the wrapper goes back to being a plain box.

   🚨 The !important is answering an !important, and the extra class is
   answering specificity: the rules above are (0,2,1) and (0,3,1), so
   .snifffr-feat-plain is carried in the markup purely to get above them
   without a fourth !important arms race. The wrappers are the widget's own
   and not ours to rename — the same exemption the rail stylesheet documents. */
body.activity .buyers_feat_widget_mobile.snifffr-feat-plain,
body.activity .buyers_feat_widget_mobile.activityfeatsel.snifffr-feat-plain,
body.activity .buyers_feat_widget_desk.snifffr-feat-plain {
	background: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
	margin: 0 0 18px !important;
}

/* ── one section label, three blocks ──────────────────────────────────
   Four headings on this page were four different elements, so four cascade
   paths and four results: <h2 class="widget-title"> from the who's-online
   block, a bare <h4> for the buyer's Featured Sellers, a second <h4> with an
   inline-styled star for the seller's, and the shelf's own <h2>. One rule
   now, three selectors — the fourth is gone, replaced by the band's label.

   Uppercase at 13px rather than the shelf's old 18px sentence case: these sit
   in a 316px column on desktop, where a title that size costs more height
   than it buys, and the band is carrying the section's weight with colour
   instead of type. */
.snifffr-afb-label,
.snifffr-fsi-shelf.is-pane .snifffr-fsi-shelf-title h2,
body.activity .buyers_widget_mobile .widget-title {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 11px;
	padding: 0;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-align: left;
	color: var(--afb-ink);
}

/* ── the band ─────────────────────────────────────────────────────────── */

/* No padding-right, so the rail runs off the band's edge and the mask fade
   set in the rail module dissolves the last card into the plum. */
.snifffr-fsell-band {
	padding: 13px 0 14px 14px;
}

.snifffr-fsell-band-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0;
	padding-right: 12px;
}

.snifffr-fsell-band .snifffr-fsell-band-label {
	margin: 0;
	min-width: 0;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.snifffr-fsell-band-star {
	flex: 0 0 auto;
	display: flex;
	color: var(--fsell-band-accent);
}

.snifffr-fsell-band-star svg {
	display: block;
}

.snifffr-fsell-band-all {
	flex: 0 0 auto;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fsell-band-accent);
	text-decoration: none;
	/* Vertical padding, not height: it has to clear 44px of touch target
	   without adding 44px to the band. The row it sits in is taller than the
	   text, so this spends the slack that is already there. */
	padding: 11px 0 11px 10px;
	white-space: nowrap;
}

.snifffr-fsell-band-all:hover,
.snifffr-fsell-band-all:focus-visible {
	color: #fff;
	text-decoration: underline;
}

.snifffr-fsell-band-hint {
	margin: 3px 12px 0 0;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.35;
	/* 5.9:1 on the band — this is explanatory copy a buyer reads, not a
	   decorative caption, so it stays above AA rather than at it. */
	color: rgba(255, 255, 255, 0.72);
}

/* Clears the label row above it. The row's own padding is set in the rail
   module, along with everything else the band shares with /sellers/. */
.snifffr-fsell-band .snifffr-fsell-rail {
	margin-top: 11px;
}

/* ── the tile's height in the sidebar ─────────────────────────────────
   The tile treatment itself lives in snifffr-featured-sellers.css and is
   driven by custom properties. Only the height differs here, kept in step
   with the 101px card the activity sidebar already uses. */

.buyers_feat_widget_desk .snifffr-fsell-band {
	--fsell-tile-h: 143px;
}


/* ── the shop shelf, in a pane ────────────────────────────────────────
   Left alone in every way that matters — the card, the price, the slot are
   untouched, and that is the point of the whole change: it is now the only
   photo-over-white-footer thing on the page. What goes is its own pale pink
   panel, which was a second framing inside the wrapper's framing inside the
   band's. Label and cards, on the page's ground.

   .is-pane is the modifier snifffr_fsi_activity_pane_shelf() passes and
   nothing else does, so /shop/ is untouched. Each rule out-specifies the one
   it answers, so none of this depends on load order. */

.snifffr-fsi-shelf.is-pane {
	background: none;
	border: 0;
	border-radius: 0;
	padding: 0;
	margin: 0 0 18px;
	overflow: visible;
}

.snifffr-fsi-shelf.is-pane .snifffr-fsi-shelf-head {
	padding: 0;
	margin-bottom: 0;
}

.snifffr-fsi-shelf.is-pane .snifffr-fsi-rail {
	/* Flush left so the first card lines up with the band above it, with the
	   bottom padding kept for the card's hover lift. */
	padding: 3px 0 10px;
}

/* ── the who's-online block ───────────────────────────────────────────
   Only its heading is touched, by the shared rule far above. This is here to
   say so: the avatars, the count pill and the layout are all left as they
   were. */
