/* Wach v15.220 — unified light marketplace theme
   One source of truth for page backgrounds, surfaces, actions and feedback. */
:root{
  --blue:#0647d9;
  --blue-2:#1463ff;
  --blue-dark:#102044;
  --red:#dc2638;
  --red-2:#ef3346;
  --ink:#17233f;
  --muted:#5f6d86;
  --line:#dce5f5;
  --soft:#f5f7fb;
  --surface:#ffffff;
  --surface-alt:#f8faff;
  --success:#0b7a3b;
  --shadow:0 8px 24px rgba(16,32,68,.07);
}
html{background:var(--soft)}
body,
.app-shell,
.main,
.page-overlay,
#pageOverlay,
#pageOverlay .page-inner{
  background:var(--soft)!important;
  color:var(--ink);
}
.sidebar,
.topbar,
.bottom-nav,
.modal,
.product-card,
.cat-card,
.biz-card,
.property-card,
.need-card,
.haiti-pro-card,
.site-update-panel,
.site-update-card,
.home-action-card,
.smart-listing-card,
.market-specifics-wrap,
.market-specifics-view,
.rechaj-card,
.rechaj-payment-panel,
.rechaj-manager-section,
.rechaj-info-section,
.ap-log,
.bouba-shell,
.bouba-daily,
.bouba-compose,
.bouba-note,
.wach-magic-match-toast{
  background:var(--surface)!important;
  border-color:var(--line)!important;
}
.sidebar{box-shadow:8px 0 30px rgba(16,32,68,.035)}
.topbar,
.bottom-nav{
  background:rgba(255,255,255,.94)!important;
  border-color:var(--line)!important;
}
.topbar{box-shadow:0 1px 0 rgba(16,32,68,.04)}
.search-wrap,
.filter-field,
.field input,
.field select,
.field textarea,
.biz-search input,
.biz-search select,
.property-search input,
.property-search select,
.chat-input-row input,
.rechaj-field input,
.rechaj-field select,
.rechaj-phone-input,
.ap-field input,
.ap-field select{
  background:var(--surface)!important;
  border-color:#cfdaf0!important;
  color:var(--ink)!important;
}
.search-wrap:focus-within,
.field input:focus,
.field select:focus,
.field textarea:focus,
.filter-field:focus-within{
  border-color:var(--blue-2)!important;
  box-shadow:0 0 0 3px rgba(20,99,255,.13)!important;
}
.filters,
.form-note,
.auth-helper,
.review-item,
.detail-chip,
.gps-note,
.profile-photo-row,
.smart-listing-box,
.smart-listing-status,
.market-specifics-chips span,
.wach-search-alert-prompt[data-wach-magic="1"],
.bouba-status,
.bouba-messages,
.rechaj-choice,
.rechaj-status,
.rechaj-summary{
  background:var(--surface-alt)!important;
  border-color:var(--line)!important;
}
.product-card,
.biz-card,
.property-card,
.need-card,
.site-update-panel,
.home-action-card{box-shadow:var(--shadow)!important}
.cat-card{box-shadow:none!important}
.cat-card:hover,
.product-card:hover{box-shadow:0 14px 32px rgba(16,32,68,.11)!important}
.nav a.active,
.post-top-btn,
.sell-side,
.plus-main,
.floating-post,
#boubaFab,
.red-btn{
  background:linear-gradient(135deg,var(--blue),var(--blue-2))!important;
  color:#fff!important;
  box-shadow:0 10px 24px rgba(6,71,217,.22)!important;
}
.bottom-nav a.active{color:var(--blue)!important}
.nav a:not(.active),
.bottom-nav a:not(.active){color:#263654}
.mini-btn.red,
.mini-btn.danger,
.need-actions .mini-btn.danger,
.need-actions .mini-btn.red,
.ap-err,
.rechaj-status.error{--action-danger:var(--red)}
.mini-btn.red,
.mini-btn.danger,
.need-actions .mini-btn.danger,
.need-actions .mini-btn.red{
  background:var(--red)!important;
  border-color:var(--red)!important;
  color:#fff!important;
}
.section-head h2,
.section-head h3,
.product-title,
.detail-info h2,
.modal-head h3,
.field label,
.home-action-card b{color:var(--ink)!important}
.subtle,
.loc,
.section-head small,
.home-action-card p,
.smart-listing-note,
.market-specifics-help{color:var(--muted)!important}
.toast{
  top:calc(14px + env(safe-area-inset-top,0px))!important;
  bottom:auto!important;
  width:min(520px,calc(100vw - 28px));
  max-width:520px;
  border-radius:14px!important;
  padding:12px 16px!important;
  background:var(--blue-dark)!important;
  box-shadow:0 16px 38px rgba(16,32,68,.23)!important;
  text-align:left;
  line-height:1.35;
}
@media(max-width:860px){
  body,.app-shell,.main,.page-overlay,#pageOverlay,#pageOverlay .page-inner{background:var(--soft)!important}
  .main{padding-left:12px!important;padding-right:12px!important}
  .modal{border-radius:20px 20px 0 0}
  .bottom-nav{box-shadow:0 -8px 24px rgba(16,32,68,.07)}
}
@media(prefers-reduced-motion:reduce){
  .cat-card,.product-card,.toast{transition:none!important}
}

/* v15.220 cascade lock — wins over legacy and runtime-injected theme rules. */
html body.wach-seller-v2-ready,
html body.wach-seller-v2-ready .app-shell,
html body.wach-seller-v2-ready main.main,
html body.wach-seller-v2-ready .page-overlay,
html body.wach-seller-v2-ready #pageOverlay,
html body.wach-seller-v2-ready #pageOverlay .page-inner{
  background:#f5f7fb!important;
  color:#17233f!important;
}
html body.wach-seller-v2-ready .bottom-nav a.active{
  color:#1463ff!important;
  border-color:#1463ff!important;
}
html body.wach-seller-v2-ready .nav a.active,
html body.wach-seller-v2-ready .post-top-btn,
html body.wach-seller-v2-ready .sell-side,
html body.wach-seller-v2-ready .plus-main,
html body.wach-seller-v2-ready .floating-post,
html body.wach-seller-v2-ready #boubaFab,
html body.wach-seller-v2-ready .red-btn{
  background:linear-gradient(135deg,#0647d9,#1463ff)!important;
  color:#fff!important;
  border-color:#1463ff!important;
}

