/* B.Ring consumer UX reset — phase 1 */
:root{
  --br-orange:#ff7600;
  --br-ink:#111820;
  --br-muted:#737b81;
  --br-line:#ebe7df;
  --br-surface:#ffffff;
  --br-soft:#f7f5f1;
  --br-radius:18px;
}

body{
  background:#fff;
  color:var(--br-ink);
  padding-bottom:76px;
}

/* Header: brand + location + basket only */
.appHeader{
  position:sticky;
  top:0;
  z-index:80;
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(18px);
  border-bottom:1px solid var(--br-line);
  box-shadow:none;
}
.headerInner{
  max-width:1180px;
  min-height:62px;
  padding:8px 14px;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:10px;
}
.headerBrand{
  width:74px;
  height:36px;
}
.appHeader .location{
  min-width:0;
  justify-self:start;
  overflow:hidden;
}
.appHeader .location .pin{
  width:24px;
  height:24px;
  flex:0 0 24px;
  font-size:7px;
}
.appHeader .location small{
  font-size:8px;
  color:#8a9196;
  line-height:1.1;
}
.appHeader .location b{
  display:block;
  max-width:150px;
  font-size:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.appHeader .chev{font-size:12px}
.desktopNav{display:none!important}
.topActions{
  grid-column:3;
  gap:0;
}
#createTop,#savedTop,#accountTop,#installAppBtn{
  display:none!important;
}
#commerceCartTop{
  width:40px!important;
  height:40px!important;
  border:1px solid var(--br-line)!important;
  border-radius:13px!important;
  background:#fff!important;
  color:var(--br-ink)!important;
  box-shadow:none!important;
}

/* The floating dock was competing with content. Every primary surface now has a basket entry. */
#commerceCartDock{
  display:none!important;
}

/* Home start */
.uxHomeStart{
  max-width:1180px;
  margin:0 auto;
  padding:24px 14px 8px;
}
.uxHomeIntro small{
  color:var(--br-orange);
  font-size:9px;
  font-weight:950;
  letter-spacing:.13em;
}
.uxHomeIntro h1{
  margin:5px 0 4px;
  font-size:28px;
  line-height:1.02;
  letter-spacing:-1px;
}
.uxHomeIntro p{
  margin:0;
  color:var(--br-muted);
  font-size:12px;
  line-height:1.45;
}
.uxHomeActions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:16px;
}
.uxHomeAction{
  min-height:86px;
  border:1px solid var(--br-line);
  border-radius:18px;
  background:#fff;
  color:var(--br-ink);
  padding:13px;
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  text-align:left;
  box-shadow:0 5px 16px rgba(17,24,32,.035);
}
.uxHomeAction>span{
  width:38px;
  height:38px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:var(--br-soft);
  font-size:17px;
  font-weight:900;
}
.uxHomeAction.featured{
  border-color:#ffd6b4;
  background:#fff9f4;
}
.uxHomeAction.featured>span{
  background:var(--br-orange);
  color:#fff;
}
.uxHomeAction b,.uxHomeAction small{display:block}
.uxHomeAction b{font-size:13px}
.uxHomeAction small{
  margin-top:3px;
  color:var(--br-muted);
  font-size:9px;
  line-height:1.3;
}
.uxHomeAction i{
  font-style:normal;
  font-size:22px;
  color:#a1a6aa;
}

