/*
 * Bid2Stay Release 15.0.12.8 — BidPoints page UI/UX refinement
 * Presentation-only and scoped to the Guest BidPoints page.
 * No reward calculations, ledger calls, routes, authentication or permissions changed.
 */
body[data-portal-role="guest"] .bpr-shell{
  width:min(100%,1320px);
  gap:18px;
}

/* Compact hero and remove the double margin introduced by stacked global layers. */
body[data-portal-role="guest"] .bpr-hero{
  margin:0!important;
  padding:clamp(24px,2.8vw,34px)!important;
  grid-template-columns:minmax(0,1fr) minmax(220px,260px)!important;
  align-items:center!important;
  gap:clamp(24px,3vw,38px)!important;
  min-height:0;
  border-radius:22px!important;
  overflow:hidden;
}
body[data-portal-role="guest"] .bpr-hero>div:first-child{min-width:0}
body[data-portal-role="guest"] .bpr-eyebrow{
  margin-bottom:7px!important;
  color:#26724b!important;
  opacity:1!important;
}
body[data-portal-role="guest"] .bpr-hero h1{
  margin:0 0 9px!important;
  max-width:760px;
  font-size:clamp(2rem,2.45vw,2.65rem)!important;
  line-height:1.06!important;
  letter-spacing:-.04em!important;
  color:#10271a!important;
  text-wrap:balance;
}
body[data-portal-role="guest"] .bpr-hero p{
  margin:0!important;
  max-width:760px!important;
  font-size:clamp(.96rem,.25vw + .92rem,1.04rem)!important;
  line-height:1.58!important;
  color:#617168!important;
}

/* Readable balance card with explicit current-tier hierarchy. */
body[data-portal-role="guest"] .bpr-balance{
  width:100%;
  min-width:0!important;
  align-self:center;
  justify-content:flex-start;
  padding:18px 20px!important;
  border:1px solid #d7e3db!important;
  border-radius:17px!important;
  background:rgba(255,255,255,.96)!important;
  color:#10271a!important;
  box-shadow:0 10px 28px rgba(20,61,40,.07)!important;
}
body[data-portal-role="guest"] .bpr-balance .bpr-balance-label{
  display:block;
  color:#64736a!important;
  font-size:.78rem!important;
  font-weight:800!important;
  line-height:1.35;
}
body[data-portal-role="guest"] .bpr-balance strong{
  display:block;
  max-width:100%;
  margin:6px 0 13px!important;
  color:#10271a!important;
  opacity:1!important;
  font-size:clamp(1.85rem,2.25vw,2.35rem)!important;
  line-height:1!important;
  letter-spacing:-.04em!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
}
body[data-portal-role="guest"] .bpr-tier-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-top:11px;
  border-top:1px solid #e6ece8;
}
body[data-portal-role="guest"] .bpr-tier-line>span{
  color:#6a786f!important;
  font-size:.74rem!important;
  font-weight:750!important;
}
body[data-portal-role="guest"] .bpr-tier-line>b{
  min-width:0;
  color:#145c3a;
  font-size:.82rem;
  font-weight:900;
  line-height:1.25;
  text-align:right;
  overflow-wrap:break-word;
}

/* Status message becomes a compact system notice rather than another large card. */
body[data-portal-role="guest"] .bpr-status{
  display:flex!important;
  width:100%;
  min-height:40px;
  margin:0!important;
  padding:9px 14px!important;
  border-radius:12px!important;
  font-size:.83rem!important;
  line-height:1.4!important;
  box-shadow:none!important;
}

