/* ============================================================================
   bidbid-custom.css  —  BidBid CSS overlay
   ----------------------------------------------------------------------------
   Loads AFTER stock AWE_Bootstrap3.css. Reference it from Admin → Content
   Management → "Header Scripts" with:
       <link rel="stylesheet" href="/Content/bidbid-custom.css?v=1">
   (That <link> lives in the DB, so it survives upgrades; this file is brand-new,
   so upgrades never touch it.)

   Holds your customizations that lived INSIDE AWE_Bootstrap3.css, so that core
   file can go back to 100% stock:
     A. New component rules you added
     B. Overrides for stock rules you tweaked

   NOT included yet: the responsive <style> block currently inline in
   AuctionThumbnail_WithBidding.cshtml. It stays in that view for now (so nothing
   is duplicated); we fold it in here when we clean that view.

   Extracted faithfully from live vs stock AuctionWorx 3.6.9451. Goal: identical
   look, fully upgrade-safe.
   ============================================================================ */


/* ============ A. NEW component rules ============ */

:root {
    --green: #5cb85c;
    --bidRow-bg: var(--green);
    --lightText: rgba(255,255,255,1);
    --medText: rgba(255,255,255,.8);
}

/* ============================================================================
   V45 THEME - ONE ACCENT PALETTE via CSS custom properties (B3 / J10-3)
   ----------------------------------------------------------------------------
   Single source of truth for the BidBid brand blue. To re-brand the whole site
   to another accent, change ONLY --bb-primary (and optionally its hover). Every
   custom button/control (bb-* + the buttons our JS builds) and the sitewide blue
   accents now resolve through these tokens. White text on --bb-primary measures
   ~7.8:1 (WCAG AA/AAA pass). Semantic status colors (error red #d92d20,
   savings/success green, orange event pill #f39027) are intentionally NOT
   tokenized here - they must keep their meaning.
   ============================================================================ */
:root {
    --bb-primary: #034db1;          /* BidBid brand blue (nav/logo/header row) */
    --bb-primary-hover: #023d8c;    /* darker shade for hover/active states     */
    --bb-primary-contrast: #ffffff; /* text/icon on a --bb-primary fill (7.8:1) */
    --bb-primary-weak: #eaf1fb;     /* pale blue tint (secondary hover / chips)  */
}

/* item page — coloured bid row */
.detail__bidRow {
    display: flex;
    justify-content: space-between;
    background-color: var(--bidRow-bg);
    padding: 1rem;
    border-radius: 4px;
    color: var(--lightText);
    font-size: 2rem;
    font-weight: 500;
}
.detail__bidLabel {
    color: var(--medText);
    font-weight: 400;
    font-size: 2rem;
}

