/* 9.4.0 / v18 — rewrite mobile cards (kill 50px grid strip), hide desktop FAB */

html body #bu-feed,
html body .bu-feed {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

html body #bu-feed .bu-item,
html body .bu-feed .bu-item,
html body.bu-term .bu-feed .bu-row,
html body.bu-term .bu-item.compact,
html body.bu-board-page .bu-feed .bu-item.compact {
  display: block !important;
  float: none !important;
  clear: both !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  grid-template-areas: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html body #bu-feed .bu-mload,
html body .bu-feed .bu-mload {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 16px !important;
  margin: 0 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06) !important;
  overflow: hidden !important;
}

html body #bu-feed .bu-mload-head {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
}

html body #bu-feed .bu-mload-route {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

html body #bu-feed .bu-mload-route i {
  color: #0066ff !important;
  font-style: normal !important;
}

html body #bu-feed .bu-mload-end,
html body #bu-feed .bu-mload-end b,
html body #bu-feed .bu-ccflag {
  display: inline !important;
  white-space: nowrap !important;
  color: #0f172a !important;
}

html body #bu-feed .bu-mload-flags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  flex: 0 0 auto !important;
}

html body #bu-feed .bu-mload-specs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 10px 0 !important;
}

html body #bu-feed .bu-mload-chip,
html body #bu-feed .bu-demo-ribbon {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: #f1f5f9 !important;
  color: #334155 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

html body #bu-feed .bu-demo-ribbon {
  background: #fef3c7 !important;
  color: #f59e0b !important;
}

html body #bu-feed .bu-mload-foot {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
}

html body #bu-feed .bu-mload-price {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

html body #bu-feed .bu-mload-go {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 16px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #0066ff !important;
  color: #fff !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

html body #bu-feed .bu-desk-row {
  display: none !important;
}

html body .bu-alert-bar,
html body .bu-filter-bar,
html body .bu-twin-bars,
html body .bu-v12-counts {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
  max-width: 100% !important;
}

@media (max-width: 1023px) {
  html body #bu-feed,
  html body .bu-feed,
  html body #bu-list-pane {
    padding-bottom: 90px !important;
  }
  html body #bu-dispo-fab,
  html body .bu-dispo-fab {
    display: flex !important;
    position: fixed !important;
    right: 16px !important;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 50 !important;
    width: 58px !important;
    height: 58px !important;
  }
  html body .bu-board > #bu-dispo:not(.bu-ai-portal):not(.is-sheet) {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  html body #bu-dispo-fab,
  html body .bu-dispo-fab {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  html body .bu-board {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 320px !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    min-height: 0 !important;
  }
  html body .bu-board-bar,
  html body .bu-filter-chrome {
    grid-column: 1 / -1 !important;
  }
  html body .bu-board-body.bu-term-grid {
    grid-column: 1 !important;
    display: grid !important;
    grid-template-columns: minmax(260px, 5fr) minmax(320px, 7fr) !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  html body .bu-board > #bu-dispo,
  html body .bu-board > #bu-dispo.hidden-m {
    grid-column: 2 !important;
    grid-row: 2 !important;
    display: flex !important;
    position: relative !important;
    inset: auto !important;
    width: 320px !important;
    max-width: 320px !important;
    height: 100% !important;
    max-height: none !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }
  html body #bu-feed .bu-mload {
    display: none !important;
  }
  html body #bu-feed .bu-item {
    display: block !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    background: transparent !important;
  }
  html body #bu-feed .bu-desk-row {
    display: grid !important;
    grid-template-columns: 36px minmax(180px, 1.3fr) minmax(110px, .7fr) minmax(180px, 1.3fr) minmax(110px, .7fr) minmax(140px, 1fr) minmax(72px, .45fr) minmax(72px, .45fr) minmax(100px, .5fr) !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 980px !important;
    padding: 8px 10px !important;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }
  html body #bu-feed .bu-desk-row > .bu-c {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    writing-mode: horizontal-tb !important;
  }
  html body #bu-feed .bu-desk-row > .bu-c-from,
  html body #bu-feed .bu-desk-row > .bu-c-to {
    min-width: 180px !important;
  }
  html body #bu-list-pane,
  html body .bu-board-list-scroll,
  html body #bu-feed {
    overflow-x: auto !important;
  }
  html body #bu-feed .bu-cols-head,
  html body .bu-cols-head {
    display: grid !important;
    grid-template-columns: 36px minmax(180px, 1.3fr) minmax(110px, .7fr) minmax(180px, 1.3fr) minmax(110px, .7fr) minmax(140px, 1fr) minmax(72px, .45fr) minmax(72px, .45fr) minmax(100px, .5fr) !important;
    min-width: 980px !important;
    gap: 8px !important;
  }
}
