/* ==========================================================================
   assets/css/marketplace.css — the public marketplace.

   Built from the client-approved preview (assets/css/marketplace-preview.css,
   variation 1), which stays untouched as the design reference. Three changes,
   all mechanical, none visual:

   1. Everything is still scoped under .mp, but .mp now wraps the page CONTENT
      inside <main>, never <body>, so the real site header and footer are the
      ones on screen and are styled only by jbm.css.
   2. The preview's own header, utility bar, nav, footer and skip-link rules
      are dropped — the site already has all of those.
   3. Classes that jbm.css also styles without a scope (hero, hero-copy,
      eyebrow, badge, filters, pagination, price, categories, category-grid,
      section-heading, product-grid, result-count) are renamed mp-*, so the
      approved look does not inherit the storefront's min-heights, sticky
      sidebars and pagination colours.

   The detail page, gallery and enquiry form at the end are new, in the same
   tokens. Design tokens match jbm.css: charcoal #171b19, yellow #f6bf14,
   warm paper #f7f6f2, borders #e7e9e5, 1360px container.
   ========================================================================== */

.mp{--ink:#171b19;--yellow:#f6bf14;--paper:#f7f6f2;--line:#e7e9e5;color:var(--ink);font:15px/1.45 Arial,Helvetica,sans-serif;background:#fff}
.mp *{box-sizing:border-box}
.mp a{color:inherit;text-decoration:none}
.mp button,.mp input,.mp select,.mp textarea{font:inherit;color:inherit}
.mp button,.mp select{cursor:pointer}
.mp img{display:block;max-width:100%}
.mp h1,.mp h2,.mp h3,.mp p{margin:0}
.mp h2{font-size:29px;line-height:1.2;letter-spacing:-.7px}
.mp h3{font-size:17px}
.mp .wrap{width:min(91%,1360px);margin-inline:auto}

/* --- Hero ---------------------------------------------------------------- */
.mp .mp-hero{height:322px;background:var(--ink);position:relative;overflow:hidden;color:#fff}
.mp .hero-photo{position:absolute;inset:0 0 0 54%;background:url('../img/categories/framing.png') center/cover;clip-path:polygon(17% 0,100% 0,100% 100%,0 100%)}
.mp .mp-hero:after{content:'';position:absolute;top:0;left:56%;width:55px;height:115px;background:var(--yellow);transform:skew(-23deg)}
.mp .mp-hero-copy{position:relative;padding-top:43px;z-index:1}
.mp .mp-eyebrow{font-size:15px;font-weight:700;letter-spacing:1.5px;color:var(--yellow)}
.mp .mp-hero h1{font-size:clamp(30px,3.4vw,49px);line-height:1.13;letter-spacing:-1px;margin:20px 0 12px;max-width:850px;color:inherit;font-weight:700}
.mp .mp-hero-copy>p:last-child{font-size:22px;color:#c6cac7;max-width:790px}

/* --- Search panel -------------------------------------------------------- */
.mp .discovery{background:var(--paper);padding-bottom:26px}
.mp .market-search{position:relative;z-index:2;margin-top:-55px;background:#fff;border-radius:9px;padding:22px 25px 14px;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,1.05fr) auto;gap:10px 25px;box-shadow:0 6px 24px #171b1910}
.mp label{display:block}
.mp .market-search label{font-size:13px;font-weight:700;margin-bottom:6px}
.mp input:not([type=checkbox]),.mp select,.mp textarea{width:100%;min-width:0;border:1px solid #d8dad6;border-radius:5px;background:#fff;min-height:43px;padding:10px 12px;font-size:14px}
.mp textarea{min-height:130px;resize:vertical;line-height:1.5}
.mp .primary{border:0;border-radius:5px;background:var(--yellow);color:var(--ink);font-weight:700;min-height:44px;padding:12px 20px;display:flex;align-items:center;justify-content:center;gap:25px}
.mp .primary:hover{background:#e5ad03}
.mp .market-search>.primary{align-self:end}
.mp .search-note{grid-column:2 / -1;font-size:12px;color:#5e655f}
.mp .mp-section-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px}
.mp .mp-section-heading>a{font-size:13px;white-space:nowrap}

/* --- Category tiles ------------------------------------------------------ */
.mp .mp-categories{margin-top:30px}
.mp .mp-category-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
.mp .category-tile{display:block;padding:0;background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden;box-shadow:0 2px 2px #171b1905;text-align:center}
.mp .category-tile img{width:100%;height:133px;object-fit:cover}
.mp .category-tile span{display:block;padding:11px;font-size:14px;font-weight:700}
.mp .category-tile:hover{border-color:#b59832}

/* --- Featured cards ------------------------------------------------------ */
.mp .featured{margin-top:32px}
.mp .featured-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.mp .feature{position:relative;display:block;height:193px;overflow:hidden;border:0;border-radius:8px;padding:0;text-align:left;color:#fff;background:var(--ink)}
.mp .feature>img{width:100%;height:100%;object-fit:cover}
.mp .feature>img[src*='product-placeholder']{object-fit:contain;background:var(--paper)}
.mp .feature:after{content:'';position:absolute;inset:30% 0 0;background:linear-gradient(transparent,#000b)}
.mp .mp-badge{position:absolute;top:12px;left:14px;background:#fff;color:var(--ink);border-radius:4px;font-size:12px;font-weight:700;padding:3px 12px;z-index:1}
.mp .mp-badges{position:absolute;top:12px;left:14px;display:flex;gap:6px;z-index:1}
.mp .mp-badges .mp-badge{position:static}
.mp .mp-badge-demo{background:#171b19cc;color:#fff}
.mp .feature-copy{position:absolute;bottom:16px;left:17px;right:50px;z-index:1;display:grid;gap:2px}
.mp .feature-copy strong{font-size:18px}
.mp .feature-copy>span{font-size:14px}
.mp .round-arrow{position:absolute;bottom:20px;right:16px;border-radius:50%;background:#fff;color:var(--ink);width:35px;height:35px;text-align:center;line-height:35px;font-size:23px;z-index:1}

/* --- Browsing: filters and listing grid ---------------------------------- */
.mp .browsing{display:grid;grid-template-columns:245px minmax(0,1fr);gap:22px;padding-block:24px}
.mp .mp-filters{border-right:1px solid var(--line);padding-right:20px}
.mp .mp-filters h3{font-size:19px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.mp fieldset{border:0;border-bottom:1px solid var(--line);margin:20px 0 0;padding:0 0 20px;min-width:0}
.mp legend{font-size:14px;font-weight:700;margin-bottom:10px;padding:0}
.mp .check{display:flex;align-items:center;gap:9px;font-size:14px;color:#4e5550;margin:8px 0}
.mp input[type=checkbox]{width:17px;height:17px;accent-color:var(--yellow);flex-shrink:0}
.mp .clear{display:inline-block;border:0;background:transparent;text-decoration:underline;padding:16px 0}
.mp .mp-apply{margin-top:16px;width:100%}
.mp .mp-js .mp-apply,.mp.mp-js .mp-apply{display:none}
.mp .mp-filter-note{font-size:12px;color:#69706c;margin-top:8px}
.mp .results{min-width:0}
.mp .results h2{font-size:26px}
.mp .sort{display:flex;align-items:center;white-space:nowrap;border:1px solid var(--line);border-radius:5px;padding-left:8px;font-size:12px}
.mp .sort select{border:0;font-size:12px;padding-left:5px;width:auto;min-height:34px}
.mp .sort button{border:0;background:transparent;font-size:12px;padding:0 8px;text-decoration:underline}
.mp .mp-result-count{font-size:12px;color:#69706c;margin:-8px 0 12px}
.mp .mp-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.mp .product{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:8px;overflow:hidden;box-shadow:0 2px 5px #171b1906;background:#fff}
.mp .product-photo{width:100%;height:145px;object-fit:cover;background:var(--paper)}
.mp .product-photo[src*='product-placeholder']{object-fit:contain}
.mp .product-copy{display:flex;flex-direction:column;flex:1;padding:12px 15px 14px}
.mp .product h3{font-size:16px;line-height:1.3;margin-bottom:3px}
.mp .product h3 a:hover{text-decoration:underline;text-underline-offset:2px}
.mp .product-copy>p{font-size:13px;color:#666d67}
.mp .product-copy .location{display:flex;align-items:center;gap:6px;font-size:12px;margin:8px 0}
.mp .location .icon{width:14px;height:14px;flex-shrink:0}
.mp .mp-price{font-size:14px;font-weight:600;display:block;margin:auto 0 9px}
.mp .enquire{display:flex;justify-content:center;align-items:center;gap:17px;width:100%;background:#fff;border:1px solid #525953;border-radius:4px;font-size:13px;min-height:36px;padding:7px}
.mp .enquire:hover{background:var(--paper)}
.mp .mp-pagination{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin-top:20px}
.mp .mp-pagination a,.mp .mp-pagination span{min-width:34px;text-align:center;border:1px solid var(--line);border-radius:4px;padding:6px 12px}
.mp .mp-pagination [aria-current]{background:var(--yellow);border-color:var(--yellow);font-weight:700}
.mp .empty{padding:45px;border:1px dashed var(--line);text-align:center;border-radius:8px}
.mp .empty h3{margin-bottom:6px}
.mp .empty p{color:#5e655f}

/* --- How it works -------------------------------------------------------- */
.mp .how{background:var(--paper);padding:20px 0 34px}
.mp .how h2{font-size:23px;margin-bottom:22px}
.mp .steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:35px}
.mp .steps article{display:flex;gap:26px;padding-right:20px;border-right:1px solid #c8cbc5}
.mp .steps article:last-child{border:0}
.mp .steps article>span{width:52px;height:52px;border-radius:50%;background:var(--yellow);display:grid;place-items:center;font-size:23px;flex-shrink:0}
.mp .steps h3{font-size:16px;margin:2px 0 5px}
.mp .steps p{font-size:13px;color:#525953}
.mp .mp-independent{font-size:12px;color:#5e655f;margin-top:22px}

.mp :focus-visible{outline:3px solid #a67d00;outline-offset:4px}
.mp [hidden]{display:none!important}
.mp .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}

/* --- Listing detail (new, same tokens) ----------------------------------- */
.mp .mp-crumbs{font-size:13px;color:#69706c;padding-top:20px}
.mp .mp-crumbs a{text-decoration:underline;text-underline-offset:2px}
.mp .mp-detail{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:40px;padding-block:20px 40px;align-items:start}
.mp .mp-gallery-main{border-radius:9px;overflow:hidden;background:var(--paper);aspect-ratio:4/3;border:1px solid var(--line)}
.mp .mp-gallery-main img{width:100%;height:100%;object-fit:cover}
.mp .mp-gallery-main img[src*='product-placeholder']{object-fit:contain;padding:40px}
.mp .mp-gallery-thumbs{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px;list-style:none;padding:0}
.mp .mp-gallery-thumbs a{display:block;border:2px solid var(--line);border-radius:6px;overflow:hidden;background:#fff;width:86px;height:64px}
.mp .mp-gallery-thumbs a[aria-current]{border-color:var(--ink)}
.mp .mp-gallery-thumbs img{width:100%;height:100%;object-fit:cover}
.mp .mp-detail-head .mp-eyebrow{color:#736017;font-size:12px}
.mp .mp-detail-head h1{font-size:clamp(26px,2.6vw,36px);line-height:1.15;letter-spacing:-.6px;margin:8px 0 6px;color:var(--ink)}
.mp .mp-supplier-line{font-size:14px;color:#4e5550}
.mp .mp-supplier-line strong{color:var(--ink)}
.mp .mp-facts{display:grid;gap:10px;margin:18px 0;padding:16px 0;border-block:1px solid var(--line)}
.mp .mp-fact{display:flex;align-items:center;gap:10px;font-size:14px}
.mp .mp-fact .icon{width:18px;height:18px;flex-shrink:0}
.mp .mp-detail-price{font-size:24px;font-weight:800;letter-spacing:-.4px}
.mp .mp-detail-price small{display:block;font-size:12px;font-weight:400;color:#69706c;letter-spacing:0;margin-top:2px}
.mp .mp-stock{display:inline-block;font-size:12px;font-weight:700;border-radius:999px;padding:3px 10px;background:#f0f1ee;color:#5d645e}
.mp .mp-stock-in{background:#e8f5ec;color:#1f7a3d}
.mp .mp-stock-low{background:#fdf4e0;color:#8a5a00}
.mp .mp-stock-out{background:#fdeceb;color:#a32219}
.mp .mp-stock-order{background:#eaf1fb;color:#31548c}
.mp .mp-notice{background:var(--paper);border-radius:8px;padding:14px 16px;font-size:13px;line-height:1.55;color:#3d4642}
.mp .mp-description{font-size:15px;line-height:1.65;white-space:pre-line;margin-top:6px}
.mp .mp-block{margin-top:30px}
.mp .mp-block h2{font-size:21px;margin-bottom:12px}
.mp .mp-table{width:100%;border-collapse:collapse;font-size:14px}
.mp .mp-table th,.mp .mp-table td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:top}
.mp .mp-table thead th{font-size:11.5px;text-transform:uppercase;letter-spacing:.07em;color:#69706c;background:#fafaf8}
.mp .mp-table tbody th{width:38%;color:#4e5550;font-weight:600}
.mp .mp-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:8px}
.mp .mp-table-wrap .mp-table tr:last-child>*{border-bottom:0}

/* --- Enquiry form -------------------------------------------------------- */
.mp .mp-enquiry{background:#fff;border:1px solid var(--line);border-radius:9px;padding:22px;box-shadow:0 6px 24px #171b1908;scroll-margin-top:20px}
.mp .mp-enquiry h2{font-size:22px;margin-bottom:6px}
.mp .mp-enquiry>p{font-size:13px;color:#5e655f;margin-bottom:16px}
.mp .mp-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}
.mp .mp-form-grid .mp-span{grid-column:1 / -1}
.mp .mp-field label{font-size:13px;font-weight:700;margin-bottom:5px}
.mp .mp-field label small{font-weight:400;color:#69706c}
.mp .mp-field-error{color:#a32219;font-size:12.5px;font-weight:700;margin-top:4px}
.mp .has-error input,.mp .has-error select,.mp .has-error textarea{border-color:#d98a84}
.mp .mp-qty{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.mp .mp-consent{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.5;margin-top:4px}
.mp .mp-consent input{margin-top:2px}
.mp .mp-enquiry .primary{width:100%;margin-top:16px}
.mp .mp-form-error{background:#fdeceb;color:#a32219;border-radius:6px;padding:10px 12px;font-size:13px;font-weight:700;margin-bottom:14px}

/* --- Homepage marketplace band ------------------------------------------- */
.mp.mp-home{background:var(--ink);color:#fff;padding:34px 0 38px;margin-top:10px}
.mp.mp-home .mp-home-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap;margin-bottom:22px}
.mp.mp-home h2{font-size:29px;margin:8px 0 6px}
.mp.mp-home .mp-home-text{color:#c6cac7;max-width:640px}
.mp.mp-home .primary{gap:12px}

/* --- Preview banner (supplier / admin preview only) ---------------------- */
.mp .mp-preview-banner{background:var(--yellow);color:var(--ink);font-weight:700;font-size:13px;padding:10px 0;text-align:center}

@media(min-width:1600px){.mp .mp-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px){
  .mp .mp-hero-copy>p:last-child{font-size:18px}
  .mp .market-search{gap:10px 16px}
  .mp .primary{gap:12px;padding-inline:15px;font-size:13px}
  .mp .browsing{grid-template-columns:205px minmax(0,1fr)}
  .mp .results h2{font-size:23px}
  .mp .product-copy{padding:11px}
  .mp .feature-copy strong{font-size:16px}
  .mp .mp-detail{gap:26px}
}
@media(max-width:850px){
  .mp .mp-hero{height:330px}
  .mp .hero-photo{left:38%;opacity:.4}
  .mp .mp-hero:after{display:none}
  .mp .mp-hero-copy{padding-top:36px}
  .mp .mp-hero h1{font-size:38px;max-width:620px}
  .mp .mp-hero-copy>p:last-child{max-width:540px}
  .mp .market-search{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:-40px}
  .mp .search-note{grid-column:1/-1}
  .mp .mp-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .mp .featured-grid{gap:12px}
  .mp .feature{height:185px}
  .mp .feature-copy>span{display:none}
  .mp .browsing{grid-template-columns:170px minmax(0,1fr)}
  .mp .mp-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mp .results>.mp-section-heading{align-items:flex-start;flex-direction:column;gap:10px}
  .mp .steps{gap:16px}
  .mp .steps article{gap:10px;padding-right:10px}
  .mp .steps article>span{width:38px;height:38px}
  .mp .mp-detail{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:600px){
  .mp .mp-hero{height:345px}
  .mp .hero-photo{left:0;clip-path:none;opacity:.2}
  .mp .mp-hero h1{font-size:34px;letter-spacing:-.8px}
  .mp .mp-hero-copy>p:last-child{font-size:17px}
  .mp .mp-eyebrow{font-size:12px}
  .mp .market-search{grid-template-columns:minmax(0,1fr);padding:20px;margin-top:-42px}
  .mp input:not([type=checkbox]),.mp select,.mp textarea{font-size:16px}
  .mp .search-note{font-size:11px}
  .mp .mp-section-heading h2{font-size:23px}
  .mp .mp-section-heading>a{font-size:11px;white-space:normal;text-align:right}
  .mp .mp-category-grid{gap:10px}
  .mp .category-tile img{height:90px}
  .mp .category-tile span{font-size:12px;padding:10px 4px}
  .mp .featured-grid{grid-template-columns:minmax(0,1fr)}
  .mp .feature{height:170px}
  .mp .feature-copy>span{display:block}
  .mp .browsing{display:block}
  .mp .mp-filters{border:1px solid var(--line);border-radius:9px;padding:16px;margin-bottom:24px}
  .mp .mp-filter-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 15px}
  .mp .mp-filter-form>.clear,.mp .mp-filter-form>.mp-apply,.mp .mp-filter-form>.mp-filter-note{grid-column:1/-1}
  .mp .mp-product-grid{grid-template-columns:minmax(0,1fr)}
  .mp .product-photo{height:220px}
  .mp .product-copy{padding:16px}
  .mp .product h3{font-size:19px}
  .mp .product-copy>p,.mp .mp-price{font-size:15px}
  .mp .enquire{min-height:44px;font-size:14px}
  .mp .steps{grid-template-columns:minmax(0,1fr);gap:22px}
  .mp .steps article{border:0;gap:18px}
  .mp .clear{min-height:44px}
  .mp .results>.mp-section-heading{flex-direction:row;flex-wrap:wrap}
  .mp .sort select{font-size:16px}
  .mp .mp-form-grid{grid-template-columns:minmax(0,1fr)}
  .mp .mp-enquiry{padding:18px}
  .mp.mp-home h2{font-size:24px}
}
@media(prefers-reduced-motion:reduce){.mp *{scroll-behavior:auto!important}}

/* The sort control's own button (no-script only) sits inside the pill. */
.mp .sort .mp-apply{margin:0;width:auto;border:0;background:transparent;font-size:12px;padding:0 8px;text-decoration:underline}
/* The consent sentence is a statement to read, not a field label. */
.mp .mp-field .mp-consent{font-weight:400;margin-bottom:0}

/* Development demo data (tools/seed-suppliers.php --marketplace) is labelled,
   as concept images are in the shop, while show_demo_badges is on. */
.mp .product{position:relative}
.mp .mp-demo{position:absolute;top:10px;left:10px;z-index:1;background:#171b19cc;color:#fff;font-size:11px;font-weight:700;letter-spacing:.02em;border-radius:4px;padding:3px 8px}
.mp .mp-demo-note{display:inline-block;margin-top:8px;font-size:12px;font-weight:700;color:#7a5700;background:#fdf3d3;border-radius:4px;padding:3px 8px}
/* Phone touch targets (demo review issue 12). */
@media(max-width:800px){.mp select,.mp button,.mp .pagination a{min-height:44px}.mp .mp-cat-head a,.mp .section-link{display:inline-flex;align-items:center;min-height:44px}}
@media(max-width:800px){.mp .mp-section-heading a{display:inline-flex;align-items:center;min-height:44px}}

/* --- Buying (demo review issues 1 to 4, Oct 2026) ------------------------- */
.mp .mp-card-badges,.mp .mp-buy-badges{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
.mp .mp-card-badges .mp-badge,.mp .mp-buy-badges .mp-badge{position:static}
.mp .mp-badge{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:999px;font-size:11.5px;font-weight:700;letter-spacing:.01em;background:#f1f0ea;color:#3d453f}
.mp .mp-badge-condition{background:#fff1cf;color:#6b4e00}
.mp .mp-badge-collect{background:#e4f5e8;color:#1f6b35}
.mp .mp-badge-delivery{background:#eef1f0;color:#4a524d}
.mp .mp-badge-qty{background:#eaf2f7;color:#215b7a}
.mp .mp-price small{font-size:11px;font-weight:600;color:#69706c}
.mp .mp-buy{margin-top:18px;padding:20px 22px 22px;border:1px solid #e3e5e0;border-radius:14px;background:#fff;box-shadow:0 10px 30px rgba(23,27,25,.07)}
.mp .mp-buy h2{margin:0 0 10px;font-size:19px}
.mp .mp-buy .option-group{margin:14px 0}
.mp .mp-buy .option-legend{display:block;font-size:13px;font-weight:700;margin-bottom:8px}
.mp .mp-buy .option-select{display:block;width:100%;min-height:48px;padding:10px 44px 10px 14px;border:1px solid #dcdfd8;border-radius:11px;background:#fff;font:inherit;font-size:16px;font-weight:600;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23171b19' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:18px 18px}
.mp .mp-buy .pd-qty-input input{width:100%;min-height:48px;padding:10px 14px;border:1px solid #dcdfd8;border-radius:11px;font:inherit;font-size:16px;font-weight:600}
.mp .mp-buy .calc-panel{margin:14px 0;padding:14px 16px;border-radius:10px;background:#f7f6f2}
.mp .mp-buy .calc-row{display:flex;justify-content:space-between;gap:12px;margin:0 0 6px;font-size:14px}
.mp .mp-buy .calc-total{display:flex;justify-content:space-between;align-items:baseline;margin:8px 0 0;font-size:15px}
.mp .mp-buy .purchase-actions{display:flex;gap:10px;flex-wrap:wrap}
.mp .mp-buy .purchase-actions .button{flex:1 1 180px;min-height:48px}
.mp .mp-buy .button-primary{background:var(--yellow);color:#171b19;border:0;border-radius:9px;font-weight:800}
.mp .mp-buy .button-outline{background:#fff;color:#171b19;border:1px solid #cfd3cc;border-radius:9px;font-weight:700}
.mp .mp-buy-note{margin:12px 0 0;font-size:12.5px;color:#69706c;line-height:1.5}
.mp .mp-buy-unavailable{margin:0;padding:12px 14px;border-radius:9px;background:#fff1cf;color:#6b4e00;font-weight:600}
.mp .mp-price-range{display:flex;align-items:center;gap:8px}
.mp .mp-price-range input{min-width:0;flex:1}
.mp .mp-filter-long{max-height:220px;overflow:auto;padding-right:4px}
.mp .mp-jbm{padding-top:8px}
.mp .mp-jbm-text{margin:4px 0 0;color:#4a524d;font-size:14px}
.mp .mp-jbm-grid{margin-top:14px}
@media(max-width:800px){.mp .mp-buy{padding:16px}.mp .mp-buy .purchase-actions .button{flex-basis:100%}}
