/* ==========================================================
   TOPBAR + PRICE MODE TOGGLE (B2C/B2B)
========================================================== */
.scharr-topbar{
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.scharr-topbar__inner{
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 6px 18px;
}

.scharr-topbar__left{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.scharr-topbar__center{
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.scharr-topbar__phone{
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.scharr-topbar__coupon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(46,79,32,0.10);
  color: var(--scharr-green);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.scharr-topbar__coupon:hover{
  background: rgba(46,79,32,0.16);
}

.price-mode-toggle-bar{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.scharr-topbar__right{
  display: flex;
  justify-content: flex-end;
}

.price-mode-toggle-bar__form{
  display: inline-flex;
  border: 1px solid #cfd6df;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.price-mode-toggle-bar__btn{
  border: 0;
  background: transparent;
  color: #334155;
  cursor: pointer;
  padding: 6px 12px;
  min-height: 32px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.price-mode-toggle-bar__btn + .price-mode-toggle-bar__btn{
  border-left: 1px solid #e2e8f0;
}

.price-mode-toggle-bar__btn.is-active{
  background: var(--scharr-green);
  color: #fff;
}

.price-mode-toggle-bar__btn:focus-visible{
  outline: 2px solid var(--scharr-green);
  outline-offset: -2px;
}

.price-mode-toggle-bar__text{
  margin: 0;
  color: #475569;
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 980px){
  .scharr-topbar__item{
    display: none;
  }

  .scharr-topbar__coupon{
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 768px){
  .scharr-topbar{
    display: block;
  }

  .scharr-topbar__inner{
    grid-template-columns: 1fr;
    padding: 8px 16px;
    min-height: 0;
  }

  .scharr-topbar__left{
    display: none;
  }

  .scharr-topbar__center{
    order: 1;
  }

  .scharr-topbar__right{
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .price-mode-toggle-bar{
    width: 100%;
    max-width: 420px;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .price-mode-toggle-bar__form{
    width: auto;
  }

  .price-mode-toggle-bar__text{
    display: block;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
}

