/* Listings on posts (library/Marketplace/MarketPostTags.php): the strip under
 * a post (feed/partials/listing_strip.php) and the composer's "Tag products"
 * picker (post/partials/inc/product_tags.php). Colours come from sb_theme.css's tokens. */

:root { --pl-accent: var(--sb-accent, #0073b7); }

/* ---- the strip on a post ------------------------------------------------------ */
.pl-wrap { margin: 10px 12px; }
.pl-head { font-size: 12px; font-weight: 700; color: var(--sb-text-muted); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.pl-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.pl-item {
    flex: 0 0 150px; scroll-snap-align: start; display: flex; flex-direction: column; border: 1px solid var(--sb-border);
    border-radius: 12px; overflow: hidden; background: var(--sb-surface); color: var(--sb-text); text-decoration: none;
}
.pl-item:hover, .pl-item:focus { text-decoration: none; color: var(--sb-text); border-color: var(--pl-accent); }
.pl-img { position: relative; display: block; aspect-ratio: 1 / 1; background: rgba(127,127,127,.12) center / cover no-repeat; }
.pl-badge { position: absolute; left: 6px; top: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.pl-body { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; min-width: 0; }
.pl-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-price { font-size: 14px; font-weight: 800; }
.pl-price small { font-weight: 500; color: var(--sb-text-muted); }
.pl-meta { font-size: 12px; color: var(--sb-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-cta { margin-top: 6px; align-self: flex-start; font-size: 13px; font-weight: 700; color: #fff; background: var(--pl-accent); border-radius: 999px; padding: 5px 14px; }

/* One listing: a wide card, photo on the left. */
.pl-one { overflow: visible; }
.pl-one .pl-item { flex: 1 1 auto; flex-direction: row; }
.pl-one .pl-img { flex: 0 0 132px; aspect-ratio: auto; min-height: 132px; }
.pl-one .pl-body { justify-content: center; padding: 12px 14px; }
.pl-one .pl-title { font-size: 15px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 420px) {
    .pl-one .pl-img { flex-basis: 104px; min-height: 104px; }
}

/* ---- the composer's picker ---------------------------------------------------- */
.pt-panel { margin: 0 14px 10px; padding: 12px; border: 1px solid var(--sb-border); border-radius: 14px;
    background: color-mix(in srgb, var(--pl-accent) 4%, var(--sb-surface)); }
.pt-panel[hidden] { display: none; }
.pt-head { display: flex; align-items: baseline; gap: 6px; font-size: 13px; margin-bottom: 8px; }
.pt-sell { margin-left: auto; font-size: 12px; font-weight: 700; }
.pt-list { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; }
.pt-item { display: flex; align-items: center; gap: 10px; margin: 0; padding: 6px; border-radius: 10px; cursor: pointer; font-weight: 500; }
.pt-item:hover { background: rgba(127,127,127,.08); }
.pt-item input[disabled] + .pt-img { opacity: .5; }
.pt-img { flex: none; width: 44px; height: 44px; border-radius: 8px; background: rgba(127,127,127,.12) center / cover no-repeat; }
.pt-text { display: flex; flex-direction: column; min-width: 0; }
.pt-title { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-price { font-size: 12px; font-weight: 700; color: var(--sb-text-muted); }

/* ---- products in a Watch video (watch/partials/description_area.php) ---------- */
.wt-shop { display: flex; gap: 8px; overflow-x: auto; margin-top: 8px; padding-bottom: 2px; }
.wt-shop-item { flex: none; display: flex; align-items: center; gap: 8px; max-width: 240px; padding: 5px 12px 5px 5px; border-radius: 999px;
    background: rgba(0,0,0,.55); color: #fff; text-decoration: none; backdrop-filter: blur(6px); }
.wt-shop-item:hover, .wt-shop-item:focus { color: #fff; text-decoration: none; background: rgba(0,0,0,.7); }
.wt-shop-img { flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.2) center / cover no-repeat; }
.wt-shop-text { display: flex; flex-direction: column; min-width: 0; font-size: 12px; line-height: 1.25; }
.wt-shop-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
