/*
 * Club UI pages
 *
 * The pages themselves, one section each, on top of club.css (components) and
 * club-skin.css (the frame every page shares). Where a page has its own template in
 * delta_child, its markup is built from .club-* components and this file only lays them
 * out. Where delta's template is kept, its markup is restyled here.
 *
 * Breakpoints follow delta's: 767px for phones, 1080px for tablets; the sign-in layout
 * folds at 900px, where the photo panel stops fitting beside the form.
 */


/* SIGN IN, PASSWORD RECOVERY AND RESET */

body.club-auth-page { margin: 0; background: var(--club-surface); }
.club-auth { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }

/* Dark half: logo at the top, the pitch, then the photo rising from the bottom */
.club-auth__aside { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 44px 56px 36px; overflow: hidden; background: var(--club-dark); color: #fff; }
.club-auth__photo { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: 62%; background-position: 70% 75%; background-size: cover; background-repeat: no-repeat; }
.club-auth__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--club-dark) 0%, rgba(18, 20, 23, .6) 30%, rgba(18, 20, 23, .15) 70%, rgba(18, 20, 23, .5) 100%), linear-gradient(90deg, rgba(18, 20, 23, .8) 0%, rgba(18, 20, 23, .35) 45%, transparent 75%); }
.club-auth__aside::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(120% 70% at 0% 0%, color-mix(in srgb, var(--club-brand) 22%, transparent) 0%, transparent 60%); }

/* The logo file is dark on white; inverted and screened it turns light on the dark panel */
.club-auth__logo { align-self: flex-start; display: inline-flex; }
.club-auth__logo img { display: block; height: 46px; width: auto; filter: invert(1) grayscale(1) brightness(1.15); mix-blend-mode: screen; }

.club-auth__pitch { max-width: 520px; }
.club-auth__pitch .club-eyebrow { color: var(--club-brand-on-dark); }
.club-auth__pitch .club-display { margin-top: 16px; color: #fff; font-size: clamp(32px, 3.3vw, 46px); max-width: 15ch; }
.club-auth__pitch .club-lead { margin-top: 16px; color: rgba(255, 255, 255, .74); max-width: 44ch; }
.club-auth__facts { display: grid; gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; }
.club-auth__facts li { display: flex; align-items: center; gap: 14px; color: rgba(255, 255, 255, .88); font: 400 var(--club-fs-base)/1.45 var(--club-font-body); }
.club-auth__facts svg { flex: 0 0 auto; box-sizing: content-box; width: 18px; height: 18px; padding: 7px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--club-brand-on-dark); }
.club-auth__aside-foot { margin: 0; color: rgba(255, 255, 255, .5); font: 400 var(--club-fs-xs)/1.4 var(--club-font-body); }

/* Form half */
.club-auth__main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 32px; }
.club-auth__box { width: 100%; max-width: 400px; }
.club-auth__box .club-h2 { font-size: 30px; }
.club-auth__sub { margin: 10px 0 0; font: 400 15px/1.6 var(--club-font-body); color: var(--club-text-muted); }
.club-auth__back { display: flex; width: fit-content; align-items: center; gap: 6px; margin: 0 0 32px; color: var(--club-text-muted); font: 500 var(--club-fs-sm)/1 var(--club-font-body); text-decoration: none; transition: color var(--club-dur-2); }
.club-auth__back:hover { color: var(--club-text); text-decoration: none; }
.club-auth__back svg { transition: transform var(--club-dur-2) var(--club-ease); }
.club-auth__back:hover svg { transform: translateX(-3px); }
.club-auth__badge { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin: 0 0 20px; border-radius: 16px; background: var(--club-brand-soft); color: var(--club-brand-text); box-shadow: inset 0 0 0 1px var(--club-brand-tint); }

.club-auth__flash { margin-top: 22px; }
.club-auth__flash:not(:has(*)) { display: none; }
body .club-auth__flash .flashmessage { margin: 0; box-shadow: none; }

.club-auth__social { display: grid; gap: 10px; margin-top: 26px; }
.club-auth__social .fab { font-size: 18px; }

.club-auth__form { display: grid; gap: 18px; margin-top: 28px; }
.club-auth__labelrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.club-auth__form .club-check { margin-top: -2px; }
.club-auth__form .user-reg-hook:not(:has(*)) { display: none; }
.club-auth__form button[type="submit"] { margin-top: 6px; }

.club-auth__alt { margin: 30px 0 0; padding-top: 22px; border-top: 1px solid var(--club-line); text-align: center; font: 400 var(--club-fs-base)/1.5 var(--club-font-body); color: var(--club-text-muted); }
.club-auth__alt .club-link { margin-left: 4px; font-weight: 500; }

@media (max-width: 900px) {
  .club-auth { grid-template-columns: 1fr; min-height: 0; }
  .club-auth__aside { gap: 22px; padding: 22px 20px 26px; }
  .club-auth__photo { height: 100%; }
  .club-auth__photo::after { background: linear-gradient(180deg, rgba(18, 20, 23, .9) 0%, rgba(18, 20, 23, .78) 60%, rgba(18, 20, 23, .62) 100%); }
  .club-auth__logo img { height: 34px; }
  .club-auth__pitch .club-display { margin-top: 10px; font-size: 24px; max-width: 20ch; }
  .club-auth__pitch .club-lead, .club-auth__facts, .club-auth__aside-foot { display: none; }
  .club-auth__main { justify-content: flex-start; padding: 30px 20px 40px; }
  .club-auth__box .club-h2 { font-size: 26px; }
  .club-auth__back { margin-bottom: 24px; }
}

@media screen and (max-width: 767px) {
  body.club-auth-page { padding-bottom: 0 !important; }
}


/* HOME */

body#body-home { background: var(--club-bg); }

/* Hero. Unlike .club-hero in club.css it neither clips nor isolates: the pickers of
   the search bar open below its edge, and delta's category window, a fixed element
   inside it, has to cover the whole page. */
