/* ========== Branches Compact UI (scoped) ========== */
section.branches-compact { padding: 24px 0 !important; }

section.branches-compact .branches-ui{
  max-width: 980px;
  margin: 0 auto 14px;
  padding: 0 12px;
}

section.branches-compact .branches-ui .main-cities{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 12px;
}

section.branches-compact .branches-ui button{
  cursor: pointer;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

section.branches-compact .branches-ui button.is-active{
  background: #3b1c1c;
  border-color: #3b1c1c;
  color: #fff;
}

section.branches-compact .branches-ui .sub-branches{
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding-top: 6px;
}

section.branches-compact .branches-ui .sub-branches.is-open{ display: flex; }

section.branches-compact .branches-ui .sub-branches button{
  padding: 9px 12px;
  border-radius: 14px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* responsive */
@media (max-width: 768px){
  section.branches-compact .branches-ui{ padding: 0 10px; }
  section.branches-compact .branches-ui button{ width: auto; }
}