/* MR CEYLON • Auction countdown stages + verified-result presentation
   v3 — 2026-11-06
   Readable on all four admin-selectable customer themes.
   Stage palette: WHITE before opening, GREEN while running, RED for final 12h.
   No practice bids are ever published as genuine auction outcomes.
*/
body[data-auction-page]{
  --au-clock-white:#f7f8fb;
  --au-clock-green:#81f5aa;
  --au-clock-red:#ff8b94;
  --au-clock-neutral:#eee2c6;
}
body[data-auction-page="catalog"] .au-card-clock{
  --au-stage-ink:var(--au-clock-white);
  --au-stage-bg:#232a32;
  --au-stage-border:#a8b6c5;
  background:var(--au-stage-bg)!important;
  border:1px solid var(--au-stage-border)!important;
  border-left:4px solid var(--au-stage-border)!important;
  box-shadow:inset 0 0 19px rgba(0,0,0,.11);
  padding:9px 10px;
  gap:4px;
}
body[data-auction-page="catalog"] .au-card-clock-label{
  color:var(--au-stage-ink)!important;
  opacity:.91;
}
body[data-auction-page="catalog"] .au-card-clock-value{
  color:var(--au-stage-ink)!important;
  font-variant-numeric:tabular-nums;
  font-feature-settings:"tnum" 1;
}
body[data-auction-page="catalog"] .au-card-clock[data-demo-phase="upcoming"]{
  --au-stage-ink:#f7f8fb;
  --au-stage-bg:#232a32;
  --au-stage-border:#acbac6;
}
body[data-auction-page="catalog"] .au-card-clock[data-demo-phase="running"]{
  --au-stage-ink:#82f5ad;
  --au-stage-bg:#102d20;
  --au-stage-border:#43b476;
}
body[data-auction-page="catalog"] .au-card-clock[data-demo-phase="urgent"]{
  --au-stage-ink:#ff8e98;
  --au-stage-bg:#3b191e;
  --au-stage-border:#eb5a65;
  box-shadow:0 0 0 1px rgba(235,90,101,.13),inset 0 0 12px rgba(220,55,70,.1);
}
body[data-auction-page="catalog"] .au-card-clock[data-demo-phase="ended"],
body[data-auction-page="catalog"] .au-card-clock[data-demo-phase="unavailable"]{
  --au-stage-ink:#e9ddc6;
  --au-stage-bg:#27282c;
  --au-stage-border:#9c917b;
}
body[data-auction-page="catalog"] .au-card-clock[data-demo-phase="ended"] .au-card-clock-value,
body[data-auction-page="catalog"] .au-card-clock[data-demo-phase="unavailable"] .au-card-clock-value{
  color:var(--au-stage-ink)!important;
  font-size:clamp(12px,1.3vw,16px);
  white-space:normal;
  line-height:1.25;
}
body[data-auction-page="catalog"] .au-card-clock[data-demo-phase="ended"] .au-card-clock-label{
  overflow-wrap:anywhere;
}
body[data-auction-page="catalog"] .au-card-clock[data-demo-phase="urgent"] .au-card-clock-label{
  font-weight:800;
}
body[data-auction-page="catalog"] .au-market-types .au-chip[data-filter="results"]{
  border-color:var(--mc-gold,#c9ab77);
}
body[data-auction-page="catalog"] .au-market-types .au-chip[data-filter="results"].active{
  background:var(--mc-gold,#c9ab77);
  color:#172025;
}

/* Detail view: a distinct countdown component, not a plain uncolored number. */
body[data-auction-page="lot"] .au-lot-clock,
body[data-auction-page="live"] #liveCountdown{
  --au-stage-ink:#f7f8fb;
  --au-stage-bg:#232a32;
  --au-stage-border:#acbac6;
  color:var(--au-stage-ink);
  background:var(--au-stage-bg);
  border:1px solid var(--au-stage-border);
  border-left:4px solid var(--au-stage-border);
  box-shadow:inset 0 0 16px rgba(0,0,0,.15);
  border-radius:12px;
}
body[data-auction-page="lot"] .au-lot-clock{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  padding:15px 18px;
  margin:17px 0 10px;
  max-width:100%;
}
body[data-auction-page="lot"] .au-lot-clock-label{
  font:700 11px/1.35 "DM Sans",Arial,sans-serif;
  letter-spacing:.13em;
}
body[data-auction-page="lot"] #lotCountdown{
  font:700 clamp(20px,3vw,29px)/1.2 "DM Sans",Arial,sans-serif;
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere;
}
body[data-auction-page="lot"] .au-lot-clock[data-demo-phase="upcoming"],
body[data-auction-page="live"] #liveCountdown[data-demo-phase="upcoming"]{
  --au-stage-ink:#f7f8fb;--au-stage-bg:#242930;--au-stage-border:#acbac6;
}
body[data-auction-page="lot"] .au-lot-clock[data-demo-phase="running"],
body[data-auction-page="live"] #liveCountdown[data-demo-phase="running"]{
  --au-stage-ink:#82f5ad;--au-stage-bg:#102d20;--au-stage-border:#43b476;
}
body[data-auction-page="lot"] .au-lot-clock[data-demo-phase="urgent"],
body[data-auction-page="live"] #liveCountdown[data-demo-phase="urgent"]{
  --au-stage-ink:#ff8e98;--au-stage-bg:#3b191e;--au-stage-border:#eb5a65;
}
body[data-auction-page="lot"] .au-lot-clock[data-demo-phase="ended"],
body[data-auction-page="live"] #liveCountdown[data-demo-phase="ended"]{
  --au-stage-ink:#eedfc4;--au-stage-bg:#2e2a28;--au-stage-border:#bd9d6e;
}
body[data-auction-page="live"] #liveCountdown{
  display:inline-block;
  max-width:100%;
  padding:12px 18px;
  margin-top:15px;
  font:700 12px/1.45 "DM Sans",Arial,sans-serif;
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere;
}