/* Balanced metrics with a dedicated, contained milestone treatment. */
body[data-portal-role="guest"] .bpr-metrics{
  grid-template-columns:repeat(3,minmax(0,1fr)) minmax(250px,1.12fr)!important;
  gap:14px!important;
  margin:0!important;
}
body[data-portal-role="guest"] .bpr-metric{
  min-width:0;
  min-height:116px!important;
  padding:18px 20px!important;
  border-radius:17px!important;
  background:#fff!important;
  overflow:hidden;
}
body[data-portal-role="guest"] .bpr-metric>span{
  color:#64736a!important;
  font-size:.79rem!important;
  font-weight:800!important;
  line-height:1.35!important;
}
body[data-portal-role="guest"] .bpr-metric>strong{
  display:block;
  max-width:100%;
  margin-top:10px!important;
  color:#10271a!important;
  font-size:clamp(1.75rem,2vw,2.15rem)!important;
  line-height:1!important;
  letter-spacing:-.035em!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
}
body[data-portal-role="guest"] .bpr-metric:has(>strong[data-bpr-next]){
  display:flex!important;
  flex-direction:column;
}
body[data-portal-role="guest"] .bpr-metric>strong[data-bpr-next]{
  margin-top:9px!important;
  font-size:clamp(1.18rem,1.35vw,1.42rem)!important;
  line-height:1.18!important;
  letter-spacing:-.025em!important;
  text-wrap:balance;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
body[data-portal-role="guest"] .bpr-metric:has(>strong[data-bpr-next]) .bpr-progress{
  width:100%;
  margin-top:auto!important;
  transform:none!important;
}
body[data-portal-role="guest"] .bpr-progress{
  height:7px!important;
  border-radius:999px!important;
  background:#e1eae4!important;
}
body[data-portal-role="guest"] .bpr-progress>i{background:#1b7549!important}

/* Content cards: remove oversized global h2 treatment and improve scanability. */
body[data-portal-role="guest"] .bpr-grid{
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr)!important;
  align-items:stretch;
  gap:16px!important;
  margin:0!important;
}
body[data-portal-role="guest"] .bpr-card{
  min-width:0;
  padding:22px!important;
  border-radius:18px!important;
}
body[data-portal-role="guest"] .bpr-grid>.bpr-card{height:100%}
body[data-portal-role="guest"] .bpr-card-head{
  margin-bottom:13px!important;
  padding-bottom:13px;
  border-bottom:1px solid #e8eeea;
}
body[data-portal-role="guest"] .bpr-card h2{
  margin:0!important;
  color:#14281c!important;
  font-size:1.08rem!important;
  line-height:1.25!important;
  letter-spacing:-.015em!important;
}
body[data-portal-role="guest"] .bpr-card-head p{
  margin:4px 0 0!important;
  color:#68776e!important;
  font-size:.86rem!important;
  line-height:1.5!important;
}
body[data-portal-role="guest"] .bpr-list{gap:0!important}
body[data-portal-role="guest"] .bpr-row{
  grid-template-columns:38px minmax(0,1fr) auto!important;
  gap:12px!important;
  padding:12px 0!important;
}
body[data-portal-role="guest"] .bpr-sign{
  width:36px!important;
  height:36px!important;
  border-radius:11px!important;
}
body[data-portal-role="guest"] .bpr-row h3{
  margin:0!important;
  color:#1a3022!important;
  font-size:.94rem!important;
  line-height:1.35!important;
  letter-spacing:-.008em!important;
}
body[data-portal-role="guest"] .bpr-row p{
  margin:3px 0 0!important;
  color:#728078!important;
  font-size:.76rem!important;
  line-height:1.45!important;
}
body[data-portal-role="guest"] .bpr-points{
  align-self:center;
  font-size:.9rem!important;
}
body[data-portal-role="guest"] .bpr-empty{
  min-height:132px!important;
  padding:22px!important;
  border-radius:14px!important;
  font-size:.88rem!important;
}
body[data-portal-role="guest"] .bpr-rewards{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
}
body[data-portal-role="guest"] .bpr-reward{min-width:0}
body[data-portal-role="guest"] .bpr-reward h3{font-size:.96rem!important}

@media(max-width:1180px){
  body[data-portal-role="guest"] .bpr-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body[data-portal-role="guest"] .bpr-rewards{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:900px){
  body[data-portal-role="guest"] .bpr-hero{
    grid-template-columns:1fr!important;
  }
  body[data-portal-role="guest"] .bpr-balance{
    max-width:none;
  }
  body[data-portal-role="guest"] .bpr-grid{
    grid-template-columns:1fr!important;
  }
}
@media(max-width:640px){
  body[data-portal-role="guest"] .bpr-shell{gap:14px}
  body[data-portal-role="guest"] .bpr-hero{
    padding:20px!important;
    border-radius:18px!important;
  }
  body[data-portal-role="guest"] .bpr-hero h1{
    font-size:clamp(1.72rem,8vw,2.05rem)!important;
  }
  body[data-portal-role="guest"] .bpr-metrics,
  body[data-portal-role="guest"] .bpr-rewards{
    grid-template-columns:1fr!important;
  }
  body[data-portal-role="guest"] .bpr-metric{
    min-height:104px!important;
  }
  body[data-portal-role="guest"] .bpr-card{padding:18px!important}
  body[data-portal-role="guest"] .bpr-row{
    grid-template-columns:36px minmax(0,1fr)!important;
  }
  body[data-portal-role="guest"] .bpr-points{
    grid-column:2;
    justify-self:start;
    margin-top:-2px;
  }
}