/* tile — price + MSRP + condition + timer row */
.galleryData--values.price-timer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.price-row { display: inline-flex; align-items: baseline; gap: 6px; font-size: 0; }
.price-row > span { font-size: 14px; }
.msrp-value del { font-size: 14px; color: #888; margin: 0; }
.galleryTime--active {
    font-size: 16px;
    font-weight: bold;
    color: #001f49 !important;
    white-space: nowrap;
    margin-left: auto;
}
.condition-label { font-size: 13px; color: #444; display: inline-block; margin-bottom: 2px; }

/* tile responsive helpers */
@media screen and (max-width: 675px) {
    .galleryData--title > .awe-rt-HideOnEnd:first-of-type { display: none !important; }
}
/* BB-TILECOND-FIX 2026-07-21: stock hides .galleryData--title <=675, which also hides the
   condition that lives inside it. Un-hide the row (CURRENT BID stays hidden by the rule
   above) so the condition label shows on phones. */
@media screen and (max-width: 675px) {
    .galleryData--title { display: block !important; margin: 0 0 2px 0 !important; padding: 0 !important; line-height: 1.1 !important; }
}
@media screen and (min-width: 768px) and (max-width: 915px) {
    .galleryData--title > .awe-rt-HideOnEnd:first-of-type {
        font-size: 9px !important;
        font-weight: 400 !important;
        line-height: 1.2 !important;
        text-align: left !important;
    }
}

/* ending-soon flash (paired with bidbid-custom.js) */
@keyframes pulseCountdown {
    0%   { transform: scale(1);   color: #d60000; }
    50%  { transform: scale(1.2); color: #ff0000; }
    100% { transform: scale(1);   color: #d60000; }
}
.countdown-warning { animation: pulseCountdown 1s infinite; font-weight: bold; }

.eFilter { display: none !important; }

/* V45 THEME: "View all lots" primary CTA - retired the raw red, now brand blue
   via tokens (was #ff0000). Pulse kept (urgency cue, behavior unchanged). */
.btn.btn-default.btn-lots {
    background-color: var(--bb-primary) !important;
    color: var(--bb-primary-contrast) !important;
    border: none !important;
    border-radius: 8px;
    font-weight: bold;
    padding: 10px 16px;
    animation: pulseButton 1.4s ease-in-out infinite;
    transform-origin: center;
    transition: background-color 0.3s ease;
}
@keyframes pulseButton {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%      { transform: scale(1.1); opacity: .95; }
}
.btn.btn-default.btn-lots:hover { background-color: var(--bb-primary-hover) !important; color: var(--bb-primary-contrast) !important; }

/* item page — card-style custom-field table */
.detail__cfContainer { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.detail__cfUnit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
    padding: 12px 16px;
    gap: 20px;
    min-height: 48px;
}
.detail__cfName {
    flex: 1;
    font-weight: bold;
    font-size: 14px;
    color: #333;
    background-color: transparent;   /* override stock grey cell bg */
    padding: 0 16px 0 0;
    border-right: 1px solid #ccc;
    text-align: left;
}
.detail__cfValue {
    flex: 2;
    font-size: 14px;
    color: #444;
    background-color: transparent;   /* override stock grey cell bg */
    padding: 0 0 0 16px;
    text-align: right;
    word-break: break-word;
}
.detail__cfValue a:link { color: #0353bc; text-decoration: underline; font-weight: bold; }
.detail__cfValue a:visited { color: #001f49; }
.detail__cfValue a:hover { color: #d60000; text-decoration: underline; }
.detail__cfValue a:active { color: #d60000; }

/* V45 THEME: watchlist = the SECONDARY / lower-priority action, so it becomes a
   blue OUTLINE (ghost) button instead of the raw bright green (#00ff0d). This is
   the one allowed non-primary treatment; retires the green while keeping a clear
   visual rank below the solid-blue primary CTAs. + heart icon sizing. */
.addOrRemoveWatchlist .btn {
    background-color: #fff;
    border: 1px solid var(--bb-primary);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: bold;
    color: var(--bb-primary);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.addOrRemoveWatchlist .btn:hover { background-color: var(--bb-primary-weak); border-color: var(--bb-primary-hover); color: var(--bb-primary-hover); }
.icon__button--watchList {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    margin-bottom: -4px;
}


/* ============ B. OVERRIDES for stock rules you tweaked ============ */

/* gallery title: 80px -> 90px, drop the bottom border */
.galleryTitle { height: 90px; border-bottom: none; }

/* event status pill: green -> orange, rounded */
.event-row__status--active { background-color: #f39027; border-radius: 10px; }

/* mobile menu toggle bars: grey -> brand blue */
.navbar-light .navbar-toggle .icon-bar { background-color: var(--bb-primary); }

/* map heights */
.mapFrame--event   { height: 150px; position: relative; margin: 0; }
.mapFrame--listing { height: 200px; }

/* watchlist icon: bookmark -> heart */
.icon__context--notWatching { background: url('/Content/Images/heart.svg'); }
.icon__context--isWatching  { background: url('/Content/Images/heart-fill.svg'); }

/* you removed the @media(max-width:675px) wrapper around these stock rules,
   so they now apply at ALL widths — reproduced here (VERIFY on sandbox) */
.galleryTime--active { display: block; float: none; }   /* margin-left:auto (section A) wins */
.galleryQTY { display: block; float: none; }
.galleryQTY span { font-size: 14px; }
.qtyLabel-xs { visibility: visible; }


/* ============ D. tile mobile layout (moved from AuctionThumbnail_WithBidding inline style, verbatim) ============ */
@media screen and (max-width: 675px) {

  .galleryData--values {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    padding: 0 !important;
    gap: 0 !important;
    width: 100% !important;
  }

  .price-row {
    display: inline-flex !important;
    justify-content: flex-start !important;
    gap: 6px;
    font-size: 0;
    width: 100% !important;
    margin: 0 0 2px 0 !important;
  }

  .price-row span {
    font-size: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .timeLabel {
    font-size: 13px !important;
    font-weight: 500;
    color: #444 !important;
    text-align: left !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.1;
    width: 100%;
  }
.galleryTime--active {
    font-size: 14px !important;
    font-weight: bold;
    color: #001f49 !important;
    text-align: left !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.1;
    width: 100%;
  }


  body::after {
    display: block;
    background: #1a1a1a;
    color: white;
    font-size: 12px;
    text-align: center;
    padding: 4px;
    margin-top: 10px;
  }
}
@media screen and (min-width: 768px) and (max-width: 913px) {
  .galleryTime--active {
    font-size: 12px !important;
  }
}
@media screen and (min-width: 768px) and (max-width: 910px) {
  .msrp-value del {
    font-size: 13px !important;
  }
}
@media screen and (min-width: 768px) and (max-width: 820px) {
  .msrp-value del {
    font-size: 10px !important;
  }
}
@media screen and (min-width: 768px) and (max-width: 820px) {
  .price-row > span{
    font-size: 10px !important;
  }
}
@media screen and (min-width: 360px) and (max-width: 424px) {
  .timeLabel {
    font-size: 10px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    text-align: left !important;
  }
}
@media screen and (min-width: 811px) and (max-width: 850px) {
  .timeLabel {
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    text-align: left !important;
  }
}
@media screen and (min-width: 768px) and (max-width: 810px) {
  .timeLabel {
    font-size: 10px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    text-align: left !important;
  }
}



/* ============ BidBid 3-row header (Phase B final) — base layout ============ */
.bb-header { background: #fff; border-bottom: 1px solid #e2e5ea; }
.bb-hrow1 { background: var(--bb-primary); }
.bb-hrow1__inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 6px 12px; gap: 10px; }
.bb-greet { font-size: 12.5px; color: #e8ebf0; font-weight: 600; }
.bb-greet__hello { color: #dbe4f3; }
.bb-greet__link { color: #fff; font-weight: 800; text-decoration: none; }
.bb-greet__link:hover { text-decoration: underline; }
.bb-greet__sep { color: #9fb6dd; margin: 0 3px; }
.bb-acct { position: relative; }
.bb-acct__btn { background: none; border: 0; color: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 2px 4px; }
.bb-acct__menu { display: none; position: absolute; top: 100%; left: 0; z-index: 1400; background: #fff; border: 1px solid #e2e5ea; border-radius: 10px; box-shadow: 0 6px 20px rgba(20,24,33,.18); min-width: 190px; padding: 6px; margin-top: 4px; }
.bb-acct__menu--open { display: block; }
.bb-acct__item { display: block; padding: 9px 12px; font-size: 13.5px; font-weight: 700; color: #22242a; text-decoration: none; border-radius: 8px; }
.bb-acct__item:hover { background: #eaf1fb; color: var(--bb-primary); text-decoration: none; }
.bb-acct__item--out { color: #d92d20; border-top: 1px solid #eef0f3; margin-top: 4px; }
.bb-hactions { display: flex; align-items: center; gap: 4px; }
.bb-haction { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: #e8ebf0; font-size: 12.5px; font-weight: 700; text-decoration: none; cursor: pointer; padding: 4px 7px; white-space: nowrap; }
.bb-haction:hover { color: #fff; text-decoration: none; }
.bb-badge { background: #d92d20; color: #fff; border-radius: 999px; font-size: 10px; font-weight: 800; padding: 1px 6px; margin-left: 2px; }
.bb-hrow2__inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 10px 12px; flex-wrap: wrap; }
.bb-logo img { height: 38px; width: auto; display: block; }
.bb-search { flex: 1; min-width: 200px; }
.bb-searchform { display: flex; align-items: stretch; }
.bb-search__all { position: relative; display: flex; }
.bb-search__allbtn { background: #f1f3f6; border: 1px solid #e2e5ea; border-right: 0; border-radius: 10px 0 0 10px; font-size: 13px; font-weight: 700; color: #5a5f68; padding: 0 12px; cursor: pointer; white-space: nowrap; height: 42px; box-sizing: border-box; }
.bb-search__cats { max-height: 60vh; overflow: auto; }
.bb-search__box { flex: 1; border: 1px solid #e2e5ea; border-radius: 0; height: 42px; font-size: 15px; padding: 0 12px; min-width: 80px; box-sizing: border-box; }
.bb-search__go { background: var(--bb-primary); color: #fff; border: 0; border-radius: 0 10px 10px 0; font-size: 14px; font-weight: 800; padding: 0 16px; cursor: pointer; height: 42px; box-sizing: border-box; }
.bb-search__adv { margin-left: 10px; font-size: 12.5px; font-weight: 700; color: var(--bb-primary); text-decoration: none; align-self: center; white-space: nowrap; }
.bb-header .bb-locbar { background: none; border: 0; }
.bb-header .bb-locbar__inner { padding: 0; max-width: none; }

/* header responsive (only row-2 / search are visible on mobile — row-1 is hidden below) */
@media (max-width: 820px) {
  .bb-hrow2__inner { gap: 8px 12px; padding: 9px 12px; }
  .bb-logo img { height: 34px; }
  .bb-search { flex-basis: 100%; order: 4; min-width: 0; }
  .bb-search__box { height: 44px; font-size: 16px; min-width: 0; }
  .bb-search__allbtn { height: 44px; }
  .bb-search__go { padding: 0 15px; height: 44px; }
}
@media (max-width: 520px) {
  .bb-hrow2__inner { gap: 6px 10px; padding: 8px 10px; }
  .bb-logo img { height: 30px; }
  .bb-search__allbtn { padding: 0 10px; font-size: 12.5px; max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bb-search__adv { margin-left: 8px; font-size: 12px; }
  .bb-channel { padding: 11px 12px; font-size: 13.5px; }
}
@media (max-width: 400px) {
  .bb-search__allbtn { max-width: 92px; }
  .bb-search__adv { display: none; }
}

/* ============ channel strip (Phase B1) ============ */
.bb-channels { background: #fff; border-bottom: 1px solid #e2e5ea; }
.bb-channels__inner { max-width: 1180px; margin: 0 auto; display: flex; gap: 2px; padding: 0 10px; overflow-x: auto; scrollbar-width: none; }
.bb-channels__inner::-webkit-scrollbar { display: none; }
.bb-channel { white-space: nowrap; padding: 12px 16px; font-size: 14px; font-weight: 700; color: #22242a; text-decoration: none; border-bottom: 3px solid transparent; }
.bb-channel:hover { color: var(--bb-primary); border-bottom-color: var(--bb-primary); text-decoration: none; }

/* ============ pickup-location bar (Phase B1b) ============ */
.bb-locbar { background: #f6f7f9; border-bottom: 1px solid #e2e5ea; }
.bb-locbar__inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 7px; padding: 7px 12px; font-size: 13px; }
.bb-locbar__lead { color: #5a5f68; font-weight: 600; }
.bb-locdrop { position: relative; }
.bb-locdrop__btn { background: none; border: 0; font-size: 13px; font-weight: 800; color: var(--bb-primary); cursor: pointer; padding: 2px 4px; display: inline-flex; align-items: center; gap: 4px; }
.bb-locdrop__caret { font-size: 10px; }
.bb-locmenu { display: none; position: absolute; top: 100%; left: 0; z-index: 1200; background: #fff; border: 1px solid #e2e5ea; border-radius: 10px; box-shadow: 0 6px 20px rgba(20,24,33,.15); min-width: 190px; padding: 6px; margin-top: 4px; }
.bb-locmenu--open { display: block; }
.bb-locmenu__item { display: block; padding: 10px 12px; font-size: 14px; font-weight: 700; color: #22242a; text-decoration: none; border-radius: 8px; }
.bb-locmenu__item:hover { background: #eaf1fb; color: var(--bb-primary); text-decoration: none; }
.bb-locmenu__item--on { background: #eaf1fb; color: var(--bb-primary); }

/* ============ cart flyout (Phase B2) ============ */
.bb-channels__links { flex: 1; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.bb-channels__links::-webkit-scrollbar { display: none; }
.bb-cart__btn { flex: 0 0 auto; margin-left: 10px; background: none; border: 0; font-size: 14px; font-weight: 800; color: #22242a; cursor: pointer; padding: 12px 8px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.bb-cart__btn:hover { color: var(--bb-primary); }
.bb-cart__overlay { display: none; position: fixed; inset: 0; background: rgba(20,24,33,.45); z-index: 3000; }
.bb-cart__overlay--on { display: block; }
.bb-cart__panel { position: fixed; top: 0; right: -340px; width: 320px; max-width: 88vw; height: 100%; background: #fff; z-index: 3001; box-shadow: -6px 0 24px rgba(20,24,33,.2); transition: right .25s ease; padding: 0 0 20px; overflow-y: auto; }
.bb-cart__panel--open { right: 0; }
.bb-cart__head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid #e2e5ea; font-size: 17px; }
.bb-cart__x { background: none; border: 0; font-size: 26px; line-height: 1; color: #6a6f78; cursor: pointer; }
.bb-cart__sec { padding: 14px 16px; border-bottom: 1px solid #eef0f3; }
.bb-cart__sectitle { font-size: 13px; font-weight: 800; color: #5a5f68; margin-bottom: 10px; }
.bb-cart__empty { font-size: 13px; color: #8a909a; font-weight: 600; line-height: 1.4; }
.bb-cart__link { font-size: 14.5px; font-weight: 800; color: var(--bb-primary); text-decoration: none; }
.bb-cart__link:hover { text-decoration: underline; }

/* ============ mobile bottom nav (Phase B, v3 style) ============ */
.bb-bottomnav { display: none; }
@media (max-width: 820px) {
  .bb-bottomnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 2500; background: #fff; border-top: 1px solid #e2e5ea; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 10px rgba(20,24,33,.07); }
  .bb-bnav__item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 9px; font-size: 10.5px; font-weight: 700; color: #6a6f78; text-decoration: none; background: none; border: 0; cursor: pointer; }
  .bb-bnav__item:hover { text-decoration: none; color: var(--bb-primary); }
  .bb-bnav__ic { font-size: 21px; line-height: 1; }
  .bb-bnav__item--on { color: var(--bb-primary); }
  body { padding-bottom: 66px; }
}

/* bottom nav present: declutter top thin-row on mobile (Watchlist+Messages live in bottom nav; keep Cart top) */
@media (max-width: 820px) {
  .bb-hactions .bb-haction:not(.bb-cart__btn) { display: none; }
}

/* mobile: remove blue thin row, cart sits with logo (Phase B) */
.bb-mcart { display: none; }
@media (max-width: 820px) {
  .bb-hrow1 { display: none; }
  .bb-mcart { display: inline-flex; align-items: center; margin-left: auto; font-size: 23px; color: #22242a; padding: 4px 6px; }
  .bb-header .bb-locbar { flex-basis: 100%; order: 3; }
  .bb-search { order: 4; }
}

/* ============ search type-ahead dropdown + recent searches (Phase B3) ============ */
/* custom autocomplete (replaces native <datalist>): opens only after typing, capped list */
.bb-ac {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 1200;
  background: #fff; border: 1px solid #d8dde6; border-top: 0; border-radius: 0 0 6px 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12); max-height: 320px; overflow: auto;
}
.bb-ac__item {
  padding: 9px 12px; font-size: 14px; line-height: 1.3; color: #1a1a1a; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bb-ac__item:hover, .bb-ac__item--on { background: #eef4ff; }

/* recent searches (advanced-search page) */
.bb-recent { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.bb-recent__lbl { font-size: 12px; color: #6b7280; font-weight: 600; margin-right: 2px; }
.bb-recent__chip {
  border: 1px solid #cfd6e0; background: #f5f7fa; color: var(--bb-primary); border-radius: 14px;
  padding: 4px 10px; font-size: 12px; cursor: pointer; max-width: 200px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bb-recent__chip:hover { background: #e7eefb; border-color: var(--bb-primary); }
.bb-recent__clear { border: 0; background: none; color: #9ca3af; font-size: 12px; cursor: pointer; text-decoration: underline; margin-left: 4px; }

/* ============ header polish: action-icon size + cart color on the blue top row ============ */
.bb-haction { font-size: 16px; }
.bb-haction__lbl { font-size: 12.5px; font-weight: 700; }
.bb-hrow1 .bb-cart__btn { color: #e8ebf0; font-size: 16px; }
.bb-hrow1 .bb-cart__btn:hover { color: #fff; }

/* ============ very small screens (<=430px): compact search chrome to give the keyword box room ============ */
@media (max-width: 430px) {
  .bb-search__allbtn { font-size: 0; max-width: none; padding: 0 9px; }
  .bb-search__allbtn::before { content: "All "; font-size: 13px; font-weight: 700; }
  .bb-search__adv { display: inline-block !important; font-size: 0; margin-left: 8px; }
  .bb-search__adv::before { content: "Advanced"; font-size: 12px; font-weight: 700; }
}

/* ============ Browse: persistent category navigation (desktop sticky sidebar + mobile picker) ============ */
.bb-hide { display: none !important; }
.bb-catnav { list-style: none; margin: 6px 0 0; padding: 0; }
.bb-catnav__li { position: relative; border-bottom: 1px solid #eef0f3; }
.bb-catnav__link { display: block; padding: 10px 32px 10px 10px; font-size: 14px; font-weight: 600; color: #22242a; text-decoration: none; border-radius: 6px; }
.bb-catnav__link:hover { background: #f2f6fc; color: var(--bb-primary); text-decoration: none; }
.bb-catnav__link--on { background: #eaf1fb; color: var(--bb-primary); font-weight: 800; }
.bb-catnav__toggle { position: absolute; top: 3px; right: 0; width: 32px; height: 36px; background: none; border: 0; color: #6a6f78; font-size: 13px; cursor: pointer; transition: transform .15s ease; }
.bb-catnav__li--open > .bb-catnav__toggle { transform: rotate(180deg); }
.bb-catnav__subs { list-style: none; margin: 0; padding: 2px 0 8px 14px; display: none; }
.bb-catnav__li--open > .bb-catnav__subs { display: block; }
.bb-catnav__sublink { display: block; padding: 7px 10px; font-size: 13px; font-weight: 600; color: #45484f; text-decoration: none; border-radius: 6px; }
.bb-catnav__sublink:hover { background: #f2f6fc; color: var(--bb-primary); text-decoration: none; }
.bb-catnav__sublink.bb-catnav__link--on { background: #eaf1fb; color: var(--bb-primary); font-weight: 800; }
@media (min-width: 992px) { .bb-catnav-desk { position: sticky; top: 12px; } }
.bb-catnav-mob { max-height: 66vh; overflow: auto; width: 100%; padding: 4px; }


/* ============ very small screens (<=430px): compact search chrome to give the keyword box room ============ */
@media (max-width: 430px) {
  .bb-search__allbtn { font-size: 0; max-width: none; padding: 0 9px; }
  .bb-search__allbtn::before { content: "All "; font-size: 13px; font-weight: 700; }
  .bb-search__adv { display: inline-block !important; font-size: 0; margin-left: 8px; }
  .bb-search__adv::before { content: "Advanced"; font-size: 12px; font-weight: 700; }
}

/* ============ Browse: persistent category navigation (desktop sticky sidebar + mobile picker) ============ */
.bb-hide { display: none !important; }
.bb-catnav { list-style: none; margin: 6px 0 0; padding: 0; }
.bb-catnav__li { position: relative; border-bottom: 1px solid #eef0f3; }
.bb-catnav__link { display: block; padding: 10px 32px 10px 10px; font-size: 14px; font-weight: 600; color: #22242a; text-decoration: none; border-radius: 6px; }
.bb-catnav__link:hover { background: #f2f6fc; color: var(--bb-primary); text-decoration: none; }
.bb-catnav__link--on { background: #eaf1fb; color: var(--bb-primary); font-weight: 800; }
.bb-catnav__toggle { position: absolute; top: 3px; right: 0; width: 32px; height: 36px; background: none; border: 0; color: #6a6f78; font-size: 13px; cursor: pointer; transition: transform .15s ease; }
.bb-catnav__li--open > .bb-catnav__toggle { transform: rotate(180deg); }
.bb-catnav__subs { list-style: none; margin: 0; padding: 2px 0 8px 14px; display: none; }
.bb-catnav__li--open > .bb-catnav__subs { display: block; }
.bb-catnav__sublink { display: block; padding: 7px 10px; font-size: 13px; font-weight: 600; color: #45484f; text-decoration: none; border-radius: 6px; }
.bb-catnav__sublink:hover { background: #f2f6fc; color: var(--bb-primary); text-decoration: none; }
.bb-catnav__sublink.bb-catnav__link--on { background: #eaf1fb; color: var(--bb-primary); font-weight: 800; }
@media (min-width: 992px) { .bb-catnav-desk { position: sticky; top: 12px; } }
.bb-catnav-mob { max-height: 66vh; overflow: auto; width: 100%; padding: 4px; }

/* Force light theme */
:root, html { color-scheme: light; }

/* ============ V43 SELLER HOME - seller account panels + W6 settings controls (Phase 3A) ============ */
/* Native Bootstrap panels for the re-homed W6 (settings) + W4 (operations) blocks, mounted in the .myaccount
   content column BELOW the site nav (UXL-1). Left-aligned, full width of the content column (UXL-2). The
   .panel/.panel-default look comes from stock AWE_Bootstrap3.css so these read as native cards. */
.bb-seller-panel { margin: 16px 0; text-align: left; }
.bb-seller-panel .panel-heading { text-align: left; }
.bb-seller-panel__title { font-weight: 700; font-size: 15px; }
.bb-seller-panel .panel-body { text-align: left; }
/* W4 admin "View all sellers" toggle floats right inside the heading (behavior unchanged from pre-v43) */
#bbDashToggle { margin-top: -2px; }
.bb-seller-panel table { text-align: left; }

/* S1c (light touch): theme the W6 native inputs / selects / time pickers to match the site WITHOUT reflowing the
   inline fieldset rows. A literal per-input .form-control would force width:100% + display:block and break the
   side-by-side time pickers, so this scoped rule delivers the same themed look while preserving layout. The Save
   button uses the real .btn .btn-primary (stock). Inline width:NNpx on the small inputs still wins (kept). */
.bb-settings-panel legend { font-weight: 600; font-size: 13px; }
.bb-settings-panel input[type="text"],
.bb-settings-panel input[type="number"],
.bb-settings-panel input[type="time"],
.bb-settings-panel select {
  display: inline-block;
  height: 32px;
  padding: 4px 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #33373d;
  background-color: #fff;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  vertical-align: middle;
  box-sizing: border-box;
}
.bb-settings-panel input[type="time"] { min-width: 92px; }
.bb-settings-panel input:focus,
.bb-settings-panel select:focus { border-color: #4a90d9; outline: 0; }
.bb-settings-panel label { font-weight: normal; }

/* ============================================================================
   V44  -  MESSENGER + INVOICE SURFACE POLISH (Phase 3B, cosmetic-only)
   ----------------------------------------------------------------------------
   Item 4: reflow the STOCK inbox table (.messaging__list) to stacked cards on a
           phone so it is usable; the desktop table is unchanged.
   Item 5: give the contained W1 pay-deadline banner (.bbLife-alert) a proper
           alert-card feel (left accent + soft shadow); its colors are set inline
           by the JS palette, so we only add shape here.
   Item 7: style the humanized tax summary line (.bbTaxSummary).
   (Item 1 messenger containment styling lives in the split-loaded w9 module.)
   ============================================================================ */

/* Item 5 - W1 pay-deadline banner as a themed alert card (colors set by JS). */
.bbLife-alert { border-left-width: 4px !important; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.bbLife-alert b { font-size: 16px; }

/* Item 7 - compact human tax summary at the top of the invoice column. */
.bbTaxSummary { margin: 0 0 14px; padding: 8px 12px; background: #f2f7fb; border: 1px solid #d6e6f2; border-radius: 8px; font-size: 14px; color: #31576f; }
.bbTaxSummary__lbl { font-weight: 600; margin-right: 4px; }

/* Item 4 - stock inbox (.messaging__list) reflows to cards on a phone (<=767px).
   The .hidden-xs Listing/From cells stay hidden (Bootstrap); Subject + Sent +
   the Reply/Delete controls stack inside a bordered card. Desktop keeps the table. */
@media screen and (max-width: 767px) {
  .messaging__list, .messaging__list > tbody, .messaging__list > tbody > tr,
  .messaging__list > tr, .messaging__list td, .messaging__list th { display: block; width: auto; }
  .messaging__list tr.active { display: none; }
  .messaging__list > tbody > tr, .messaging__list > tr {
    border: 1px solid #e5e5e5; border-radius: 8px; margin: 0 0 10px; padding: 10px 12px; background: #fff; }
  .messaging__list td { border: 0 !important; padding: 3px 0 !important; }
  .messaging__list td:first-child { font-weight: 600; font-size: 15px; }
  .messaging__list td[style*="width"] { width: auto !important; margin-top: 6px; }
}

/* ===== BB-BATCH1-10 (Batch-1 test fix #10): Buy Now / Price Drop grid tile alignment.
   Problem: some tiles show "MSRP $X" (JS-injected, flex-basis:100% -> its own line) and some show a
   condition label vs "TIME REMAINING", so card rows misalign. Pedram: KEEP MSRP on tiles; just make it
   consistent. Fix = reserve a stable min-height on the label row and the price/values row so every card
   is the same height whether or not MSRP/condition is present, + uniform countdown colour, + responsive
   safeguards. Selectors are tile-only (.galleryData--*, .galleryTitle) so nothing else is touched.
   Additive, reversible. ===== */
.galleryData--title {            /* label row: "Buy Now" / condition / "TIME REMAINING" */
  min-height: 20px;
}
.galleryData--values {           /* price row + the JS-injected MSRP line */
  min-height: 44px;
  align-content: flex-start;
  overflow: visible;
}
.galleryData--values .galleryTime--active {   /* uniform countdown treatment across all tiles */
  color: #001f49 !important;
  font-weight: 700;
}
/* keep card image + title heights uniform so rows line up even with 2-line titles */
.galleryTitle {
  min-height: 40px;
}
@media (min-width: 768px) {
  .galleryData--values { min-height: 44px; }
}
@media (max-width: 675px) {
  .galleryData--values { min-height: 40px; }
  .galleryTitle { min-height: 34px; }
}
/* ===== /BB-BATCH1-10 ===== */

/* ===== BB-BATCH1-COND (Batch-1 follow-up): keep the custom condition-honesty label visible on phones.
   Server-rendered in AuctionThumbnail.cshtml + AuctionThumbnail_WithBidding.cshtml as
   <span class="condition-label">@condition</span> (and on the no-bidding tile the condition rides in the
   <span class="timeLabel awe-rt-HideOnEnd"> slot). It renders on desktop but drops out at phone width
   because the mobile flex-column tile layout squeezes/clips it. No CSS rule actually hides it, so we just
   force it onto its own visible line and stop the tile rows from clipping. Tile-scoped, additive,
   reversible. ===== */
@media screen and (max-width: 675px) {
  .galleryData--values,
  .galleryData--title { overflow: visible !important; height: auto !important; }
  .condition-label {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    color: #444 !important;
    margin: 0 0 2px 0 !important;
  }
  /* no-bidding tile: condition lives in the timeLabel slot — make sure it isn't collapsed */
  .galleryData--title > .timeLabel { display: inline-block !important; visibility: visible !important; }
}
/* ===== /BB-BATCH1-COND ===== */


/* BB-BATCH1 #5a CATEGORY RAIL POLISH */
@media (min-width: 992px) {
  .bb-catnav-desk { position: sticky; top: 12px; background: #fff; border: 1px solid #e3e8ee; border-radius: 12px; padding: 8px; box-shadow: 0 3px 14px rgba(29, 48, 74, .07); overflow: hidden; }
  .bb-catnav-desk > h1, .bb-catnav-desk > h2, .bb-catnav-desk > h3, .bb-catnav-desk > h4, .bb-catnav-desk > h5 { margin: 2px 8px 7px; color: #1b2733; font-size: 13px; font-weight: 800; letter-spacing: .35px; text-transform: uppercase; }
  .bb-catnav-desk .bb-catnav { margin: 0; }
}
.bb-catnav__li { border-bottom: 0; margin: 1px 0; }
.bb-catnav__link { border-radius: 8px; padding: 9px 40px 9px 10px; color: #1b2733; }
.bb-catnav__sublink { border-radius: 8px; padding: 7px 10px; }
.bb-catnav__link:hover, .bb-catnav__sublink:hover { background: var(--bb-primary-weak, #eaf1fb); color: var(--bb-primary, #034db1); }
.bb-catnav__link--on, .bb-catnav__sublink.bb-catnav__link--on { background: var(--bb-primary, #034db1); color: #fff; }
.bb-catnav__link--on:hover, .bb-catnav__sublink.bb-catnav__link--on:hover { background: var(--bb-primary-hover, #063f91); color: #fff; }
.bb-catnav__toggle { top: 1px; right: 1px; width: 38px; height: 38px; border-radius: 8px; color: #5f6b7a; }
.bb-catnav__toggle:hover { background: var(--bb-primary-weak, #eaf1fb); color: var(--bb-primary, #034db1); }
.bb-catnav__toggle:focus-visible, .bb-catnav__link:focus-visible, .bb-catnav__sublink:focus-visible { outline: 3px solid rgba(3, 77, 177, .3); outline-offset: 1px; }
.bb-catnav__subs { padding: 2px 0 7px 12px; }
.bb-catnav-mob { position: static; border-radius: 10px; overscroll-behavior: contain; }

/* ===== BB-CSS1 2026-07-24 v2: M4/M5 + M1 + PF3 (append-only, no recompile) ===== */
@media (max-width: 820px){
  a#scrollUp{ bottom: calc(56px + env(safe-area-inset-bottom,0px) + 14px) !important; }
}
.d-flex.justify-space-between:has(#bbLotFee){ column-gap:12px !important; align-items:flex-start !important; }
.flex-1:has(#bbLotFee){ min-width:0 !important; }
.detail__feeData:has(#bbLotFee){ white-space:normal !important; }
#bbLotFee.detail__fee{ white-space:normal !important; overflow-wrap:anywhere !important; }
img#previewimg.img-responsive{ max-height:520px; width:auto; max-width:100%; margin:0 auto; display:block; }
/* ===== END BB-CSS1 ===== */

/* BIDBID-M1 START  mobile account strip + recaptcha badge  2026-08-04 */
@media (max-width: 820px) {
  .bb-hrow1:has(.bb-acct) { display: block !important; background: var(--bb-primary); padding: 0; }
  .bb-hrow1:has(.bb-acct) .bb-hrow1__inner { display: flex; justify-content: flex-end; align-items: center; padding: 3px 10px; max-width: none; }
  .bb-hrow1 .bb-greet__hello,
  .bb-hrow1 .bb-greet__link,
  .bb-hrow1 .bb-greet__sep,
  .bb-hrow1 .bb-hactions,
  .bb-hrow1 .bb-cart__btn { display: none !important; }
  .bb-hrow1 .bb-acct { display: block; }
  .bb-hrow1 .bb-acct__btn { font-size: 12px; padding: 3px 2px; }
  .bb-hrow1 .bb-acct__menu { left: auto; right: 0; z-index: 2600; }
  .grecaptcha-badge { bottom: calc(118px + env(safe-area-inset-bottom)) !important; z-index: 2400 !important; }
}
.bb-rcnote { font-size: 11.5px; line-height: 1.45; color: #6b7280; margin: 8px 0 0; }
.bb-rcnote a { color: #6b7280; text-decoration: underline; }
/* BIDBID-M1 END */