/* Search is a single global entry, not a hero in itself */
.searchArea{
  max-width:1180px;
  padding:10px 14px 4px;
}
.searchBox{
  height:48px;
  grid-template-columns:30px 1fr 24px;
  border:1px solid var(--br-line);
  border-radius:15px;
  padding:0 11px;
  background:#f8f7f4;
  box-shadow:none;
}
.searchIcon{
  font-size:22px;
  color:#747c82;
}
.searchBox input{
  background:transparent;
  font-size:14px;
}
.searchBox input::placeholder{color:#8e9499}

/* Home business discovery should read as a compact category filter */
.businessBrowse{
  max-width:1180px;
  margin:14px auto 0;
  padding:20px 14px 0;
  border-top:1px solid var(--br-line);
}
.browseHeading{margin-bottom:8px}
.browseHeading small{
  color:var(--br-orange);
  font-size:9px;
}
.browseHeading h2{
  margin:3px 0 2px;
  font-size:21px;
  letter-spacing:-.6px;
}
.browseHeading p{
  font-size:11px;
  max-width:none;
}
.verticalRail{
  gap:7px;
  padding:10px 0 8px;
  border:0;
}
.vertical{
  flex:0 0 auto;
  width:auto;
  display:block;
  padding:0;
}
.vertical span{
  display:none;
}
.vertical b{
  display:block;
  padding:9px 12px;
  border:1px solid var(--br-line);
  border-radius:999px;
  background:#fff;
  font-size:10px;
  line-height:1;
}
.vertical.active b{
  background:var(--br-ink);
  border-color:var(--br-ink);
  color:#fff;
}
.vertical.active:after{display:none}
.subRailWrap{
  padding:8px 0 2px;
}
.subRailWrap>small{
  margin-bottom:7px;
  font-size:9px;
}
.subcategoryRail{
  gap:7px;
  padding:1px 0 9px;
}
.subcat{
  flex:0 0 auto;
  display:block;
  padding:0;
}
.subcat span{display:none}
.subcat b{
  display:block;
  padding:8px 11px;
  border:1px solid var(--br-line);
  border-radius:999px;
  background:#fff;
  font-size:9px;
  line-height:1;
  white-space:nowrap;
}
.subcat.active b{
  background:#fff2e7;
  border-color:#ffc696;
  color:#a94a00;
}
.filterRail{
  gap:7px;
  padding:7px 0 12px;
}
.filterRail button{
  padding:8px 11px;
  border-radius:999px;
  font-size:9px;
}
.bringIntentWrap{margin:0}

/* Content rhythm */
.discoverHome{
  max-width:1180px;
  padding:0 14px;
}
.businessResults{
  max-width:1180px;
  padding-left:14px;
  padding-right:14px;
}
.sectionHead{
  margin:16px 0 9px;
}
.sectionHead h2{
  font-size:19px!important;
  letter-spacing:-.5px;
}
.sectionHead p{font-size:10px!important}
.merchantRail{
  margin:0 -14px;
  padding:0 14px 10px;
  gap:10px;
}
.merchantRail .card{
  flex:0 0 68vw;
  max-width:280px;
  border-radius:18px;
  box-shadow:none;
}
.merchantRail .visual{height:120px}
.merchantRail .cardBody{
  padding:11px 12px 12px;
}
.merchantRail .cardBody h3{font-size:15px}
.merchantRail .cardBody>p{
  font-size:10px;
  margin:3px 0 7px;
}
.merchantRail .meta span{
  padding:4px 6px;
  font-size:7px;
}
.merchantRail .openMenu{
  margin-top:8px;
  padding-top:8px;
  font-size:9px;
}

/* Bottom navigation: one active state, Shop is the signature destination only when active */
.bottomNav{
  height:70px;
  padding:6px 8px max(6px,env(safe-area-inset-bottom));
  border-top:1px solid var(--br-line);
  background:rgba(255,255,255,.985);
  box-shadow:0 -6px 20px rgba(17,24,32,.04);
}
.bottomNav button{
  gap:2px;
  color:#93999e;
  border-radius:14px;
}
.bottomNav span{
  width:32px;
  height:30px;
  display:grid;
  place-items:center;
  font-size:19px;
  border-radius:10px;
}
.bottomNav b{
  font-size:8px;
  font-weight:850;
}
.bottomNav button.active{
  color:var(--br-ink);
}
.bottomNav button.active span{
  background:#f1efeb;
}
.bottomNav .shopperNav span{
  width:34px!important;
  height:34px!important;
  margin:0!important;
  border-radius:11px!important;
  background:#fff2e7!important;
  color:var(--br-orange)!important;
  box-shadow:none!important;
}
.bottomNav .shopperNav b{
  color:inherit!important;
}
.bottomNav .shopperNav.active{
  color:var(--br-orange);
}
.bottomNav .shopperNav.active span{
  background:var(--br-orange)!important;
  color:#fff!important;
}

/* Only Home owns the home starter. */
body:not([data-primary-nav="home"]) .uxHomeStart{
  display:none;
}

/* Full-screen experiences manage their own header/basket. */
body.br-discover-open .appHeader,
body.br-discover-open .bottomNav{
  display:none!important;
}

/* AI Shopper owns its content, but keeps the app bottom nav predictable. */
body.ai-shopper-open .searchArea,
body.ai-shopper-open .uxHomeStart{
  display:none!important;
}

/* Remove duplicate/legacy visual noise */
.promoRail{display:none!important}

@media(max-width:759px){
  .headerInner{
    min-height:58px;
    padding:7px 12px;
    grid-template-columns:72px minmax(0,1fr) auto;
    gap:8px;
  }
  .headerBrand{width:72px;height:34px}
  .appHeader .location{grid-column:2}
  .topActions{grid-column:3}
  .uxHomeStart{padding:20px 12px 6px}
  .uxHomeIntro h1{font-size:26px}
  .uxHomeActions{
    grid-template-columns:1fr;
    gap:8px;
    margin-top:14px;
  }
  .uxHomeAction{
    min-height:66px;
    padding:10px 11px;
    grid-template-columns:36px minmax(0,1fr) auto;
  }
  .uxHomeAction>span{
    width:36px;height:36px;
  }
  .searchArea{padding:9px 12px 2px}
  .businessBrowse{padding:18px 12px 0}
  .discoverHome{padding:0 12px}
  .businessResults{padding-left:12px;padding-right:12px}
  .merchantRail{margin:0 -12px;padding-left:12px;padding-right:12px}
}

@media(min-width:760px){
  body{padding-bottom:0}
  .headerInner{
    grid-template-columns:92px auto 1fr auto;
  }
  .headerBrand{width:92px;height:38px}
  .desktopNav{display:flex!important}
  #createTop,#savedTop,#accountTop{display:flex!important}
  .uxHomeActions{grid-template-columns:repeat(3,1fr)}
}


/* Phase 2: simplify Home + social discovery */
#discoverTabs{display:none!important}

.businessBrowse .bringIntentRail{
  gap:7px!important;
  padding:5px 0 2px!important;
}
.businessBrowse .bringIntent{
  flex:0 0 auto!important;
  width:auto!important;
}
.businessBrowse .bringIntentIcon{
  display:none!important;
}
.businessBrowse .bringIntent b{
  display:block!important;
  padding:9px 12px!important;
  border:1px solid var(--br-line)!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#596168!important;
  font-size:9px!important;
  line-height:1!important;
}
.businessBrowse .bringIntent.active b{
  background:var(--br-ink)!important;
  border-color:var(--br-ink)!important;
  color:#fff!important;
}

#brSocialHome{
  padding-top:0!important;
}
.br-home-overview{
  padding:8px 0 4px!important;
}
.br-home-module{
  margin:0 0 18px;
}
.br-home-module-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin:0 0 10px;
}
.br-home-module-head small{
  color:var(--br-orange);
  font-size:9px;
  font-weight:950;
  letter-spacing:.12em;
}
.br-home-module-head h2{
  margin:3px 0 2px;
  font-size:21px;
  letter-spacing:-.6px;
}
.br-home-module-head p{
  margin:0;
  color:var(--br-muted);
  font-size:10px;
  line-height:1.35;
}
.br-home-module-head>button{
  flex:0 0 auto;
  border:0;
  background:transparent;
  color:var(--br-orange);
  padding:6px 0;
  font-size:10px;
  font-weight:900;
}
.br-community-block{
  margin:18px 0 20px!important;
}
.br-community-block .br-social-heading{
  margin-bottom:9px!important;
}
.br-community-block .br-social-heading h2,
.br-home-people .br-social-heading h2{
  font-size:18px!important;
  letter-spacing:-.4px;
}
.br-community-block .br-social-heading p,
.br-home-people .br-social-heading p{
  font-size:9px!important;
  line-height:1.35!important;
  color:var(--br-muted)!important;
}
.br-community-block .br-social-heading>button{
  background:transparent!important;
  color:var(--br-orange)!important;
  padding:6px 0!important;
  font-size:9px!important;
}
.br-reel-rail{
  gap:9px!important;
  margin:0 -12px!important;
  padding:0 12px 4px!important;
  overflow-x:auto!important;
  scroll-snap-type:x proximity;
}
.br-reel-card{
  width:136px!important;
  height:204px!important;
  flex:0 0 136px!important;
  border-radius:16px!important;
  box-shadow:none!important;
  scroll-snap-align:start;
}
.br-reel-card>img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.br-reel-card-copy{
  left:10px!important;
  right:10px!important;
  bottom:10px!important;
}
.br-reel-card-copy b{
  font-size:10px!important;
}
.br-reel-card-copy small{
  font-size:8px!important;
  line-height:1.25!important;
}
.br-reel-card-copy em{
  margin-top:5px!important;
  font-size:7px!important;
}
.br-reel-type{
  left:8px!important;
  top:8px!important;
  padding:5px 7px!important;
  font-size:7px!important;
}
.br-home-people{
  margin:18px 0 8px!important;
}
.br-profile-rail{
  gap:10px!important;
  margin:0 -12px!important;
  padding:0 12px 5px!important;
}
.br-profile-bubble{
  width:68px!important;
  flex:0 0 68px!important;
}
.br-profile-avatar{
  width:52px!important;
  height:52px!important;
  border-radius:50%!important;
  overflow:hidden!important;
  padding:0!important;
  background:#f4f1ec!important;
  border:1px solid var(--br-line)!important;
}
.br-profile-avatar img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  border-radius:50%!important;
}
.br-profile-bubble b{
  max-width:68px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:9px!important;
}
.br-profile-bubble small{
  max-width:68px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:7px!important;
}

/* Keep Home intentionally short. */
body[data-primary-nav="home"] .br-discovery-heading{
  display:none!important;
}

@media(max-width:759px){
  .br-home-module-head h2{font-size:19px}
  .br-home-module-head p{max-width:270px}
  .br-reel-card{
    width:132px!important;
    height:198px!important;
    flex-basis:132px!important;
  }
}