.club-home-hero { position: relative; background: var(--club-dark); color: #fff; }
.club-home-hero__bg { position: absolute; inset: 0; overflow: hidden; background-position: right center; background-size: cover; background-repeat: no-repeat; }
.club-home-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(12, 13, 16, .96) 0%, rgba(12, 13, 16, .84) 42%, rgba(12, 13, 16, .3) 100%), radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--club-brand) 24%, transparent) 0%, transparent 55%); }
.club-home-hero__in { position: relative; z-index: 2; width: var(--site-width, 92%); max-width: var(--site-max, 1300px); margin: 0 auto; padding: 56px 0 40px; }
.club-home-hero .club-eyebrow { color: var(--club-brand-on-dark); }
.club-home-hero .club-display { margin-top: 14px; color: #fff; max-width: 17ch; }
.club-home-hero .club-lead { margin-top: 14px; color: rgba(255, 255, 255, .74); max-width: 56ch; }
.club-home-hero #home-search { margin-top: 30px; max-width: 1060px; }
.club-home-hero .club-hero__facts { margin-top: 22px; }

.club-home { display: block; width: var(--site-width, 92%); max-width: var(--site-max, 1300px); margin: 0 auto; padding: 8px 0 0; }
.club-home__block { margin-top: 44px; }
.club-home__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.club-home__head .club-h3 { margin-top: 6px; }
.club-home .club-cats { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.club-home .club-cat img { width: 48px; height: 48px; }
.club-home .club-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.club-home .club-empty { padding: 56px 24px; }


/* SEARCH BAR
   Delta's own form (inc.search.php: #home-search) laid out as the design system's
   search bar: three labelled cells and the button, on one white panel. Its pickers
   (suggestions, category window, location panel) are delta's and keep their script;
   only their look changes. Selectors go through #home-form to outweigh delta's
   phone rules, which are written against the column classes. */

body #home-search { float: none; width: auto; margin: 0; padding: 0; background: none; text-align: left; z-index: 20; }
body #home-search .inside { float: none; width: auto; max-width: none; margin: 0; padding: 0; }
body #home-search .inside > .box { float: none; display: block; width: auto; margin: 0; padding: 8px; background: var(--club-surface); border: 1px solid var(--club-line); border-radius: var(--club-r-lg); box-shadow: var(--club-shadow-2); }
body #home-search #home-form { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1.1fr) auto; align-items: stretch; margin: 0; }
body #home-search #home-form .col { float: none; position: relative; width: auto; min-width: 0; margin: 0; padding: 9px 16px 7px; border-right: 1px solid var(--club-line); text-align: left; }
body #home-search #home-form .col.c3 { border-right: 0; }
body #home-search #home-form .col.c4 { display: flex; align-items: stretch; padding: 0 0 0 8px; border-right: 0; }
body #home-search #home-form .col.col > strong { float: none; display: block; width: auto; margin: 2px 0 5px 30px; font: 600 11px/1 var(--club-font-body); letter-spacing: .08em; text-transform: uppercase; text-align: left; color: var(--club-text-muted); transition: color var(--club-dur-2); }
body #home-search #home-form .col.col:focus-within > strong { color: var(--club-brand-text); }
body #home-search #home-form .query-picker, body #home-search #home-form .cat-picker, body #home-search #home-form .loc-picker { float: none; position: relative; width: auto; margin: 0; }
body #home-search #home-form input.pattern, body #home-search #home-form input.term2 { float: none; width: 100%; height: 28px; margin: 0; padding: 0 24px 0 30px; border: 0; border-radius: 0; background: transparent; box-shadow: none; font: 500 var(--club-fs-base)/28px var(--club-font-body); color: var(--club-text); white-space: nowrap; text-overflow: ellipsis; cursor: text; }
body #home-search #home-form input.term2 { cursor: pointer; }
body #home-search #home-form input::placeholder { color: var(--club-text-subtle); opacity: 1; }
body #home-search #home-form svg.svg-left { position: absolute; left: 0; top: 5px; z-index: 5; color: var(--club-text-subtle); pointer-events: none; }
body #home-search #home-form svg.svg-right { position: absolute; right: 0; top: 7px; z-index: 5; color: var(--club-text-subtle); pointer-events: none; transition: transform var(--club-dur-2); }
body #home-search #home-form input.open ~ svg.svg-right { transform: rotate(180deg); }
body #home-search #home-form .loader { top: 5px; right: 0; }
body #home-search #home-form .col.c4 .club-btn { height: auto; min-height: 58px; padding: 0 28px; }

/* Drop-down panels: below the panel, as wide as their cell */
body #home-search .query-picker .shower-wrap, body #home-search #location-picker .shower-wrap { top: calc(100% + 16px); left: -16px; width: calc(100% + 32px); z-index: 99; }
body #home-search #location-picker .shower-wrap { width: max(calc(100% + 32px), 460px); }
body #home-search .query-picker .shower, body #home-search #location-picker .shower { float: none; border: 1px solid var(--club-line); border-radius: var(--club-r-md); background: var(--club-surface); box-shadow: var(--club-shadow-3); }
body #home-search .query-picker .shower { max-height: 420px; }
body #home-search .query-picker .shower { overflow-y: auto !important; padding: 6px; }
body #home-search .query-picker .shower .option { float: none; display: block; padding: 10px 12px; border: 0; border-radius: var(--club-r-sm); color: var(--club-text); font: 400 var(--club-fs-base)/1.35 var(--club-font-body); }
body #home-search .query-picker .shower .option:hover { background: var(--club-surface-3); }
/* The location panel grows with its two lists; the lists scroll inside (from the admin Custom CSS) */
body #home-search #location-picker .shower { max-height: none; overflow: visible; padding: 10px; }
body #home-search .loc-picker .shower .loc-tab.region-tab, body #home-search .loc-picker .shower .loc-tab.city-tab { overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; }
body #home-search .loc-picker .region-tab, body #home-search .loc-picker .city-tab { height: 300px; margin: 0; border: 1px solid var(--club-line); border-radius: var(--club-r-sm); }
body #home-search .loc-picker .region-tab { width: calc(50% - 5px); margin-right: 10px; }
body #home-search .loc-picker .city-tab { width: calc(50% - 5px); }
body #home-search .loc-picker .region-tab .filter, body #home-search .loc-picker .city-tab .filter { padding: 8px; }
body #home-search .loc-picker .region-tab .filter input[type="text"], body #home-search .loc-picker .city-tab .filter input[type="text"] { height: 34px; padding: 0 10px; border: 1px solid var(--club-line); border-radius: var(--club-r-xs); background: var(--club-surface-2); font: 400 var(--club-fs-sm)/1 var(--club-font-body); }
body #home-search .loc-picker .region-tab .elem, body #home-search .loc-picker .city-tab .elem { padding: 9px 12px; border-bottom: 1px solid var(--club-line); color: var(--club-text); font: 400 var(--club-fs-sm)/1.3 var(--club-font-body); }
body #home-search .loc-picker .region-tab .elem:hover, body #home-search .loc-picker .city-tab .elem:hover { background: var(--club-surface-3); }
body #home-search .loc-picker .region-tab .elem.active i, body #home-search .loc-picker .city-tab .elem.active i { color: var(--club-brand); }
body #home-search .loc-picker .region-tab:empty:after, body #home-search .loc-picker .city-tab:empty:after { padding: 12px; color: var(--club-text-subtle); font: 400 var(--club-fs-sm)/1.45 var(--club-font-body); }
body #home-search .loc-picker .button-wrap { float: none; clear: both; padding: 10px 0 0; }
body #home-search .loc-picker .button-wrap .loc-confirm { float: none; display: flex; align-items: center; justify-content: center; width: 100%; height: 42px; margin: 0; border-radius: var(--club-r-sm); font: 600 var(--club-fs-base)/1 var(--club-font-body); }

/* Category window (delta's .xmodal.category) */
body div.xmodal.category { width: 860px; height: 540px; border-radius: var(--club-r-xl); box-shadow: 0 30px 70px -20px rgba(10, 12, 15, .45); }
body div.xmodal .xclose { display: inline-flex; align-items: center; justify-content: center; border-radius: var(--club-r-sm); }
body div.xmodal .xclose:hover { background: var(--club-surface-3); }
body #cat-box .side { background: var(--club-surface-2); border-right: 1px solid var(--club-line); }
body #cat-box .side a.cat1 { padding: 11px 16px; border-radius: var(--club-r-sm); }
body #cat-box .side a.cat1 h3 { color: var(--club-text-muted); font: 500 var(--club-fs-sm)/1.2 var(--club-font-body); }
body #cat-box .side a.cat1:not(.active):hover h3 { color: var(--club-text); }
body #cat-box .side a.cat1:not(.active):hover { background: var(--club-surface-3); }
body #cat-box .side a.cat1 span { border-radius: var(--club-r-sm); background: var(--club-ink) !important; }
body #cat-box .side a.allcat { display: flex; align-items: center; justify-content: center; height: 40px; padding: 0; border: 1px solid var(--club-line-strong); border-radius: var(--club-r-sm); color: var(--club-text); font: 500 var(--club-fs-sm)/1 var(--club-font-body); }
body #cat-box .side a.allcat:hover { border-color: var(--club-text-muted); }
body #cat-box .box { padding: 24px 28px; }
body #cat-box a.cat1 > div { display: flex; align-items: center; justify-content: center; background: var(--club-surface-3); }
body #cat-box .box a.cat1 h3 { color: var(--club-text); font: 600 var(--club-fs-md)/20px var(--club-font-body); }
body #cat-box .sub-box .link a { color: var(--club-text-muted); font: 400 var(--club-fs-sm)/1.3 var(--club-font-body); }
body #cat-box .sub-box .link a:hover { color: var(--club-brand-text); text-decoration: none; }


/* HOME AND SEARCH BAR: TABLET AND PHONE */

@media screen and (max-width: 1080px) {
  .club-home .club-cats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  body #home-search #home-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  body #home-search #home-form .col.c1 { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--club-line); }
  body #home-search #home-form .col.c4 { grid-column: 1 / -1; padding: 8px 0 0; }
  body #home-search #home-form .col.c4 .club-btn { width: 100%; min-height: 50px; }
}

@media screen and (max-width: 767px) {
  .club-home-hero__in { padding: 26px 0 26px; }
  .club-home-hero .club-display { margin-top: 10px; font-size: 28px; max-width: 18ch; }
  .club-home-hero .club-lead { font-size: var(--club-fs-base); }
  .club-home-hero #home-search { margin-top: 20px; }
  .club-home-hero .club-hero__facts { display: none; }
  .club-home__block { margin-top: 32px; }
  .club-home .club-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .club-home .club-cat { padding: 14px 6px 12px; }
  .club-home .club-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .club-home .club-listing__body { padding: 12px 12px 10px; }
  .club-home .club-listing__foot { padding: 10px 12px; }
  .club-home .club-listing__seller b { font-size: var(--club-fs-xs); }
  .club-home .club-rating { display: none; }

  body #home-search #home-form { grid-template-columns: 1fr; }
  body #home-search #home-form .col, body #home-search #home-form .col.c3 { padding: 10px 12px 8px; border-right: 0; border-bottom: 1px solid var(--club-line); }
  body #home-search #home-form .col.c3 { border-bottom: 0; }
  body #home-search #home-form .col.c4 { padding: 6px 0 0; }
  body #home-search #home-form .col.c4 .club-btn { min-height: 48px; }
}


/* CUSTOM SELECTS
   Delta's div-based dropdowns (.simple-select: condition, period, price currency...)
   look like the design system's select. The doubled class outweighs delta's rules
   written against their containers. */

body .simple-select.simple-select .text { position: relative; display: flex; align-items: center; height: 42px; padding: 0 36px 0 12px; border: 1px solid var(--club-line-strong); border-radius: var(--club-r-sm); background: var(--club-surface); box-shadow: none; color: var(--club-text); font: 400 var(--club-fs-base)/1.2 var(--club-font-body); transition: border-color var(--club-dur-2), box-shadow var(--club-dur-2); }
body .simple-select.simple-select .text > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
body .simple-select.simple-select .text i:not(.help) { position: absolute; top: 50%; right: 12px; float: none; margin-top: -7px; color: var(--club-text-subtle); font-size: 14px; line-height: 14px; }
body .simple-select.simple-select:hover .text { border-color: color-mix(in srgb, var(--club-line-strong) 55%, var(--club-text-muted)); }
body .simple-select.simple-select.opened .text { border-color: var(--club-brand); box-shadow: 0 0 0 4px var(--club-brand-tint); }
body .simple-select.simple-select .list { top: calc(100% + 6px); left: 0; width: 100%; padding: 6px; border: 1px solid var(--club-line); border-radius: var(--club-r-md); background: var(--club-surface); box-shadow: var(--club-shadow-3); }
body .simple-select.simple-select .option { float: none; padding: 9px 10px; border-radius: var(--club-r-xs); color: var(--club-text); font: 400 var(--club-fs-sm)/1.3 var(--club-font-body); }
body .simple-select.simple-select .option:not(.info):not(.nonclickable):hover { background: var(--club-surface-3); color: var(--club-text); }
body .simple-select.simple-select:not(.simple-cat) .option.selected { background: var(--club-brand-soft); color: var(--club-text); font-weight: 600; }


/* SEARCH RESULTS
   search.php: the search bar on top, then the filters (#filter) beside the results
   (#main). Delta's AJAX search swaps the inside of #main and keeps #filter, and two
   patches in footer.php look for "#filter .sbox.cat" and ".search-side-form", so the
   ids and classes stay as delta has them. */

body#body-search #home-search { width: var(--site-width, 92%); max-width: var(--site-max, 1300px); margin: 6px auto 0; padding: 0; background: none; }
body#body-search #home-search .inside > .box { box-shadow: var(--club-shadow-1); }

body#body-search .content .inside.search { float: none; display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 24px; }
body#body-search .search #filter { float: none; width: auto; margin: 0; }
body#body-search .search #main { float: none; width: auto; min-width: 0; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }

/* Filters column */
body #filter .sbox, body #filter .search-wrap, body #filter #search-pub.pos-side { float: none; display: block; width: auto; margin: 0 0 16px; padding: 18px; background: var(--club-surface); border: 1px solid var(--club-line); border-radius: var(--club-r-lg); box-shadow: var(--club-shadow-1); }
body #filter .wrap, body #filter .sbox .wrap { float: none; width: auto; margin: 0; }
body #filter .sbox h3 { float: none; width: auto; margin: 0 0 12px; font: 600 11px/1 var(--club-font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--club-text-muted); }

body #filter .sbox.cat .inside { display: grid; gap: 2px; width: auto; max-width: none; margin: 0; padding: 0; }
body #filter .sbox.cat a { float: none; clear: none; display: flex; align-items: center; gap: 10px; margin: 0; padding: 7px 8px; border-radius: var(--club-r-sm); color: var(--club-text); font: 400 var(--club-fs-sm)/1.3 var(--club-font-body); text-decoration: none; transition: background var(--club-dur-1); }
body #filter .sbox.cat a:hover, body #filter .sbox.cat a:hover span { background-color: var(--club-surface-3); text-decoration: none; }
body #filter .sbox.cat a:hover span { background: none; }
body #filter .sbox.cat a .icon { float: none; display: flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; height: 28px; margin: 0; padding: 0; border-radius: 50%; background: var(--club-surface-3); }
body #filter .sbox.cat a .icon img { width: auto; height: 18px; }
body #filter .sbox.cat a span.name { float: none; flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
body #filter .sbox.cat a em { float: none; flex: 0 0 auto; margin: 0 0 0 auto; color: var(--club-text-subtle); font: 500 var(--club-fs-xs)/1 var(--club-font-body); font-style: normal; font-variant-numeric: tabular-nums; }
body #filter .sbox.cat a.parent { width: auto; margin: 0 0 6px; padding: 9px 8px; background: var(--club-brand-soft); color: var(--club-text); font-weight: 600; font-size: var(--club-fs-base); }
body #filter .sbox.cat a.parent .icon { background: var(--club-surface); }
body #filter .sbox.cat a.parent em { display: inline; }
body #filter .sbox.cat .notroot a.child { padding-left: 46px; font-size: var(--club-fs-sm); }
body #filter .sbox.cat .notroot a.child.active { background: var(--club-ink); color: #fff; font-weight: 500; }
body #filter .sbox.cat .notroot a.child.active em { color: rgba(255, 255, 255, .7); }
body #filter .sbox.cat a.gotop { display: inline-flex; margin: 10px 0 0; padding: 6px 8px; color: var(--club-text-muted); font-weight: 500; }
body #filter .sbox.cat a.gotop i { float: none; margin: 0; }
body #filter .sbox.words .wrap { display: flex; flex-wrap: wrap; gap: 6px; }
body #filter .sbox.words a { float: none; margin: 0; padding: 6px 10px; border-radius: var(--club-r-pill); background: var(--club-surface-3); color: var(--club-text); font: 500 var(--club-fs-xs)/1 var(--club-font-body); }

body #filter .wrap .box { float: none; clear: none; width: auto; margin: 0 0 16px; }
body #filter .wrap .box h2 { float: none; width: auto; margin: 0 0 6px; font: 500 var(--club-fs-sm)/1.3 var(--club-font-body); color: var(--club-text); }
body #filter .wrap .box .row { float: none; clear: none; width: auto; }
body #filter .row.price { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body #filter .row.price .input-box { position: relative; float: none; width: auto; margin: 0; }
body #filter .row.price .input-box input { float: none; width: 100%; height: 42px; padding: 0 28px 0 12px; border: 1px solid var(--club-line-strong); border-radius: var(--club-r-sm); background: var(--club-surface); color: var(--club-text); font: 400 var(--club-fs-base)/1 var(--club-font-body); appearance: textfield; }
body #filter .row.price .input-box input::-webkit-inner-spin-button, body #filter .row.price .input-box input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
body #filter .row.price .input-box input:focus { outline: none; border-color: var(--club-brand); box-shadow: 0 0 0 4px var(--club-brand-tint); }
body #filter .row.price .input-box span { position: absolute; top: 50%; right: 10px; min-width: 0; padding: 0; transform: translateY(-50%); color: var(--club-text-subtle); font: 500 var(--club-fs-sm)/1 var(--club-font-body); }
body #filter .club-btn { display: flex; width: 100%; height: 44px; margin: 4px 0 0; padding: 0 20px; font-size: var(--club-fs-base); }
/* Delta marks the button while its AJAX search runs */
body #filter .club-btn.btn-loading { position: relative; color: transparent; pointer-events: none; }
body #filter .club-btn.btn-loading::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; border-right-color: transparent; animation: club-spin .7s linear infinite; }

/* Results column: title, chips of active filters, sort and view */
body#body-search #main .relative2 { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 16px; margin: 0 0 18px; }
body#body-search #main .titles-top { grid-column: 1; grid-row: 1; float: none; width: auto; margin: 0; padding: 0; }
body#body-search #main .titles-top .club-eyebrow { float: none; margin: 0; color: var(--club-brand-text); font-size: var(--club-fs-xs); line-height: 1; }
body#body-search #main .titles-top .club-h2 { float: none; width: auto; margin: 8px 0 0; font: var(--club-display-weight) var(--club-fs-2xl)/1.2 var(--club-font-display); letter-spacing: -.01em; color: var(--club-text); }
body#body-search #main .club-search-count { margin: 6px 0 0; color: var(--club-text-muted); font: 400 var(--club-fs-base)/1.4 var(--club-font-body); }

body#body-search .filter-remove { grid-column: 1 / -1; grid-row: 2; float: none; display: flex; flex-wrap: wrap; gap: 8px; width: auto; margin: 14px 0 0; }
body#body-search .filter-remove a { position: relative; float: none; display: inline-flex; align-items: center; gap: 8px; height: 32px; margin: 0; padding: 0 12px; border-radius: var(--club-r-pill); background: var(--club-ink); color: #fff; font: 500 var(--club-fs-xs)/1 var(--club-font-body); text-decoration: none; }
body#body-search .filter-remove a:hover { background: #000; color: #fff; text-decoration: none; }
body#body-search .filter-remove a:after { position: static; width: auto; height: auto; border: 0; content: "\00d7"; font: 400 16px/1 var(--club-font-body); opacity: .7; text-indent: 0; }
body#body-search .filter-remove a.remove-all-filters { background: none; color: var(--club-text-muted); text-decoration: underline; text-underline-offset: 3px; }
body#body-search .filter-remove a.remove-all-filters:after { content: none; }

body#body-search #search-sort { grid-column: 2; grid-row: 1; float: none; display: flex; align-items: center; justify-content: flex-end; gap: 10px; width: auto; margin: 0; padding: 0; border: 0; background: none; }
body#body-search #search-sort .user-type { display: none; }
body#body-search #search-sort .list-grid { order: 1; float: none; display: inline-flex; gap: 2px; margin: 0; padding: 3px; border: 1px solid var(--club-line); border-radius: var(--club-r-md); background: var(--club-surface); }
body#body-search #search-sort .list-grid a { float: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 34px; margin: 0; padding: 0; border-radius: var(--club-r-sm); background: none; color: var(--club-text-subtle); transition: background var(--club-dur-2), color var(--club-dur-2); }
body#body-search #search-sort .list-grid a:hover { color: var(--club-text); }
body#body-search #search-sort .list-grid a.active { background: var(--club-ink); color: #fff; }
body#body-search .sort-it { order: 2; position: relative; float: none; margin: 0; }
body#body-search .sort-it .sort-title .title-keep { display: inline-flex; align-items: center; gap: 8px; float: none; width: auto; height: 42px; margin: 0; padding: 0 14px; border: 1px solid var(--club-line-strong); border-radius: var(--club-r-md); background: var(--club-surface); color: var(--club-text); font: 500 var(--club-fs-sm)/1 var(--club-font-body); }
body#body-search .sort-it .sort-title .title-keep::before { content: ""; width: 16px; height: 16px; background: currentColor; opacity: .55; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v16M3.5 16.5 7 20l3.5-3.5M17 20V4M13.5 7.5 17 4l3.5 3.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v16M3.5 16.5 7 20l3.5-3.5M17 20V4M13.5 7.5 17 4l3.5 3.5'/%3E%3C/svg%3E") center / contain no-repeat; }
body#body-search .sort-it .sort-title .title-keep:after { content: ""; float: none; width: 6px; height: 6px; margin: -3px 0 0 2px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); opacity: .6; }
body#body-search .sort-it .sort-title .title-keep > span { font-size: var(--club-fs-sm); letter-spacing: 0; }
body#body-search .sort-it #sort-wrap { top: 100%; right: 0; width: 210px; padding-top: 6px; }
body#body-search .sort-it .sort-content { float: none; padding: 6px; border: 1px solid var(--club-line); border-radius: var(--club-r-md); background: var(--club-surface); box-shadow: var(--club-shadow-3); }
body#body-search .sort-it .sort-content:before { display: none; }
body#body-search .sort-it .sort-content a { float: none; display: block; padding: 9px 10px; border-radius: var(--club-r-xs); color: var(--club-text); font: 400 var(--club-fs-sm)/1.3 var(--club-font-body); }
body#body-search .sort-it .sort-content a:hover { background: var(--club-surface-3); }
body#body-search .sort-it .sort-content a span { float: none; }
body#body-search .sort-it .sort-content a.current { background: var(--club-brand-soft); font-weight: 600; }

/* The listings: club cards in a grid, or as rows in list view */
body#body-search #search-items, body#body-search #search-items .search-items-wrap, body#body-search #search-items .search-items-wrap > .block, body#body-search #search-items .search-items-wrap .block > .wrap { float: none; clear: none; width: auto; }
body#body-search #search-items .products.standard { float: none; display: grid; gap: 18px; width: auto; margin: 0; background: none; }
body#body-search #search-items .products.standard.grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
body#body-search #search-items .products.standard.list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
body#body-search #search-items.loading .products .club-listing { opacity: .35; transition: opacity var(--club-dur-2); }
#search-items .products.list .club-listing { display: grid; grid-template-columns: 260px minmax(0, 1fr); grid-template-rows: 1fr auto; }
#search-items .products.list .club-listing__media { grid-row: 1 / span 2; grid-column: 1; aspect-ratio: auto; min-height: 196px; border-bottom: 0; border-right: 1px solid var(--club-line); }
#search-items .products.list .club-listing__body { grid-column: 2; padding: 20px 22px 12px; }
#search-items .products.list .club-listing__foot { grid-column: 2; padding: 12px 22px; }
#search-items .products.list .club-listing__title { min-height: 0; font-size: var(--club-fs-md); }
#search-items .products.list .club-listing__desc { display: -webkit-box; margin: 2px 0 4px; font: 400 var(--club-fs-sm)/1.55 var(--club-font-body); color: var(--club-text-muted); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Premium listings above the results, scrolling sideways */
body#body-search #search-items .premiums-block { float: none; width: auto; margin: 0 0 22px; padding: 18px 18px 12px; overflow: hidden; background: var(--club-brand-soft); border: 1px solid var(--club-brand-line); border-radius: var(--club-r-lg); }
body#body-search #search-items h3.premium-blck { margin: 0 0 12px; font: 600 var(--club-fs-md)/1.3 var(--club-font-body); color: var(--club-text); }
body#body-search #search-items .premiums-block .ins { display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: 14px; float: none; width: auto; padding: 0 0 8px; white-space: normal; }
body#body-search #search-items .premiums-block .nice-scroll-left, body#body-search #search-items .premiums-block .nice-scroll-right { display: none !important; }

/* "Save this search" */
body#body-search #search-pub { float: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; width: auto; margin: 24px 0 0; padding: 20px 22px; background: var(--club-brand-soft); border: 1px solid var(--club-brand-line); border-radius: var(--club-r-lg); }
body#body-search #search-pub .info { float: none; width: auto; padding: 0; }
body#body-search #search-pub .info h3 { margin: 0 0 4px; font: 600 var(--club-fs-lg)/1.3 var(--club-font-display); color: var(--club-text); }
body#body-search #search-pub .info div { color: var(--club-text-muted); font: 400 var(--club-fs-base)/1.5 var(--club-font-body); }
body#body-search #search-pub .buttons { float: none; flex: 0 0 auto; width: auto; }
body#body-search #search-pub .alert-notify { float: none; display: inline-flex; align-items: center; height: 44px; margin: 0; padding: 0 18px; border: 0; border-radius: var(--club-r-md); background: var(--club-brand) !important; color: var(--club-on-brand) !important; box-shadow: none; }
body#body-search #search-pub .alert-notify:hover { background: var(--club-brand-hover) !important; }
body#body-search #search-pub .alert-notify .mbCl2 { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: inherit !important; font: 600 var(--club-fs-base)/1 var(--club-font-body); }
body#body-search #search-pub .alert-notify svg { width: 16px; height: 16px; fill: currentColor; }

/* Pages of results */
body .paginate { float: none; display: flex; justify-content: center; width: auto; margin: 28px 0 0; }
body .paginate ul { display: flex; flex-wrap: wrap; gap: 6px; width: auto; font-size: inherit; overflow: visible; }
body .paginate ul li { margin: 0; font-size: var(--club-fs-sm); }
body .paginate ul li a, body .paginate ul li span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--club-line); border-radius: var(--club-r-md); background: var(--club-surface); color: var(--club-text); font: 500 var(--club-fs-sm)/1 var(--club-font-body); letter-spacing: 0; text-indent: 0; text-decoration: none; }
body .paginate ul li a:hover { border-color: var(--club-text-muted); background: var(--club-surface); }
/* delta adds .mbBg to the current page, which its colour sheet paints with !important */
body .paginate ul li span.searchPaginationSelected { border-color: var(--club-ink); background: var(--club-ink) !important; color: #fff !important; }

@media screen and (max-width: 1080px) {
  body#body-search .content .inside.search { grid-template-columns: 240px minmax(0, 1fr); gap: 20px; }
  body#body-search #search-items .products.standard.grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  #search-items .products.list .club-listing { grid-template-columns: 200px minmax(0, 1fr); }
}

@media screen and (max-width: 767px) {
  /* Filters stay hidden on phones, as delta's filter button is switched off (inc.search.php) */
  body#body-search .content .inside.search { grid-template-columns: minmax(0, 1fr); margin-top: 18px; }
  body#body-search #home-search { margin-top: 10px; }
  /* delta narrows the category cell to leave room for its (switched off) filter button */
  body#body-search #home-search #home-form .col.c2 { width: auto; padding-right: 12px; }
  body#body-search #main .titles-top .club-h2 { font-size: 24px; }
  body#body-search #main .relative2 { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  body#body-search #search-sort { grid-column: 1; grid-row: 2; justify-content: space-between; }
  body#body-search .filter-remove { grid-row: 3; margin: 0; }
  body#body-search #search-sort .list-grid { order: 1; }
  body#body-search #search-items .products.standard.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body#body-search #search-items .products.grid .club-listing__body { padding: 12px 12px 10px; }
  body#body-search #search-items .products.grid .club-listing__foot { padding: 10px 12px; }
  body#body-search #search-items .products.grid .club-rating { display: none; }
  #search-items .products.list .club-listing { grid-template-columns: 116px minmax(0, 1fr); }
  #search-items .products.list .club-listing__media { min-height: 0; }
  #search-items .products.list .club-listing__body { padding: 12px 14px 8px; }
  #search-items .products.list .club-listing__foot { padding: 8px 14px; }
  #search-items .products.list .club-listing__desc, #search-items .products.list .club-listing__badges, #search-items .products.list .club-rating { display: none; }
  #search-items .products.list .club-listing__title { font-size: var(--club-fs-base); }
  #search-items .products.list .club-price { font-size: var(--club-fs-lg); }
  body#body-search #search-pub { flex-direction: column; align-items: flex-start; }
}


/* LISTING PAGE
   item.php: photos and the story on the left, the summary a buyer acts on and the
   seller on the right. On phones the two columns become one ordered list (the
   columns turn into display:contents), so the summary sits right under the photos. */

body#body-item #listing.club-item { float: none; display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: 28px; align-items: start; margin-top: 8px; }
body#body-item #listing.club-item > .item, body#body-item #listing.club-item > .side { float: none; width: auto; min-width: 0; margin: 0; padding: 0; }

body#body-item #listing .wbox { float: none; clear: none; width: auto; margin: 0 0 20px; padding: 24px; background: var(--club-surface); border: 1px solid var(--club-line); border-radius: var(--club-r-lg); box-shadow: var(--club-shadow-1); }
body#body-item #listing .wbox.imgbox { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
body#body-item #listing .club-item-h { float: none; width: auto; margin: 0 0 14px; padding: 0; border: 0; background: none; box-shadow: none; font: 600 var(--club-fs-lg)/1.3 var(--club-font-display); color: var(--club-text); }
body#body-item #listing .club-item-label { display: block; margin: 0 0 6px; font: 600 11px/1 var(--club-font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--club-text-muted); }

body#body-item #listing #so-re { position: relative; float: none; display: flex; overflow: visible; margin: 0 0 14px; padding: 12px 14px; border-radius: var(--club-r-md); font-weight: 400; }
body#body-item #listing #so-re:after { content: none; }
body#body-item #listing #so-re.sold, body#body-item #listing #so-re.reserved, body#body-item #listing #so-re.expired { background: var(--club-warning-soft); color: var(--club-warning-text); }

/* Photos: the whole photo over a blurred copy of itself, thumbnails in a row */
body#body-item #listing .main-data { float: none; width: auto; margin: 0; padding: 0; background: none; border-radius: 0; }
body#body-item #listing .main-data > .img { position: relative; float: none; width: auto; overflow: hidden; border: 1px solid var(--club-line); border-radius: var(--club-r-lg); background: var(--club-surface-3); }
body#body-item #listing .main-data .swiper-container { height: auto; aspect-ratio: 4 / 3; max-height: 660px; }
body#body-item #listing .main-data .swiper-slide { position: relative; height: 100%; overflow: hidden; background: transparent; list-style: none; }
body#body-item #listing .main-data .swiper-slide::before { content: ""; position: absolute; inset: -40px; background: var(--img) center / cover no-repeat; filter: blur(30px) saturate(1.1); opacity: .55; }
body#body-item #listing .main-data .swiper-slide > a { position: relative; z-index: 1; display: block; width: 100%; height: 100%; cursor: zoom-in; }
body#body-item #listing .main-data .swiper-slide img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
body#body-item #listing .swiper-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--club-text); box-shadow: var(--club-shadow-2); transition: transform var(--club-dur-2) var(--club-ease), opacity var(--club-dur-2); }
body#body-item #listing .swiper-button:not(.swiper-button-disabled):hover { width: 44px; background: #fff; transform: scale(1.06); }
body#body-item #listing .swiper-button.swiper-next { right: 14px; border-radius: 50%; }
body#body-item #listing .swiper-button.swiper-prev { left: 14px; border-radius: 50%; }
body#body-item #listing .swiper-button.swiper-button-disabled { opacity: 0; }
body#body-item #listing .swiper-container .swiper-pg { top: auto; bottom: 14px; left: auto; right: 14px; transform: none; padding: 5px 10px; border-radius: var(--club-r-pill); background: rgba(13, 15, 18, .62); color: #fff; font: 500 var(--club-fs-xs)/1 var(--club-font-body); font-variant-numeric: tabular-nums; }
body#body-item #listing .image-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; aspect-ratio: 4 / 3; max-height: 420px; padding: 0; border-radius: 0; background: var(--club-surface-2); color: var(--club-text-subtle); font: 500 var(--club-fs-base)/1 var(--club-font-body); }
body#body-item #listing .main-data > .thumbs { position: static; width: auto; height: auto; margin: 12px 0 0; padding: 0; overflow: visible; }
body#body-item #listing .main-data > .thumbs .scroll { display: none !important; }
body#body-item #listing .main-data > .thumbs ul { position: static; display: flex; gap: 10px; width: auto; height: auto; padding: 2px 2px 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
body#body-item #listing .main-data > .thumbs li { float: none; flex: 0 0 84px; width: 84px; height: 84px; margin: 0; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: var(--club-r-md); background: var(--club-surface-3); cursor: pointer; transition: border-color var(--club-dur-2); }
body#body-item #listing .main-data > .thumbs li img { float: none; width: 100%; height: 100%; border: 0; border-radius: 0; object-fit: cover; }
body#body-item #listing .main-data > .thumbs li:not(.active):hover { border-color: var(--club-line-strong); }
body#body-item #listing .main-data > .thumbs li.active { border-color: var(--club-brand); }

/* Description and details */
body#body-item #listing .club-item-story { margin-top: 20px; }
body#body-item #listing .item .data .description { float: none; width: auto; margin: 0; }
body#body-item #listing .item .data .description .text { float: none; width: auto; color: var(--club-text); font: 400 15px/1.7 var(--club-font-body); text-align: left; }
body#body-item #listing .item .data .description .text p { display: block; margin: 0 0 10px; }
body#body-item #listing .item .custom-fields { float: none; width: auto; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--club-line); }
body#body-item #listing .item .custom-fields .club-specs { gap: 12px 32px; }

/* About the seller */
body#body-item #listing .club-item-about { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
body#body-item #listing .club-item-about__who { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
body#body-item #listing .club-item-about__who .name { display: block; font: 600 var(--club-fs-md)/1.3 var(--club-font-body); color: var(--club-text); }
body#body-item #listing .club-item-about__who .posting { display: block; margin-top: 4px; color: var(--club-text-muted); font: 400 var(--club-fs-sm)/1.4 var(--club-font-body); }
body#body-item #listing .club-item-about__text .about { margin: 0; color: var(--club-text); font: 400 var(--club-fs-base)/1.65 var(--club-font-body); }
body#body-item #listing .club-item-about__text .address { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: var(--club-text-muted); font: 500 var(--club-fs-sm)/1.4 var(--club-font-body); }
body#body-item #listing .club-item-about__text .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* Message the seller: the form Instant Messenger turns into a conversation */
body#body-item #listing #contact .row { float: none; width: auto; margin: 0; padding: 0; }
body#body-item #listing #contact form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 0 20px; float: none; width: auto; }
body#body-item #listing #contact form > #error_list, body#body-item #listing #contact form > .problem { grid-column: 1 / -1; }
body#body-item #listing #contact form > #error_list:empty { display: none; }
body#body-item #listing #contact .lb, body#body-item #listing #contact .rb { float: none; display: grid; gap: 14px; width: auto; padding: 0; }
body#body-item #listing #contact .rb { grid-template-rows: 1fr auto; }
body#body-item #listing #contact .rb > .row:first-child { display: flex; flex-direction: column; }
body#body-item #listing #contact label { float: none; display: block; margin: 0 0 6px; font: 500 var(--club-fs-sm)/1.3 var(--club-font-body); color: var(--club-text); }
body#body-item #listing #contact label small { color: var(--club-text-subtle); font-weight: 400; }
body#body-item #listing #contact .input-box { float: none; width: auto; margin: 0; }
body#body-item #listing #contact input[type="text"], body#body-item #listing #contact input[type="email"], body#body-item #listing #contact textarea { display: block; width: 100%; height: 46px; margin: 0; padding: 0 14px; border: 1px solid var(--club-line-strong); border-radius: var(--club-r-md); background: var(--club-surface); box-shadow: none; color: var(--club-text); font: 400 var(--club-fs-base)/1.4 var(--club-font-body); transition: border-color var(--club-dur-2), box-shadow var(--club-dur-2); }
body#body-item #listing #contact textarea { flex: 1 1 auto; height: auto; min-height: 168px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
body#body-item #listing #contact input:focus, body#body-item #listing #contact textarea:focus { outline: none; border-color: var(--club-brand); box-shadow: 0 0 0 4px var(--club-brand-tint); }
body#body-item #listing #contact #send-message { float: none; width: 100%; height: 46px; margin: 0; }
body#body-item #listing #contact .info { float: none; width: auto; margin: 16px 0 0; color: var(--club-text-muted); font: 400 var(--club-fs-xs)/1.5 var(--club-font-body); }
body#body-item #listing #contact .problem { margin: 0; }

/* More from this seller, and similar listings below the page */
body#body-item #listing #user-items .related { float: none; width: auto; margin: 0; padding: 0; background: none; }
body#body-item #listing #user-items .related .inside { width: auto; max-width: none; margin: 0; padding: 0; }
body#body-item #listing #user-items .related h3 { display: none; }
body#body-item #listing #user-items .related .block { float: none; width: auto; }
body#body-item #listing #user-items .nice-scroll-left, body#body-item #listing #user-items .nice-scroll-right { display: none !important; }
body#body-item #listing #user-items .related .wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; float: none; width: auto; margin: 0; padding: 0; overflow: visible; white-space: normal; }

body#body-item #rel-block { float: none; clear: both; width: auto; margin: 16px 0 0; padding: 0; background: none; }
body#body-item #rel-block .inside { float: none; padding: 0; }
body#body-item #rel-block h3 { float: none; width: auto; margin: 0 0 16px; font: var(--club-display-weight) var(--club-fs-xl)/1.28 var(--club-font-display); color: var(--club-text); }
body#body-item #rel-block .block { position: relative; float: none; width: auto; }
body#body-item #rel-block .wrap.nice-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 250px; gap: 16px; float: none; width: auto; margin: 0; padding: 4px 2px 12px; overflow-x: auto; overflow-y: hidden; white-space: normal; scroll-snap-type: x proximity; scrollbar-width: thin; }
body#body-item #rel-block .wrap.nice-scroll > * { scroll-snap-align: start; }
body#body-item #rel-block .nice-scroll-left, body#body-item #rel-block .nice-scroll-right { top: 38%; width: 42px; height: 42px; border-radius: 50%; background: #fff; box-shadow: var(--club-shadow-2); }
body#body-item #rel-block .nice-scroll-left { left: -14px; }
body#body-item #rel-block .nice-scroll-right { right: -14px; }
body#body-item #rel-block .nice-scroll-left .mover, body#body-item #rel-block .nice-scroll-right .mover { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--club-text); }

/* Summary: what it is, what it costs, and how to get it */
body#body-item #listing .club-item-summary { padding: 24px; }
body#body-item #listing .club-item-summary .club-eyebrow { text-decoration: none; }
body#body-item #listing .club-item-summary .club-eyebrow:hover { color: var(--club-text); }
body#body-item #listing .club-item-title { display: block; width: auto; margin: 10px 0 0; font: var(--club-display-weight) 24px/1.25 var(--club-font-display); letter-spacing: -.01em; color: var(--club-text); text-wrap: balance; }
body#body-item #listing .club-item-summary .club-price { margin: 16px 0 0; }
body#body-item #listing .club-item-summary__badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
body#body-item #listing .club-item-summary__badges:empty { display: none; }
body#body-item #listing .club-item-summary__meta { display: grid; gap: 8px; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--club-line); list-style: none; }
body#body-item #listing .club-item-summary__meta li { display: flex; align-items: center; gap: 8px; color: var(--club-text-muted); font: 400 var(--club-fs-sm)/1.4 var(--club-font-body); }
body#body-item #listing .club-item-summary__meta li svg { flex: 0 0 auto; color: var(--club-text-subtle); }
body#body-item #listing .club-item-summary__meta a { color: var(--club-text); text-decoration: underline; text-decoration-color: var(--club-line-strong); text-underline-offset: 3px; }
body#body-item #listing .club-item-summary__actions { display: grid; gap: 10px; margin-top: 12px; }
body#body-item #listing .club-item-summary__actions .club-btn { height: 48px; }

/* Make Offer's buttons: a new offer is the main action, the count opens the list */
body#body-item #listing .club-item-summary #plugin-hook { float: none; width: auto; margin: 20px 0 0; }
body#body-item #listing .club-item-summary #plugin-hook:not(:has(*)) { display: none; }
body#body-item #listing #plugin-hook .mo-item-buttons-wrap { display: grid; gap: 10px; float: none; width: auto; margin: 0; }
body#body-item #listing #plugin-hook .mo-item-buttons-wrap a { float: none; display: flex; align-items: center; justify-content: center; gap: 6px; width: auto; margin: 0; border-radius: var(--club-r-md); box-shadow: none; text-decoration: none; }
body#body-item #listing #plugin-hook .mo-item-buttons-wrap a.mo-button-create { order: 1; height: 48px; padding: 0 20px; border: 1px solid var(--club-brand); background: var(--club-brand) !important; color: var(--club-on-brand) !important; font: 600 15px/1 var(--club-font-body); }
body#body-item #listing #plugin-hook .mo-item-buttons-wrap a.mo-button-create:hover { border-color: var(--club-brand-hover); background: var(--club-brand-hover) !important; box-shadow: var(--club-shadow-brand); }
body#body-item #listing #plugin-hook .mo-item-buttons-wrap a.mo-button-counts { order: 2; height: auto; padding: 2px 0; border: 0; background: none !important; color: var(--club-text-muted) !important; font: 400 var(--club-fs-sm)/1.3 var(--club-font-body); text-decoration: underline; text-decoration-color: var(--club-line-strong); text-underline-offset: 3px; }
body#body-item #listing #plugin-hook .mo-item-buttons-wrap a.mo-button-counts strong { color: var(--club-text); font-weight: 600; }

/* Seller */
body#body-item #listing #seller .user-box, body#body-item #listing #seller .user-box .wrap { float: none; width: auto; margin: 0; padding: 0; }
body#body-item #listing #seller .club-seller { margin: 0 0 16px; }
body#body-item #listing #seller .name { display: block; font: 600 var(--club-fs-md)/1.3 var(--club-font-body); }
body#body-item #listing #seller .name a { color: var(--club-text); text-decoration: none; }
body#body-item #listing #seller .name a:hover { color: var(--club-brand-text); }
body#body-item #listing #seller .counts { display: block; margin-top: 3px; color: var(--club-text-muted); font: 400 var(--club-fs-sm)/1.3 var(--club-font-body); }
body#body-item #listing #seller .club-item-seller-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
body#body-item #listing .club-item-reveal { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--club-text-muted); font: 500 var(--club-fs-sm)/1 var(--club-font-body); }

/* User Rating's stars, in the brand colour instead of green */
body#body-item #listing #ur-stars-box { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; float: none; width: auto; margin: 0; }
body#body-item #listing #ur-stars-box em { color: var(--club-text); font: 600 var(--club-fs-sm)/1 var(--club-font-body); font-style: normal; }
body#body-item #listing #ur-stars-box .ur-new-rating { color: var(--club-brand-text); font: 500 var(--club-fs-sm)/1 var(--club-font-body); text-decoration: underline; text-underline-offset: 3px; }

body#body-item #listing .wbox.location .row { display: flex; align-items: flex-start; gap: 8px; float: none; width: auto; margin: 0; color: var(--club-text); font: 500 var(--club-fs-sm)/1.45 var(--club-font-body); }
body#body-item #listing .wbox.location .row svg { flex: 0 0 auto; margin-top: 1px; color: var(--club-text-subtle); }
body#body-item #listing .wbox.location .row strong { font-weight: 500; }
body#body-item #listing .loc-hook:not(:has(*)) { display: none; }

body#body-item #listing .wbox.safe-block { display: flex; gap: 14px; padding: 18px 20px; background: var(--club-surface-2); box-shadow: none; }
body#body-item #listing .wbox.safe-block > svg { flex: 0 0 auto; color: var(--club-brand-text); }
body#body-item #listing .wbox.safe-block strong { display: block; margin: 1px 0 6px; font: 600 var(--club-fs-sm)/1.3 var(--club-font-body); color: var(--club-text); }
body#body-item #listing .wbox.safe-block p { margin: 0; color: var(--club-text-muted); font: 400 var(--club-fs-xs)/1.55 var(--club-font-body); }

body#body-item #listing .ftr-block { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; float: none; width: auto; margin: 0; padding: 0 4px; }
body#body-item #listing .ftr-block .manage { display: flex; gap: 14px; float: none; width: auto; margin: 0; }
body#body-item #listing .ftr-block a { display: inline-flex; align-items: center; gap: 6px; color: var(--club-text-muted); font: 500 var(--club-fs-xs)/1 var(--club-font-body); text-decoration: none; }
body#body-item #listing .ftr-block a:hover { color: var(--club-text); }
body#body-item #listing .ftr-block .report-listing, body#body-item #listing .ftr-block #report { float: none; margin: 0 0 0 auto; }

@media screen and (max-width: 1080px) {
  body#body-item #listing.club-item { grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
  body#body-item #listing .club-item-about { grid-template-columns: minmax(0, 1fr); }
  body#body-item #listing #contact form { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

@media screen and (max-width: 767px) {
  body#body-item #listing.club-item { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin-top: 0; }
  body#body-item #listing.club-item > .item, body#body-item #listing.club-item > .side { display: contents; }
  body#body-item #listing.club-item > .item > *, body#body-item #listing.club-item > .side > * { order: 30; }
  body#body-item #listing.club-item .imgbox { order: 1; }
  body#body-item #listing.club-item .club-item-summary { order: 2; }
  body#body-item #listing.club-item #seller { order: 3; }
  body#body-item #listing.club-item .club-item-story { order: 4; }
  body#body-item #listing.club-item #contact { order: 5; }
  body#body-item #listing.club-item #about { order: 6; }
  body#body-item #listing.club-item #user-items { order: 7; }
  body#body-item #listing.club-item #comment { order: 8; }
  body#body-item #listing.club-item .wbox.location { order: 9; }
  body#body-item #listing.club-item .safe-block { order: 10; }
  body#body-item #listing.club-item .ftr-block { order: 11; margin-bottom: 20px; }

  body#body-item #listing .wbox { margin-bottom: 14px; padding: 18px; }
  body#body-item #listing .club-item-story { margin-top: 0; }

  /* Photos edge to edge, as in a phone's own gallery */
  body#body-item #listing .main-data > .img { margin: 0 calc(50% - 50vw); border: 0; border-radius: 0; }
  body#body-item #listing .main-data .swiper-container { aspect-ratio: 1 / 1; }
  body#body-item #listing .swiper-button { display: none; }
  body#body-item #listing .main-data > .thumbs { margin: 10px 0 14px; }
  body#body-item #listing .main-data > .thumbs li { flex-basis: 60px; width: 60px; height: 60px; }
  body#body-item #listing .main-data > .img .mlink { position: absolute; top: 12px; z-index: 5; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--club-text); box-shadow: var(--club-shadow-2); }
  body#body-item #listing .main-data > .img .mlink:first-child { left: 12px; }
  body#body-item #listing .main-data > .img .mlink.share { right: 12px; left: auto; }

  body#body-item #listing .club-item-title { font-size: 22px; }

  /* Price and contact pinned above the bottom bar once the summary scrolls away */
  body#body-item #item-summary { left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)) !important; display: none; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border: 1px solid var(--club-line); border-radius: var(--club-r-lg); background: var(--club-surface); box-shadow: var(--club-shadow-3); }
  body#body-item #item-summary.shown { display: flex !important; }
  body#body-item #item-summary .data { float: none; flex: 1 1 auto; width: auto; min-width: 0; padding: 0; }
  body#body-item #item-summary .data strong.pr { float: none; display: block; font: var(--club-display-weight) var(--club-fs-md)/1.2 var(--club-font-display); color: var(--club-text); }
  body#body-item #item-summary .data span { float: none; display: block; margin-top: 2px; overflow: hidden; color: var(--club-text-muted); font: 400 var(--club-fs-xs)/1.3 var(--club-font-body); white-space: nowrap; text-overflow: ellipsis; }
  body#body-item #item-summary .cnt { position: static; display: flex; gap: 6px; width: auto; padding: 0; }
  body#body-item #item-summary .cnt > a { float: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin: 0; padding: 0; border: 1px solid var(--club-line-strong); border-radius: var(--club-r-md); background: var(--club-surface) !important; color: var(--club-text) !important; }
  body#body-item #item-summary .cnt > a.b2 { border-color: var(--club-ink); background: var(--club-ink) !important; color: #fff !important; }
  body#body-item #item-summary .mobile-item-data, body#body-item #item-summary .share-item-data { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); padding: 8px; border: 1px solid var(--club-line); border-radius: var(--club-r-lg); background: var(--club-surface); box-shadow: var(--club-shadow-3); }
  body#body-item #item-summary .mobile-item-data a, body#body-item #item-summary .share-item-data a { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: var(--club-r-sm); color: var(--club-text); font: 500 var(--club-fs-sm)/1 var(--club-font-body); }
}


/* PUBLIC PROFILE, UNTIL ITS OWN REDESIGN
   The seller's listings are club cards now; delta lays them out as a list. */

body#body-user-public-profile .products.list > .wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; float: none; width: auto; }

@media screen and (max-width: 767px) {
  body#body-user-public-profile .products.list > .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