/* On closure the result replaces the auction clock and bidding box. */
body[data-auction-page="lot"] .au-result-panel{
  margin:15px 0 17px;
  padding:22px 20px;
  border:1px solid var(--mc-stroke,rgba(218,192,149,.45));
  border-radius:14px;
  background:var(--mc-panel,rgba(14,23,32,.7));
}
body[data-auction-page="lot"] .au-result-panel h2{
  font:500 clamp(27px,3.2vw,39px)/1.13 "Playfair Display",Georgia,serif;
  color:var(--mc-on,#f3eee7);
  margin:8px 0 14px;
}
body[data-auction-page="lot"] .au-result-panel .au-result-amount{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:12px 0;
  border-top:1px solid var(--mc-stroke,rgba(222,190,144,.32));
  border-bottom:1px solid var(--mc-stroke,rgba(222,190,144,.32));
}
body[data-auction-page="lot"] .au-result-amount small{
  font-size:10px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--mc-sub,#cbd2d6);
}
body[data-auction-page="lot"] .au-result-amount strong{
  font-size:21px;
  color:var(--mc-on,#f4efe3);
}
body[data-auction-page="lot"] .au-result-panel p{
  font-size:12px;
  color:var(--mc-sub,#cbd2d6);
  line-height:1.65;
}
body[data-auction-page="lot"] .au-result-panel a{
  color:var(--mc-gold,#dfc596);
  font-size:12px;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
}
#auctionResult{scroll-margin-top:18px}
@media(max-width:760px){
  body[data-auction-page="catalog"] .au-card-clock{padding:8px 7px;}
  body[data-auction-page="catalog"] .au-card-clock-value{font-size:clamp(12px,3.4vw,16px)}
  body[data-auction-page="catalog"] .au-card-clock-label{font-size:8px;letter-spacing:.06em}
  body[data-auction-page="lot"] .au-lot-clock{padding:13px 14px;margin-top:12px}
  body[data-auction-page="lot"] #lotCountdown{font-size:21px}
  body[data-auction-page="lot"] .au-result-panel{padding:17px 14px}
}
@media(max-width:350px){
  body[data-auction-page="catalog"] .au-card-clock{padding:7px 5px}
  body[data-auction-page="catalog"] .au-card-clock-value{font-size:11px}
}

/* Strong ID-level backgrounds override theme-level generic transparent panels. */
body[data-auction-page="lot"] #lotTimer,body[data-auction-page="live"] #liveCountdown{background-color:#232a32!important;color:#f7f8fb!important}
body[data-auction-page="lot"] #lotTimer[data-demo-phase="running"],body[data-auction-page="live"] #liveCountdown[data-demo-phase="running"]{background-color:#102d20!important;color:#82f5ad!important}
body[data-auction-page="lot"] #lotTimer[data-demo-phase="urgent"],body[data-auction-page="live"] #liveCountdown[data-demo-phase="urgent"]{background-color:#3b191e!important;color:#ff8e98!important}
body[data-auction-page="lot"] #lotTimer[data-demo-phase="ended"],body[data-auction-page="live"] #liveCountdown[data-demo-phase="ended"]{background-color:#2e2a28!important;color:#eedfc4!important}
body[data-auction-page="lot"] #lotTimer[data-demo-phase="unavailable"],body[data-auction-page="live"] #liveCountdown[data-demo-phase="unavailable"]{background-color:#2e2a28!important;color:#eedfc4!important}
